crypto: check for invalid chacha20-poly1305 IVs · nodejs/node@b9787fd · GitHub
Skip to content

Commit b9787fd

Browse files
sam-githubBridgeAR
authored andcommitted
crypto: check for invalid chacha20-poly1305 IVs
IV lengths of 13, 14, 15, and 16 are invalid, but are not checked by OpenSSL. IV lengths of 17 or greater are also invalid, but they were already checked by OpenSSL. See: - openssl/openssl@f426625b6a - https://www.openssl.org/news/secadv/20190306.txt PR-URL: #26537 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 667a402 commit b9787fd

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

src/node_crypto.cc

Lines changed: 10 additions & 0 deletions

test/parallel/test-crypto-authenticated.js

Lines changed: 48 additions & 0 deletions

0 commit comments

Comments
 (0)