From 6c0c0c0fff07f922654269466348f8f9474f7799 Mon Sep 17 00:00:00 2001 From: Christoph Diehl <1614333+posidron@users.noreply.github.com> Date: Wed, 31 Jan 2018 12:08:56 +0100 Subject: [PATCH] Add two missing importKey methods --- lib/make/crypto.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/make/crypto.js b/lib/make/crypto.js index 2fe4177..35b1ea3 100644 --- a/lib/make/crypto.js +++ b/lib/make/crypto.js @@ -756,6 +756,9 @@ make.crypto = { generateKey: function () { return this.alg() }, + importKey: function () { + return this.alg() + }, deriveBits: function () { return Object.assign( this.alg(), @@ -787,7 +790,10 @@ make.crypto = { return { } }, - generateKey: () => { + generateKey: function () { + return this.alg() + }, + importKey: function () { return this.alg() }, deriveBits: function () {