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

Method __init__

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

Source from the content-addressed store, hash-verified

167 SHA512 = hashes.SHA512
168
169 def __init__(self, sha_type):
170 self.name = f"PS{sha_type}"
171 tpl = "RSASSA-PSS using SHA-{} and MGF1 with SHA-{}"
172 self.description = tpl.format(sha_type, sha_type)
173 self.hash_alg = getattr(self, f"SHA{sha_type}")
174
175 def prepare_key(self, raw_data):
176 return RSAKey.import_key(raw_data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected