diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-04-11 14:26:09 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-04-14 10:34:22 -0700 |
commit | 2f9775995f6b2438db7eaacfa37989fe21195321 (patch) | |
tree | 84e52c5990a98a461697f439c7c53baaa4597fb8 /lib | |
parent | 72dc1ae709c704924c47c2ce2047fc113a633806 (diff) | |
download | android-node-v8-2f9775995f6b2438db7eaacfa37989fe21195321.tar.gz android-node-v8-2f9775995f6b2438db7eaacfa37989fe21195321.tar.bz2 android-node-v8-2f9775995f6b2438db7eaacfa37989fe21195321.zip |
crypto: move Decipher.finaltol to End-of-Life
Refs: https://github.com/nodejs/node/pull/19353
PR-URL: https://github.com/nodejs/node/pull/19941
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/crypto/cipher.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/internal/crypto/cipher.js b/lib/internal/crypto/cipher.js index d33a970148..118fc1da5b 100644 --- a/lib/internal/crypto/cipher.js +++ b/lib/internal/crypto/cipher.js @@ -31,7 +31,7 @@ const LazyTransform = require('internal/streams/lazy_transform'); const { StringDecoder } = require('string_decoder'); const { inherits } = require('util'); -const { deprecate, normalizeEncoding } = require('internal/util'); +const { normalizeEncoding } = require('internal/util'); function rsaPublic(method, defaultPadding) { return function(options, buffer) { @@ -240,10 +240,6 @@ Cipheriv.prototype.setAuthTag = Cipher.prototype.setAuthTag; Cipheriv.prototype.setAAD = Cipher.prototype.setAAD; -const finaltol = deprecate(Cipher.prototype.final, - 'crypto.Decipher.finaltol is deprecated. Use ' + - 'crypto.Decipher.final instead.', 'DEP0105'); - function Decipher(cipher, password, options) { if (!(this instanceof Decipher)) return new Decipher(cipher, password, options); @@ -275,7 +271,6 @@ Decipher.prototype._transform = Cipher.prototype._transform; Decipher.prototype._flush = Cipher.prototype._flush; Decipher.prototype.update = Cipher.prototype.update; Decipher.prototype.final = Cipher.prototype.final; -Decipher.prototype.finaltol = finaltol; Decipher.prototype.setAutoPadding = Cipher.prototype.setAutoPadding; Decipher.prototype.getAuthTag = Cipher.prototype.getAuthTag; Decipher.prototype.setAuthTag = Cipher.prototype.setAuthTag; @@ -322,7 +317,6 @@ Decipheriv.prototype._transform = Cipher.prototype._transform; Decipheriv.prototype._flush = Cipher.prototype._flush; Decipheriv.prototype.update = Cipher.prototype.update; Decipheriv.prototype.final = Cipher.prototype.final; -Decipheriv.prototype.finaltol = finaltol; Decipheriv.prototype.setAutoPadding = Cipher.prototype.setAutoPadding; Decipheriv.prototype.getAuthTag = Cipher.prototype.getAuthTag; Decipheriv.prototype.setAuthTag = Cipher.prototype.setAuthTag; |