Class: openpgp_packet_modificationdetectioncode

openpgp_packet_modificationdetectioncode

Implementation of the Modification Detection Code Packet (Tag 19) RFC4880 5.14: The Modification Detection Code packet contains a SHA-1 hash of plaintext data, which is used to detect message modification. It is only used with a Symmetrically Encrypted Integrity Protected Data packet. The Modification Detection Code packet MUST be the last packet in the plaintext data that is encrypted in the Symmetrically Encrypted Integrity Protected Data packet, and MUST appear in no other place.

new openpgp_packet_modificationdetectioncode()

Source:

Methods

<inner> read_packet(input, position, len) → {openpgp_packet_encrypteddata}

parsing function for a modification detection code packet (tag 19).
Parameters:
Name Type Description
input String payload of a tag 19 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:
Returns:
object representation
Type
openpgp_packet_encrypteddata

<inner> toString() → {String}

generates debug output (pretty print)
Source:
Returns:
String which gives some information about the modification detection code
Type
String