(self)
| 463 | |
| 464 | @pytest.mark.skipif(AESKey is None, reason="No AES backend") |
| 465 | def test_alg_enc_headers(self): |
| 466 | enc = ALGORITHMS.A256CBC_HS512 |
| 467 | alg = ALGORITHMS.RSA_OAEP_256 |
| 468 | encrypted = jwe.encrypt("Text", PUBLIC_KEY_PEM, enc, alg) |
| 469 | header = json.loads(base64url_decode(encrypted.split(b".")[0])) |
| 470 | assert header["enc"] == enc |
| 471 | assert header["alg"] == alg |
| 472 | |
| 473 | @pytest.mark.skipif(AESKey is None, reason="No AES backend") |
| 474 | def test_cty_header_present_when_provided(self): |
nothing calls this directly
no test coverage detected