crypto: add createCipher/WithIV functions · nodejs/node@72029b8 · GitHub
Skip to content

Commit 72029b8

Browse files
danbevaddaleax
authored andcommitted
crypto: add createCipher/WithIV functions
This commit extracts the common code from the Cipher/Cipheriv and Decipher/Decipheriv constructors into a separate function to avoid code duplication. Backport-PR-URL: #20706 PR-URL: #20164 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent bdd2856 commit 72029b8

1 file changed

Lines changed: 46 additions & 83 deletions

File tree

lib/internal/crypto/cipher.js

Lines changed: 46 additions & 83 deletions

0 commit comments

Comments
 (0)