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

Method sign

scapy/layers/tls/cert.py:856–857  ·  view source on GitHub ↗
(self, data, h="sha256", **kwargs)

Source from the content-addressed store, hash-verified

854
855 @crypto_validator
856 def sign(self, data, h="sha256", **kwargs):
857 return self.key.sign(data, ec.ECDSA(_get_hash(h)))
858
859
860class PrivKeyEdDSA(PrivKey):

Callers

nothing calls this directly

Calls 2

_get_hashFunction · 0.90
signMethod · 0.45

Tested by

no test coverage detected