MCPcopy
hub / github.com/authlib/authlib / test_compact_rsa

Function test_compact_rsa

tests/jose/test_jwe.py:171–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170
171def 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
184def test_with_zip_header():

Callers

nothing calls this directly

Calls 4

serialize_compactMethod · 0.95
deserialize_compactMethod · 0.95
JsonWebEncryptionClass · 0.90
read_file_pathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…