GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.openpgpjs.org — JSDoc: Class: SecretSubkeyPacket Constructornew SecretSubkeyPacket(dateopt, configopt)Parameters:
ExtendsMembersaead :enums.aeadAEAD algorithm to encrypt the key with (if AEAD protection is enabled) Type:
algorithm :enums.publicKeyPublic key algorithm. Type:
created :DateKey creation date. Type:
expirationTimeV3 :IntegerTime until expiration in days (V3 only) Type:
fingerprint :Uint8ArrayFingerprint bytes Type:
isEncryptedIndicates whether secret-key data is encrypted.
keyID :module:type/keyid~KeyIDKeyID Type:
keyMaterialSecret-key data
privateParams :ObjectDecrypted private parameters, referenced by name Type:
publicParams :ObjectAlgorithm specific public params Type:
readPublicKeyAlias of read()
s2k :type/s2kS2K object Type:
s2kUsage :numberS2K usage Type:
symmetric :enums.symmetricSymmetric algorithm to encrypt the key with Type:
version :IntegerPacket version Type:
writePublicKeyAlias of write()
MethodsclearPrivateParams()Clear private key parameters
(async) computeFingerprint()Computes and set the fingerprint of the key
(async) computeFingerprintAndKeyID()Computes and set the key ID and fingerprint of the key
(async) decrypt(passphrase, config)Decrypts the private key params which are needed to use the key. Successful decryption does not imply key integrity, call validate() to confirm that. SecretKeyPacket.isDecrypted should be false, as otherwise calls to this function will throw an error. Parameters:
Throws:
(async) encrypt(passphrase, configopt)Encrypt the payload. By default, we use aes256 and iterated, salted string to key specifier. If the key is in a decrypted state (isEncrypted === false) and the passphrase is empty or undefined, the key will be set as not encrypted. This can be used to remove passphrase protection after calling decrypt(). Parameters:
Throws:
getAlgorithmInfo() → {Object}Returns algorithm information
Returns:An object of the form {algorithm: String, bits:int, curve:String}.
getCreationTime() → {Date}Returns the creation time of the key
Returns:
getFingerprint() → {String}Calculates and returns the fingerprint of the key, as a string
Returns:A string containing the fingerprint in lowercase hex
getFingerprintBytes() → {Uint8Array}Returns the fingerprint of the key, as an array of bytes
Returns:A Uint8Array containing the fingerprint
getKeyID() → {module:type/keyid~KeyID}Return the key ID of the key
Returns:The 8-byte key ID
hasSameFingerprintAs() → {Boolean}Calculates whether two keys have the same fingerprint without actually calculating the fingerprint
Returns:Whether the two keys have the same version and public key data.
isDecrypted() → {Boolean|null}Check whether secret-key data is available in decrypted form. Returns false for gnu-dummy keys and null for public keys.
Returns:
isDummy() → {Boolean}Check whether this is a gnu-dummy key
Returns:
isMissingSecretKeyMaterial()Check whether the key includes secret key material. Some secret keys do not include it, and can thus only be used for public-key operations (encryption and verification). Such keys are:
makeDummy(configopt)Remove private key material, converting the key to a dummy one. The resulting key cannot be used for signing/decrypting but can still verify signatures. Parameters:
(async) read(bytes)Internal parser for private keys as specified in RFC4880bis-04 section 5.5.3 Parameters:
(async) validate()Checks that the key parameters are consistent
Throws:
write() → {Uint8Array}Creates an OpenPGP key packet for the given key.
Returns:A string of bytes containing the secret key OpenPGP packet.
writeForHash(version)Write packet in order to be hashed; either for a signature or a fingerprint Parameters:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |