added ECC curve options to docs
This commit is contained in:
parent
2d1a1130d7
commit
bf00fbd3ea
|
@ -18,6 +18,7 @@
|
|||
// Implementation of ECDSA following RFC6637 for Openpgpjs
|
||||
|
||||
/**
|
||||
* @requires crypto/hash
|
||||
* @requires crypto/public_key/jsbn
|
||||
* @requires crypto/public_key/elliptic/curves
|
||||
* @module crypto/public_key/elliptic/ecdsa
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
// Implementation of EdDSA for OpenPGP
|
||||
// Implementation of EdDSA following RFC4880bis-02 for OpenPGP
|
||||
|
||||
/**
|
||||
* @requires crypto/hash
|
||||
* @requires crypto/public_key/jsbn
|
||||
* @requires crypto/public_key/elliptic/curves
|
||||
* @module crypto/public_key/elliptic/eddsa
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
|
|
|
@ -18,8 +18,15 @@
|
|||
// Wrapper for a KeyPair of an Elliptic Curve
|
||||
|
||||
/**
|
||||
* @requires bn.js
|
||||
* @requires asn1.js
|
||||
* @requires jwk-to-pem
|
||||
* @requires crypto/public_key/elliptic/curves
|
||||
* @requires crypto/hash
|
||||
* @requires util
|
||||
* @requires enums
|
||||
* @requires config
|
||||
* @requires encoding/base64
|
||||
* @module crypto/public_key/elliptic/key
|
||||
*/
|
||||
|
||||
|
|
|
@ -92,7 +92,8 @@ export function destroyWorker() {
|
|||
* Generates a new OpenPGP key pair. Supports RSA and ECC keys. Primary and subkey will be of same type.
|
||||
* @param {Array<Object>} userIds array of user IDs e.g. [{ name:'Phil Zimmermann', email:'phil@openpgp.org' }]
|
||||
* @param {String} passphrase (optional) The passphrase used to encrypt the resulting private key
|
||||
* @param {Number} numBits (optional) number of bits for the key creation. (should be 2048 or 4096)
|
||||
* @param {Number} numBits (optional) number of bits for RSA keys: 2048 or 4096.
|
||||
* @param {String} curve (optional) elliptic curve for ECC keys: curve25519, p256, p384, p521, or secp256k1
|
||||
* @param {Boolean} unlocked (optional) If the returned secret part of the generated key is unlocked
|
||||
* @param {Number} keyExpirationTime (optional) The number of seconds after the key creation time that the key expires
|
||||
* @return {Promise<Object>} The generated key object in the form:
|
||||
|
|
Loading…
Reference in New Issue
Block a user