@@ -56,7 +56,7 @@ const {
56
56
57
57
const assert = require ( 'internal/assert' ) ;
58
58
59
- const LazyTransform = require ( 'internal/streams/lazy_transform ' ) ;
59
+ const Transform = require ( 'internal/streams/transform ' ) ;
60
60
61
61
const { normalizeEncoding } = require ( 'internal/util' ) ;
62
62
@@ -122,7 +122,7 @@ function createCipherBase(cipher, credential, options, decipher, iv) {
122
122
}
123
123
this . _decoder = null ;
124
124
125
- ReflectApply ( LazyTransform , this , [ options ] ) ;
125
+ ReflectApply ( Transform , this , [ options ] ) ;
126
126
}
127
127
128
128
function createCipher ( cipher , password , options , decipher ) {
@@ -152,8 +152,8 @@ function Cipher(cipher, password, options) {
152
152
ReflectApply ( createCipher , this , [ cipher , password , options , true ] ) ;
153
153
}
154
154
155
- ObjectSetPrototypeOf ( Cipher . prototype , LazyTransform . prototype ) ;
156
- ObjectSetPrototypeOf ( Cipher , LazyTransform ) ;
155
+ ObjectSetPrototypeOf ( Cipher . prototype , Transform . prototype ) ;
156
+ ObjectSetPrototypeOf ( Cipher , Transform ) ;
157
157
158
158
Cipher . prototype . _transform = function _transform ( chunk , encoding , callback ) {
159
159
this . push ( this [ kHandle ] . update ( chunk , encoding ) ) ;
@@ -257,8 +257,8 @@ function addCipherPrototypeFunctions(constructor) {
257
257
constructor . prototype . setAAD = Cipher . prototype . setAAD ;
258
258
}
259
259
260
- ObjectSetPrototypeOf ( Cipheriv . prototype , LazyTransform . prototype ) ;
261
- ObjectSetPrototypeOf ( Cipheriv , LazyTransform ) ;
260
+ ObjectSetPrototypeOf ( Cipheriv . prototype , Transform . prototype ) ;
261
+ ObjectSetPrototypeOf ( Cipheriv , Transform ) ;
262
262
addCipherPrototypeFunctions ( Cipheriv ) ;
263
263
264
264
// The Decipher class is part of the legacy Node.js crypto API. It exposes
@@ -273,8 +273,8 @@ function Decipher(cipher, password, options) {
273
273
ReflectApply ( createCipher , this , [ cipher , password , options , false ] ) ;
274
274
}
275
275
276
- ObjectSetPrototypeOf ( Decipher . prototype , LazyTransform . prototype ) ;
277
- ObjectSetPrototypeOf ( Decipher , LazyTransform ) ;
276
+ ObjectSetPrototypeOf ( Decipher . prototype , Transform . prototype ) ;
277
+ ObjectSetPrototypeOf ( Decipher , Transform ) ;
278
278
addCipherPrototypeFunctions ( Decipher ) ;
279
279
280
280
// The Decipheriv class is part of the legacy Node.js crypto API. It exposes
@@ -289,8 +289,8 @@ function Decipheriv(cipher, key, iv, options) {
289
289
ReflectApply ( createCipherWithIV , this , [ cipher , key , options , false , iv ] ) ;
290
290
}
291
291
292
- ObjectSetPrototypeOf ( Decipheriv . prototype , LazyTransform . prototype ) ;
293
- ObjectSetPrototypeOf ( Decipheriv , LazyTransform ) ;
292
+ ObjectSetPrototypeOf ( Decipheriv . prototype , Transform . prototype ) ;
293
+ ObjectSetPrototypeOf ( Decipheriv , Transform ) ;
294
294
addCipherPrototypeFunctions ( Decipheriv ) ;
295
295
296
296
function getCipherInfo ( nameOrNid , options ) {
0 commit comments