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