new openpgp_packet_encryptedintegrityprotecteddata
- Source:
- openpgp.js, line 968
Methods
-
<inner> decrypt
-
Decrypts the encrypted data contained in this object read_packet must have been called before
Parameters:
Name Type Description symmetric_algorithm_type
integer the selected symmetric encryption algorithm to be used key
String the key of cipher blocksize length to be used - Source:
- openpgp.js, line 1054
Returns:
the decrypted data of this packet -
<inner> read_packet
-
parsing function for the packet.
Parameters:
Name Type Description input
string payload of a tag 18 packet position
integer position to start reading from the input string len
integer length of the packet or the remaining length of input at position - Source:
- openpgp.js, line 986
Returns:
object representation- Type
- openpgp_packet_encryptedintegrityprotecteddata
-
<inner> write_packet
-
Creates a string representation of a Sym. Encrypted Integrity Protected Data Packet (tag 18) (see RFC4880 5.13)
Parameters:
Name Type Description symmetric_algorithm
integer the selected symmetric encryption algorithm to be used key
String the key of cipher blocksize length to be used data
plaintext data to be encrypted within the packet - Source:
- openpgp.js, line 1021
Returns:
a string representation of the packet