diff options
Diffstat (limited to 'lib/internal/crypto/diffiehellman.js')
-rw-r--r-- | lib/internal/crypto/diffiehellman.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/internal/crypto/diffiehellman.js b/lib/internal/crypto/diffiehellman.js index 3bfc531455..7ec2ce6e41 100644 --- a/lib/internal/crypto/diffiehellman.js +++ b/lib/internal/crypto/diffiehellman.js @@ -11,7 +11,6 @@ const { isArrayBufferView } = require('internal/util/types'); const { getDefaultEncoding, kHandle, - legacyNativeHandle, toBuf } = require('internal/crypto/util'); const { @@ -165,9 +164,6 @@ DiffieHellman.prototype.setPrivateKey = function setPrivateKey(key, encoding) { return this; }; -legacyNativeHandle(DiffieHellman); -legacyNativeHandle(DiffieHellmanGroup); - function ECDH(curve) { if (!(this instanceof ECDH)) @@ -195,8 +191,6 @@ ECDH.prototype.getPublicKey = function getPublicKey(encoding, format) { return encode(key, encoding); }; -legacyNativeHandle(ECDH); - ECDH.convertKey = function convertKey(key, curve, inEnc, outEnc, format) { if (typeof key !== 'string' && !isArrayBufferView(key)) { throw new ERR_INVALID_ARG_TYPE( |