new openpgp_packet_onepasssignature
- Source:
- openpgp.js, line 29
Methods
-
<inner> read_packet
-
parsing function for a one-pass signature packet (tag 4).
Parameters:
Name Type Description input
string payload of a tag 4 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 45
Returns:
object representation- Type
- openpgp_packet_encrypteddata
-
<inner> toString
-
generates debug output (pretty print)
- Source:
- openpgp.js, line 105
Returns:
String which gives some information about the one-pass signature packet- Type
- string
-
<inner> write_packet
-
creates a string representation of a one-pass signature packet
Parameters:
Name Type Description type
integer Signature types as described in RFC4880 Section 5.2.1. hashalgorithm
integer the hash algorithm used within the signature privatekey
openpgp_msg_privatekey the private key used to generate the signature length
integer length of data to be signed nested
boolean boolean showing whether the signature is nested. "true" indicates that the next packet is another One-Pass Signature packet that describes another signature to be applied to the same message data. - Source:
- openpgp.js, line 84
Returns:
a string representation of a one-pass signature packet- Type
- String