mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 14:35:51 +00:00
Minor [skip ci]
This commit is contained in:
parent
81d2e8ce60
commit
aabeff2c21
@ -257,8 +257,8 @@ class Key {
|
|||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
async getSigningKey(keyID = null, date = new Date(), userID = {}, config = defaultConfig) {
|
async getSigningKey(keyID = null, date = new Date(), userID = {}, config = defaultConfig) {
|
||||||
const primaryKey = this.keyPacket;
|
|
||||||
await this.verifyPrimaryKey(date, userID, config);
|
await this.verifyPrimaryKey(date, userID, config);
|
||||||
|
const primaryKey = this.keyPacket;
|
||||||
try {
|
try {
|
||||||
helper.checkKeyRequirements(primaryKey, config);
|
helper.checkKeyRequirements(primaryKey, config);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -316,8 +316,8 @@ class Key {
|
|||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
async getEncryptionKey(keyID, date = new Date(), userID = {}, config = defaultConfig) {
|
async getEncryptionKey(keyID, date = new Date(), userID = {}, config = defaultConfig) {
|
||||||
const primaryKey = this.keyPacket;
|
|
||||||
await this.verifyPrimaryKey(date, userID, config);
|
await this.verifyPrimaryKey(date, userID, config);
|
||||||
|
const primaryKey = this.keyPacket;
|
||||||
try {
|
try {
|
||||||
helper.checkKeyRequirements(primaryKey, config);
|
helper.checkKeyRequirements(primaryKey, config);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user