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

Method clear

pgpy/packet/fields.py:1276–1280  ·  view source on GitHub ↗

delete and re-initialize all private components to zero

(self)

Source from the content-addressed store, hash-verified

1274 return NotImplemented # pragma: no cover
1275
1276 def clear(self):
1277 """delete and re-initialize all private components to zero"""
1278 for field in self.__privfields__:
1279 delattr(self, field)
1280 setattr(self, field, MPI(0))
1281
1282
1283class OpaquePrivKey(PrivKey, OpaquePubKey): # pragma: no cover

Callers 2

encrypt_keyblobMethod · 0.95
unlockMethod · 0.80

Calls 1

MPIClass · 0.85

Tested by

no test coverage detected