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

Method encrypt

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

Source from the content-addressed store, hash-verified

1023 return False
1024
1025 def encrypt(self, msg, t="pkcs", h="sha256", mgf=None, L=None):
1026 # no ECDSA *encryption* support, hence only RSA specific keywords here
1027 return self.pubkey.encrypt(msg, t=t, h=h, mgf=mgf, L=L)
1028
1029 def verify(self, msg, sig, t="pkcs", h="sha256", mgf=None, L=None):
1030 return self.pubkey.verify(msg, sig, t=t, h=h, mgf=mgf, L=L)

Callers 5

_tls_encryptMethod · 0.45
encryptMethod · 0.45
_tls_encryptFunction · 0.45
post_buildMethod · 0.45
post_buildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected