Class: SubKey

key~ SubKey

Class that represents a subkey packet and the relevant signatures.

new SubKey()

Source:

Methods

isValidEncryptionKey(primaryKey) → {Boolean}

Returns true if the subkey can be used for encryption
Parameters:
Name Type Description
primaryKey packet_secret_key | packet_public_key The primary key packet
Source:
Returns:
Type
Boolean

isValidSigningKey(primaryKey) → {Boolean}

Returns true if the subkey can be used for signing of data
Parameters:
Name Type Description
primaryKey packet_secret_key | packet_public_key The primary key packet
Source:
Returns:
Type
Boolean

toPacketlist() → {packetlist}

Transforms structured subkey data to packetlist
Source:
Returns:
Type
packetlist

verify() → {enums.keyStatus}

Verify subkey. Checks for revocation signatures, expiration time and valid binding signature
Source:
Returns:
The status of the subkey
Type
enums.keyStatus