diff --git a/src/key/helper.js b/src/key/helper.js index 3f82f905..3e2656b3 100644 --- a/src/key/helper.js +++ b/src/key/helper.js @@ -64,7 +64,7 @@ export function isDataExpired(keyPacket, signature, date = new Date()) { /** * Create Binding signature to the key according to the {@link https://tools.ietf.org/html/rfc4880#section-5.2.1} - * @param {module:packet.SecretSubkey|} subkey Subkey key packet + * @param {module:packet.SecretSubkey} subkey Subkey key packet * @param {module:packet.SecretKey} primaryKey Primary key packet * @param {Object} options */ diff --git a/src/key/key.js b/src/key/key.js index 68db12e8..5d5b6b16 100644 --- a/src/key/key.js +++ b/src/key/key.js @@ -310,7 +310,7 @@ Key.prototype.getSigningKey = async function (keyId = null, date = new Date(), u Key.prototype.getEncryptionKey = async function(keyId, date = new Date(), userId = {}) { const primaryKey = this.keyPacket; if (await this.verifyPrimaryKey(date, userId) === enums.keyStatus.valid) { - // V4: by convention subkeys are preffered for encryption service + // V4: by convention subkeys are preferred for encryption service const subKeys = this.subKeys.slice().sort((a, b) => b.keyPacket.created - a.keyPacket.created); for (let i = 0; i < subKeys.length; i++) { if (!keyId || subKeys[i].getKeyId().equals(keyId)) { @@ -760,7 +760,7 @@ Key.prototype.verifyAllUsers = async function(keys) { * The number of seconds after the key creation time that the key expires * @param {String} curve (optional) Elliptic curve for ECC keys * @param {Date} date (optional) Override the creation date of the key and the key signatures - * @param {Boolean} subkeys (optional) Indicates whether the subkey should sign rather than encrypt. Defaults to false + * @param {Boolean} sign (optional) Indicates whether the subkey should sign rather than encrypt. Defaults to false * @returns {Promise} * @async */