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

Method _check_key

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

Source from the content-addressed store, hash-verified

97 return {"cek": cek}
98
99 def _check_key(self, key):
100 if len(key) * 8 != self.key_size:
101 raise ValueError(f"A key of size {self.key_size} bits is required.")
102
103 def wrap_cek(self, cek, key):
104 op_key = key.get_op_key("wrapKey")

Callers 2

wrap_cekMethod · 0.95
unwrapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected