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

Method __init__

authlib/jose/rfc7518/jws_algs.py:52–55  ·  view source on GitHub ↗
(self, sha_type)

Source from the content-addressed store, hash-verified

50 SHA512 = hashlib.sha512
51
52 def __init__(self, sha_type):
53 self.name = f"HS{sha_type}"
54 self.description = f"HMAC using SHA-{sha_type}"
55 self.hash_alg = getattr(self, f"SHA{sha_type}")
56
57 def prepare_key(self, raw_data):
58 return OctKey.import_key(raw_data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected