Class: openpgp_packet_literaldata

openpgp_packet_literaldata

Implementation of the Literal Data Packet (Tag 11) RFC4880 5.9: A Literal Data packet contains the body of a message; data that is not to be further interpreted.

new openpgp_packet_literaldata()

Source:

Methods

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

Parsing function for a literal data packet (tag 11).
Parameters:
Name Type Description
input String Payload of a tag 11 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 keymaterial
Type
String

<inner> write_packet(data) → {String}

Creates a string representation of the packet
Parameters:
Name Type Description
data String The data to be inserted as body
Source:
Returns:
string-representation of the packet
Type
String