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:
  • openpgp.js, line 1758

Methods

<inner> read_packet

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:
  • openpgp.js, line 1772
Returns:
object representation
Type
openpgp_packet_encrypteddata

<inner> toString

generates debug output (pretty print)
Source:
  • openpgp.js, line 1820
Returns:
String which gives some information about the keymaterial
Type
string

<inner> write_packet

Creates a string representation of the packet
Parameters:
Name Type Description
data String the data to be inserted as body
Source:
  • openpgp.js, line 1792
Returns:
string-representation of the packet
Type
String