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

Method __init__

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

Source from the content-addressed store, hash-verified

81 SHA512 = hashes.SHA512
82
83 def __init__(self, sha_type):
84 self.name = f"RS{sha_type}"
85 self.description = f"RSASSA-PKCS1-v1_5 using SHA-{sha_type}"
86 self.hash_alg = getattr(self, f"SHA{sha_type}")
87 self.padding = padding.PKCS1v15()
88
89 def prepare_key(self, raw_data):
90 return RSAKey.import_key(raw_data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected