(self, tup)
| 461 | |
| 462 | @crypto_validator |
| 463 | def import_from_tuple(self, tup): |
| 464 | # this is rarely used |
| 465 | e, m, mLen = tup |
| 466 | if isinstance(m, bytes): |
| 467 | m = pkcs_os2ip(m) |
| 468 | if isinstance(e, bytes): |
| 469 | e = pkcs_os2ip(e) |
| 470 | self.fill_and_store(modulus=m, pubExp=e) |
| 471 | |
| 472 | def import_from_asn1pkt(self, pubkey): |
| 473 | modulus = pubkey.modulus.val |
no test coverage detected