@@ -20,7 +20,6 @@ const {
2020const {
2121 getDefaultEncoding,
2222 kHandle,
23- legacyNativeHandle,
2423 toBuf
2524} = require ( 'internal/crypto/util' ) ;
2625
@@ -219,8 +218,6 @@ Cipher.prototype.setAAD = function setAAD(aadbuf, options) {
219218 return this ;
220219} ;
221220
222- legacyNativeHandle ( Cipher ) ;
223-
224221function Cipheriv ( cipher , key , iv , options ) {
225222 if ( ! ( this instanceof Cipheriv ) )
226223 return new Cipheriv ( cipher , key , iv , options ) ;
@@ -245,7 +242,6 @@ function addCipherPrototypeFunctions(constructor) {
245242Object . setPrototypeOf ( Cipheriv . prototype , LazyTransform . prototype ) ;
246243Object . setPrototypeOf ( Cipheriv , LazyTransform ) ;
247244addCipherPrototypeFunctions ( Cipheriv ) ;
248- legacyNativeHandle ( Cipheriv ) ;
249245
250246function Decipher ( cipher , password , options ) {
251247 if ( ! ( this instanceof Decipher ) )
@@ -257,7 +253,6 @@ function Decipher(cipher, password, options) {
257253Object . setPrototypeOf ( Decipher . prototype , LazyTransform . prototype ) ;
258254Object . setPrototypeOf ( Decipher , LazyTransform ) ;
259255addCipherPrototypeFunctions ( Decipher ) ;
260- legacyNativeHandle ( Decipher ) ;
261256
262257
263258function Decipheriv ( cipher , key , iv , options ) {
@@ -270,7 +265,6 @@ function Decipheriv(cipher, key, iv, options) {
270265Object . setPrototypeOf ( Decipheriv . prototype , LazyTransform . prototype ) ;
271266Object . setPrototypeOf ( Decipheriv , LazyTransform ) ;
272267addCipherPrototypeFunctions ( Decipheriv ) ;
273- legacyNativeHandle ( Decipheriv ) ;
274268
275269module . exports = {
276270 Cipher,
0 commit comments