(self, sha_type)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected