new openpgp_packet_onepasssignature()
- Source:
Methods
-
<inner> read_packet(input, position, len) → {openpgp_packet_encrypteddata}
-
parsing function for a one-pass signature packet (tag 4).
Parameters:
Name Type Description inputString payload of a tag 4 packet positionInteger position to start reading from the input string lenInteger length of the packet or the remaining length of input at position - Source:
Returns:
object representation -
<inner> toString() → {String}
-
generates debug output (pretty print)
- Source:
Returns:
String which gives some information about the one-pass signature packet- Type
- String
-
<inner> write_packet(type, hashalgorithm, privatekey, length, nested) → {String}
-
creates a string representation of a one-pass signature packet
Parameters:
Name Type Description typeInteger Signature types as described in RFC4880 Section 5.2.1. hashalgorithmInteger the hash algorithm used within the signature privatekeyopenpgp_msg_privatekey the private key used to generate the signature lengthInteger length of data to be signed nestedboolean 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:
Returns:
a string representation of a one-pass signature packet- Type
- String