From 6fe73033a4b71b290182629f7efe12c8c30e6a9e Mon Sep 17 00:00:00 2001 From: Sanjana Rajan Date: Mon, 19 Mar 2018 19:11:20 -0700 Subject: [PATCH] docs --- src/key.js | 1 + src/openpgp.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/key.js b/src/key.js index 5c777b2a..8f9d23b7 100644 --- a/src/key.js +++ b/src/key.js @@ -1103,6 +1103,7 @@ export function readArmored(armoredText) { * @param {Boolean} [options.unlocked=false] The secret part of the generated key is unlocked * @param {Number} [options.keyExpirationTime=0] * The number of seconds after the key creation time that the key expires + * @param {Date} date Override the creation date of the key and the key signatures * @returns {Promise} * @async * @static diff --git a/src/openpgp.js b/src/openpgp.js index 8f9ff426..b1d77d0a 100644 --- a/src/openpgp.js +++ b/src/openpgp.js @@ -104,6 +104,7 @@ export function destroyWorker() { * brainpoolP256r1, brainpoolP384r1, or brainpoolP512r1. * @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 + * @param {Date} date (optional) override the creation date of the key and the key signatures * @returns {Promise} The generated key object in the form: * { key:Key, privateKeyArmored:String, publicKeyArmored:String } * @async