diff options
author | Filip Skokan <panva.ip@gmail.com> | 2019-03-11 21:26:22 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2019-03-17 10:53:58 +0100 |
commit | f1056542f0cf2520e122d93afbaada6b6599e49b (patch) | |
tree | 4e6a924a51e3bfbb24cad81e28ef140fdecb4708 /lib/crypto.js | |
parent | 6913bd183b5ffaa08fe71c9f3cb9ed1c964eab05 (diff) | |
download | android-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.js | 4 |
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 }; |