-
isExpired() → {Boolean}
-
Verifies signature expiration date
- Source:
Returns:
true if expired
-
Type
-
Boolean
-
-
parsing function for a signature packet (tag 2).
Parameters:
Name |
Type |
Description |
bytes |
String
|
payload of a tag 2 packet |
position |
Integer
|
position to start reading from the bytes string |
len |
Integer
|
length of the packet or the remaining length of bytes at position |
- Source:
Returns:
object representation
-
Type
-
module:packet/signature
-
sign(key, data)
-
Signs provided data. This needs to be done prior to serialization.
Parameters:
Name |
Type |
Description |
key |
module:packet/secret_key
|
private key used to sign the message. |
data |
Object
|
Contains packets to be signed. |
- Source:
-
verify(data, key) → {boolean}
-
verifys the signature packet. Note: not signature types are implemented
Parameters:
- Source:
Returns:
True if message is verified, else false.
-
Type
-
boolean
-
write_all_sub_packets() → {String}
-
Creates string of bytes with all subpacket data
- Source:
Returns:
a string-representation of a all subpacket data
-
Type
-
String