summaryrefslogtreecommitdiff
path: root/lib/internal/crypto/cipher.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/crypto/cipher.js')
-rw-r--r--lib/internal/crypto/cipher.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/internal/crypto/cipher.js b/lib/internal/crypto/cipher.js
index dd6fe2d6d7..28bd1e57a6 100644
--- a/lib/internal/crypto/cipher.js
+++ b/lib/internal/crypto/cipher.js
@@ -20,7 +20,6 @@ const {
const {
getDefaultEncoding,
kHandle,
- legacyNativeHandle,
toBuf
} = require('internal/crypto/util');
@@ -219,8 +218,6 @@ Cipher.prototype.setAAD = function setAAD(aadbuf, options) {
return this;
};
-legacyNativeHandle(Cipher);
-
function Cipheriv(cipher, key, iv, options) {
if (!(this instanceof Cipheriv))
return new Cipheriv(cipher, key, iv, options);
@@ -245,7 +242,6 @@ function addCipherPrototypeFunctions(constructor) {
Object.setPrototypeOf(Cipheriv.prototype, LazyTransform.prototype);
Object.setPrototypeOf(Cipheriv, LazyTransform);
addCipherPrototypeFunctions(Cipheriv);
-legacyNativeHandle(Cipheriv);
function Decipher(cipher, password, options) {
if (!(this instanceof Decipher))
@@ -257,7 +253,6 @@ function Decipher(cipher, password, options) {
Object.setPrototypeOf(Decipher.prototype, LazyTransform.prototype);
Object.setPrototypeOf(Decipher, LazyTransform);
addCipherPrototypeFunctions(Decipher);
-legacyNativeHandle(Decipher);
function Decipheriv(cipher, key, iv, options) {
@@ -270,7 +265,6 @@ function Decipheriv(cipher, key, iv, options) {
Object.setPrototypeOf(Decipheriv.prototype, LazyTransform.prototype);
Object.setPrototypeOf(Decipheriv, LazyTransform);
addCipherPrototypeFunctions(Decipheriv);
-legacyNativeHandle(Decipheriv);
module.exports = {
Cipher,