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.2
  • 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: SignaturePacket

Constructor

new SignaturePacket()

Source:
  • packet/signature.js, line 56

Members

hashAlgorithm :enums.hash

Type:
  • enums.hash
Source:
  • packet/signature.js, line 66

publicKeyAlgorithm :enums.publicKey

Type:
  • enums.publicKey
Source:
  • packet/signature.js, line 68

reasonForRevocationString :String|null

Type:
  • String | null
Source:
  • packet/signature.js, line 103

signatureType :enums.signature

Type:
  • enums.signature
Source:
  • packet/signature.js, line 64

Methods

getExpirationTime() → {Date|Infinity}

Returns the expiration time of the signature or Infinity if signature does not expire

Source:
  • packet/signature.js, line 846
Returns:

Expiration time.

Type
Date | Infinity

isExpired(dateopt) → {Boolean}

Verifies signature expiration date

Parameters:
Name Type Attributes Description
date Date <optional>

Use the given date for verification instead of the current time

Source:
  • packet/signature.js, line 834
Returns:

True if expired.

Type
Boolean

read(bytes) → {SignaturePacket}

parsing function for a signature packet (tag 2).

Parameters:
Name Type Description
bytes String

Payload of a tag 2 packet

Source:
  • packet/signature.js, line 123
Returns:

Object representation.

Type
SignaturePacket

(async) sign(key, data, dateopt, detachedopt)

Signs provided data. This needs to be done prior to serialization.

Parameters:
Name Type Attributes Default Description
key SecretKeyPacket

Private key used to sign the message.

data Object

Contains packets to be signed.

date Date <optional>

The signature creation time.

detached Boolean <optional>
false

Whether to create a detached signature

Source:
  • packet/signature.js, line 213
Throws:

if signing failed

Type
Error

(async) verify(key, signatureType, data, dateopt, detachedopt, configopt)

verifies the signature packet. Note: not all signature types are implemented

Parameters:
Name Type Attributes Default Description
key PublicSubkeyPacket | PublicKeyPacket | SecretSubkeyPacket | SecretKeyPacket

the public key to verify the signature

signatureType module:enums.signature

Expected signature type

data Uint8Array | Object

Data which on the signature applies

date Date <optional>

Use the given date instead of the current time to check for signature validity and expiration

detached Boolean <optional>
false

Whether to verify a detached signature

config Object <optional>

Full configuration, defaults to openpgp.config

Source:
  • packet/signature.js, line 761
Throws:

if signature validation failed

Type
Error

writeHashedSubPackets() → {Uint8Array}

Creates Uint8Array of bytes of all subpacket data except Issuer and Embedded Signature subpackets

Source:
  • packet/signature.js, line 282
Returns:

Subpacket data.

Type
Uint8Array

writeParams() → {Uint8Array|ReadableStream.<Uint8Array>}

Source:
  • packet/signature.js, line 182
Returns:
Type
Uint8Array | ReadableStream.<Uint8Array>

writeUnhashedSubPackets() → {Uint8Array}

Creates an Uint8Array containing the unhashed subpackets

Source:
  • packet/signature.js, line 406
Returns:

Subpacket data.

Type
Uint8Array
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.