summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2019-03-11 21:26:22 +0100
committerTobias Nießen <tniessen@tnie.de>2019-03-17 10:53:58 +0100
commitf1056542f0cf2520e122d93afbaada6b6599e49b (patch)
tree4e6a924a51e3bfbb24cad81e28ef140fdecb4708 /lib/crypto.js
parent6913bd183b5ffaa08fe71c9f3cb9ed1c964eab05 (diff)
downloadandroid-node-v8-f1056542f0cf2520e122d93afbaada6b6599e49b.tar.gz
android-node-v8-f1056542f0cf2520e122d93afbaada6b6599e49b.tar.bz2
android-node-v8-f1056542f0cf2520e122d93afbaada6b6599e49b.zip
crypto: expose KeyObject class
PR-URL: https://github.com/nodejs/node/pull/26438 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index 8f26ac6c13..673a198466 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -60,7 +60,8 @@ const {
const {
createSecretKey,
createPublicKey,
- createPrivateKey
+ createPrivateKey,
+ KeyObject,
} = require('internal/crypto/keys');
const {
DiffieHellman,
@@ -191,6 +192,7 @@ module.exports = exports = {
ECDH,
Hash,
Hmac,
+ KeyObject,
Sign,
Verify
};