Implementation of the Sym. Encrypted Integrity Protected Data
Packet (Tag 18)
RFC4880 5.13: The Symmetrically Encrypted Integrity Protected Data packet is a variant of the Symmetrically Encrypted Data packet. It is a new feature created for OpenPGP that addresses the problem of detecting a modification to encrypted data. It is used in combination with a Modification Detection Code packet.
RFC4880 5.13: The Symmetrically Encrypted Integrity Protected Data packet is a variant of the Symmetrically Encrypted Data packet. It is a new feature created for OpenPGP that addresses the problem of detecting a modification to encrypted data. It is used in combination with a Modification Detection Code packet.
new (require("packet/sym_encrypted_integrity_protected"))()
Requires
Members
-
encrypted
-
The encrypted payload.
-
modification :Boolean
-
If after decrypting the packet this is set to true, a modification has been detected and thus the contents should be discarded.
Type:
- Boolean
Methods
-
decrypt(sessionKeyAlgorithm, key) → {String}
-
Decrypts the encrypted data contained in this object read_packet must have been called before
Parameters:
Name Type Description sessionKeyAlgorithm
Integer The selected symmetric encryption algorithm to be used key
String The key of cipher blocksize length to be used Returns:
The decrypted data of this packet- Type
- String