MCPcopy
hub / github.com/authlib/authlib / _check_key

Method _check_key

authlib/jose/rfc7518/jwe_algs.py:140–142  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

138 return {"cek": cek}
139
140 def _check_key(self, key):
141 if len(key) * 8 != self.key_size:
142 raise ValueError(f"A key of size {self.key_size} bits is required.")
143
144 def wrap(self, enc_alg, headers, key, preset=None):
145 if preset and "cek" in preset:

Callers 2

wrapMethod · 0.95
unwrapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected