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

Method protect

pgpy/packet/packets.py:935–938  ·  view source on GitHub ↗
(self, passphrase, enc_alg, hash_alg)

Source from the content-addressed store, hash-verified

933 return True # pragma: no cover
934
935 def protect(self, passphrase, enc_alg, hash_alg):
936 self.keymaterial.encrypt_keyblob(passphrase, enc_alg, hash_alg)
937 del passphrase
938 self.update_hlen()
939
940 def unprotect(self, passphrase):
941 self.keymaterial.decrypt_keyblob(passphrase)

Callers

nothing calls this directly

Calls 2

encrypt_keyblobMethod · 0.80
update_hlenMethod · 0.45

Tested by

no test coverage detected