MCPcopy
hub / github.com/authlib/authlib / prepare_key

Method prepare_key

authlib/jose/rfc7518/jws_algs.py:59–60  ·  view source on GitHub ↗
(self, raw_data)

Source from the content-addressed store, hash-verified

57 self.hash_alg = getattr(self, f"SHA{sha_type}")
58
59 def prepare_key(self, raw_data):
60 return OctKey.import_key(raw_data)
61
62 def sign(self, msg, key):
63 # it is faster than the one in cryptography

Callers

nothing calls this directly

Calls 1

import_keyMethod · 0.45

Tested by

no test coverage detected