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

Method __init__

authlib/jose/rfc7518/jws_algs.py:117–121  ·  view source on GitHub ↗
(self, name, curve, sha_type)

Source from the content-addressed store, hash-verified

115 SHA512 = hashes.SHA512
116
117 def __init__(self, name, curve, sha_type):
118 self.name = name
119 self.curve = curve
120 self.description = f"ECDSA using {self.curve} and SHA-{sha_type}"
121 self.hash_alg = getattr(self, f"SHA{sha_type}")
122
123 def prepare_key(self, raw_data):
124 key = ECKey.import_key(raw_data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected