new openpgp_packet_encryptedintegrityprotecteddata()
- Source:
Methods
-
<inner> decrypt(symmetric_algorithm_type, key) → {String}
-
Decrypts the encrypted data contained in this object read_packet must have been called before
Parameters:
Name Type Description symmetric_algorithm_typeInteger The selected symmetric encryption algorithm to be used keyString The key of cipher blocksize length to be used - Source:
Returns:
The decrypted data of this packet- Type
- String
-
<inner> read_packet(input, position, len) → {openpgp_packet_encryptedintegrityprotecteddata}
-
Parsing function for the packet.
Parameters:
Name Type Description inputString Payload of a tag 18 packet positionInteger position to start reading from the input string lenInteger Length of the packet or the remaining length of input at position - Source:
Returns:
object representation -
<inner> write_packet(symmetric_algorithm, key, data) → {String}
-
Creates a string representation of a Sym. Encrypted Integrity Protected Data Packet (tag 18) (see RFC4880 5.13)
Parameters:
Name Type Description symmetric_algorithmInteger The selected symmetric encryption algorithm to be used keyString The key of cipher blocksize length to be used dataString Plaintext data to be encrypted within the packet - Source:
Returns:
A string representation of the packet- Type
- String