GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • RFC4480 5.5
  • Home
  • armor
  • config
  • enums
  • AEADEncryptedDataPacket
  • CleartextMessage
  • CompressedDataPacket
  • Key
  • LiteralDataPacket
  • MarkerPacket
  • Message
  • OnePassSignaturePacket
  • PacketList

This view

  • Original page
  • New address

GeezerVison is showing docs.openpgpjs.org — JSDoc: Class: PublicKeyPacket

Constructor

new PublicKeyPacket(dateopt, configopt)

Parameters:
Name Type Attributes Description
date Date <optional>

Creation date

config Object <optional>

Full configuration, defaults to openpgp.config

Source:
  • packet/public_key.js, line 38

Members

algorithm :enums.publicKey

Public key algorithm.

Type:
  • enums.publicKey
Source:
  • packet/public_key.js, line 62

created :Date

Key creation date.

Type:
  • Date
Source:
  • packet/public_key.js, line 57

expirationTimeV3 :Integer

Time until expiration in days (V3 only)

Type:
  • Integer
Source:
  • packet/public_key.js, line 72

fingerprint :Uint8Array

Fingerprint bytes

Type:
  • Uint8Array
Source:
  • packet/public_key.js, line 77

keyID :module:type/keyid~KeyID

KeyID

Type:
  • module:type/keyid~KeyID
Source:
  • packet/public_key.js, line 82

publicParams :Object

Algorithm specific public params

Type:
  • Object
Source:
  • packet/public_key.js, line 67

readPublicKey

Alias of read()

Source:
  • packet/public_key.js, line 290
See:
  • PublicKeyPacket#read

version :Integer

Packet version

Type:
  • Integer
Source:
  • packet/public_key.js, line 52

writePublicKey

Alias of write()

Source:
  • packet/public_key.js, line 297
See:
  • PublicKeyPacket#write

Methods

(async) computeFingerprint()

Computes and set the fingerprint of the key

Source:
  • packet/public_key.js, line 231

(async) computeFingerprintAndKeyID()

Computes and set the key ID and fingerprint of the key

Source:
  • packet/public_key.js, line 215

getAlgorithmInfo() → {Object}

Returns algorithm information

Source:
  • packet/public_key.js, line 271
Returns:

An object of the form {algorithm: String, bits:int, curve:String}.

Type
Object

getCreationTime() → {Date}

Returns the creation time of the key

Source:
  • packet/public_key.js, line 199
Returns:
Type
Date

getFingerprint() → {String}

Calculates and returns the fingerprint of the key, as a string

Source:
  • packet/public_key.js, line 255
Returns:

A string containing the fingerprint in lowercase hex

Type
String

getFingerprintBytes() → {Uint8Array}

Returns the fingerprint of the key, as an array of bytes

Source:
  • packet/public_key.js, line 247
Returns:

A Uint8Array containing the fingerprint

Type
Uint8Array

getKeyID() → {module:type/keyid~KeyID}

Return the key ID of the key

Source:
  • packet/public_key.js, line 207
Returns:

The 8-byte key ID

Type
module:type/keyid~KeyID

hasSameFingerprintAs() → {Boolean}

Calculates whether two keys have the same fingerprint without actually calculating the fingerprint

Source:
  • packet/public_key.js, line 263
Returns:

Whether the two keys have the same version and public key data.

Type
Boolean

isDecrypted() → {Boolean|null}

Check whether secret-key data is available in decrypted form. Returns null for public keys.

Source:
  • packet/public_key.js, line 191
Returns:
Type
Boolean | null

(async) read(bytes) → {Promise.<number>}

Internal Parser for public keys as specified in RFC 4880 section 5.5.2 Public-Key Packet Formats

Parameters:
Name Type Description
bytes Uint8Array

Input array to read the packet from

Source:
  • packet/public_key.js, line 109
Returns:

The number of bytes read from bytes

Type
Promise.<number>

write() → {Uint8Array}

Creates an OpenPGP public key packet for the given key.

Source:
  • packet/public_key.js, line 157
Returns:

Bytes encoding the public key OpenPGP packet.

Type
Uint8Array

writeForHash(version)

Write packet in order to be hashed; either for a signature or a fingerprint

Parameters:
Name Type Description
version Integer

target version of signature or key

Source:
  • packet/public_key.js, line 179

(static) fromSecretKeyPacket(secretKeyPacket) → {PublicKeyPacket}

Create a PublicKeyPacket from a SecretKeyPacket

Parameters:
Name Type Description
secretKeyPacket SecretKeyPacket

key packet to convert

Source:
  • packet/public_key.js, line 91
Returns:

public key packet

Type
PublicKeyPacket
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.