()
| 169 | |
| 170 | |
| 171 | def test_compact_rsa(): |
| 172 | jwe = JsonWebEncryption() |
| 173 | s = jwe.serialize_compact( |
| 174 | {"alg": "RSA-OAEP", "enc": "A256GCM"}, |
| 175 | "hello", |
| 176 | read_file_path("rsa_public.pem"), |
| 177 | ) |
| 178 | data = jwe.deserialize_compact(s, read_file_path("rsa_private.pem")) |
| 179 | header, payload = data["header"], data["payload"] |
| 180 | assert payload == b"hello" |
| 181 | assert header["alg"] == "RSA-OAEP" |
| 182 | |
| 183 | |
| 184 | def test_with_zip_header(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…