Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
860
class
PrivKeyEdDSA(PrivKey):
Callers
nothing calls this directly
Calls
2
_get_hash
Function · 0.90
sign
Method · 0.45
Tested by
no test coverage detected