MCPcopy Create free account
hub / github.com/authlib/authlib / __init__

Method __init__

authlib/jose/rfc7518/jwe_encs.py:99–103  ·  view source on GitHub ↗
(self, key_size)

Source from the content-addressed store, hash-verified

97 IV_SIZE = 96
98
99 def __init__(self, key_size):
100 self.name = f"A{key_size}GCM"
101 self.description = f"AES GCM using {key_size}-bit key"
102 self.key_size = key_size
103 self.CEK_SIZE = key_size
104
105 def encrypt(self, msg, aad, iv, key):
106 """Key Encryption with AES GCM.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected