()
| 182 | |
| 183 | |
| 184 | def test_with_zip_header(): |
| 185 | jwe = JsonWebEncryption() |
| 186 | s = jwe.serialize_compact( |
| 187 | {"alg": "RSA-OAEP", "enc": "A128CBC-HS256", "zip": "DEF"}, |
| 188 | "hello", |
| 189 | read_file_path("rsa_public.pem"), |
| 190 | ) |
| 191 | data = jwe.deserialize_compact(s, read_file_path("rsa_private.pem")) |
| 192 | header, payload = data["header"], data["payload"] |
| 193 | assert payload == b"hello" |
| 194 | assert header["alg"] == "RSA-OAEP" |
| 195 | |
| 196 | |
| 197 | def test_aes_jwe(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…