summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index 1c8c6b36fb..eb797b86ee 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -79,10 +79,6 @@ const {
} = require('internal/crypto/util');
const Certificate = require('internal/crypto/certificate');
-function createECDH(curve) {
- return new ECDH(curve);
-}
-
module.exports = exports = {
// Methods
_toBuf: toBuf,
@@ -92,7 +88,7 @@ module.exports = exports = {
createDecipheriv: Decipheriv,
createDiffieHellman: DiffieHellman,
createDiffieHellmanGroup: DiffieHellmanGroup,
- createECDH,
+ createECDH: ECDH,
createHash: Hash,
createHmac: Hmac,
createSign: Sign,
@@ -124,6 +120,7 @@ module.exports = exports = {
Decipheriv,
DiffieHellman,
DiffieHellmanGroup,
+ ECDH,
Hash,
Hmac,
Sign,