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

Method encrypt

scapy/layers/tls/cert.py:477–479  ·  view source on GitHub ↗
(self, msg, t="pkcs", h="sha256", mgf=None, L=None)

Source from the content-addressed store, hash-verified

475 self.fill_and_store(modulus=modulus, pubExp=pubExp)
476
477 def encrypt(self, msg, t="pkcs", h="sha256", mgf=None, L=None):
478 # no ECDSA encryption support, hence no ECDSA specific keywords here
479 return _EncryptAndVerifyRSA.encrypt(self, msg, t=t, h=h, mgf=mgf, L=L)
480
481 def verify(self, msg, sig, t="pkcs", h="sha256", mgf=None, L=None):
482 return _EncryptAndVerifyRSA.verify(self, msg, sig, t=t, h=h, mgf=mgf, L=L)

Callers

nothing calls this directly

Calls 1

encryptMethod · 0.45

Tested by

no test coverage detected