MCPcopy Create free account
hub / github.com/secdev/scapy / import_from_tuple

Method import_from_tuple

scapy/layers/tls/cert.py:463–470  ·  view source on GitHub ↗
(self, tup)

Source from the content-addressed store, hash-verified

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

Callers 1

__call__Method · 0.80

Calls 2

fill_and_storeMethod · 0.95
pkcs_os2ipFunction · 0.90

Tested by

no test coverage detected