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

Method __init__

authlib/jose/rfc7518/jwe_algs.py:197–207  ·  view source on GitHub ↗
(self, key_size=None)

Source from the content-addressed store, hash-verified

195
196 # https://tools.ietf.org/html/rfc7518#section-4.6
197 def __init__(self, key_size=None):
198 if key_size is None:
199 self.name = "ECDH-ES"
200 self.description = "ECDH-ES in the Direct Key Agreement mode"
201 else:
202 self.name = f"ECDH-ES+A{key_size}KW"
203 self.description = (
204 f"ECDH-ES using Concat KDF and CEK wrapped with A{key_size}KW"
205 )
206 self.key_size = key_size
207 self.aeskw = AESAlgorithm(key_size)
208
209 def prepare_key(self, raw_data):
210 if isinstance(raw_data, self.ALLOWED_KEY_CLS):

Callers

nothing calls this directly

Calls 1

AESAlgorithmClass · 0.85

Tested by

no test coverage detected