crypto: remove legacy native handles · nodejs/node@2f1ed5c (original) (raw)
`@@ -20,7 +20,6 @@ const {
`
20
20
`const {
`
21
21
` getDefaultEncoding,
`
22
22
` kHandle,
`
23
``
`-
legacyNativeHandle,
`
24
23
` toBuf
`
25
24
`} = require('internal/crypto/util');
`
26
25
``
`@@ -219,8 +218,6 @@ Cipher.prototype.setAAD = function setAAD(aadbuf, options) {
`
219
218
`return this;
`
220
219
`};
`
221
220
``
222
``
`-
legacyNativeHandle(Cipher);
`
223
``
-
224
221
`function Cipheriv(cipher, key, iv, options) {
`
225
222
`if (!(this instanceof Cipheriv))
`
226
223
`return new Cipheriv(cipher, key, iv, options);
`
`@@ -245,7 +242,6 @@ function addCipherPrototypeFunctions(constructor) {
`
245
242
`Object.setPrototypeOf(Cipheriv.prototype, LazyTransform.prototype);
`
246
243
`Object.setPrototypeOf(Cipheriv, LazyTransform);
`
247
244
`addCipherPrototypeFunctions(Cipheriv);
`
248
``
`-
legacyNativeHandle(Cipheriv);
`
249
245
``
250
246
`function Decipher(cipher, password, options) {
`
251
247
`if (!(this instanceof Decipher))
`
`@@ -257,7 +253,6 @@ function Decipher(cipher, password, options) {
`
257
253
`Object.setPrototypeOf(Decipher.prototype, LazyTransform.prototype);
`
258
254
`Object.setPrototypeOf(Decipher, LazyTransform);
`
259
255
`addCipherPrototypeFunctions(Decipher);
`
260
``
`-
legacyNativeHandle(Decipher);
`
261
256
``
262
257
``
263
258
`function Decipheriv(cipher, key, iv, options) {
`
`@@ -270,7 +265,6 @@ function Decipheriv(cipher, key, iv, options) {
`
270
265
`Object.setPrototypeOf(Decipheriv.prototype, LazyTransform.prototype);
`
271
266
`Object.setPrototypeOf(Decipheriv, LazyTransform);
`
272
267
`addCipherPrototypeFunctions(Decipheriv);
`
273
``
`-
legacyNativeHandle(Decipheriv);
`
274
268
``
275
269
`module.exports = {
`
276
270
` Cipher,
`