Module: packet/public_subkey

packet/public_subkey

new (require("packet/public_subkey"))()

Source:
Source:

Requires

Members

algorithm :module:enums.publicKey

Public key algorithm
Type:
Inherited From:
Source:

created :Date

Key creation date.
Type:
  • Date
Inherited From:
Source:

mpi :module:type/mpi

A list of multiprecision integers
Type:
Inherited From:
Source:

Methods

getFingerprint() → {String}

Calculates the fingerprint of the key
Inherited From:
Source:
Returns:
A string containing the fingerprint
Type
String

getKeyId() → {String}

Calculates the key id of the key
Inherited From:
Source:
Returns:
A 8 byte key id
Type
String

read(input) → {Object}

Internal Parser for public keys as specified in RFC 4880 section 5.5.2 Public-Key Packet Formats called by read_tag<num>
Parameters:
Name Type Description
input String Input string to read the packet from
Inherited From:
Source:
Returns:
This object with attributes set by the parser
Type
Object

readPublicKey()

Alias of read()
Inherited From:
Source:
See:

write() → {Object}

Same as write_private_key, but has less information because of public key.
Inherited From:
Source:
Returns:
{body: [string]OpenPGP packet body contents, header: [string] OpenPGP packet header, string: [string] header+body}
Type
Object

writeOld()

Write an old version packet - it's used by some of the internal routines.
Inherited From:
Source:

writePublicKey()

Alias of write()
Inherited From:
Source:
See: