Implementation of the Symmetrically Encrypted Data Packet (Tag 9)
RFC4880 5.7: The Symmetrically Encrypted Data packet contains data encrypted with a symmetric-key algorithm. When it has been decrypted, it contains other packets (usually a literal data packet or compressed data packet, but in theory other Symmetrically Encrypted Data packets or sequences of packets that form whole OpenPGP messages).
RFC4880 5.7: The Symmetrically Encrypted Data packet contains data encrypted with a symmetric-key algorithm. When it has been decrypted, it contains other packets (usually a literal data packet or compressed data packet, but in theory other Symmetrically Encrypted Data packets or sequences of packets that form whole OpenPGP messages).
new (require("packet/symmetrically_encrypted"))()
- Source:
- Source:
Requires
Members
-
packets :module:packet/packetlist
-
Decrypted packets contained within.
Type:
- Source:
Methods
-
decrypt(sessionKeyAlgorithm, key)
-
Symmetrically decrypt the packet data
Parameters:
Name Type Description sessionKeyAlgorithm
Integer Symmetric key algorithm to use // See RFC4880 9.2 key
String Key as string with the corresponding length to the algorithm - Source: