MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / hashdata

Method hashdata

pgpy/pgp.py:1413–1417  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1411
1412 @property
1413 def hashdata(self):
1414 # when signing a key, only the public portion of the keys is hashed
1415 # if this is a private key, the private components of the key material need to be left out
1416 pub = self._key if self.is_public else self._key.pubkey()
1417 return pub.__bytearray__()[len(pub.header):]
1418
1419 @property
1420 def is_expired(self):

Callers

nothing calls this directly

Calls 2

pubkeyMethod · 0.45
__bytearray__Method · 0.45

Tested by

no test coverage detected