Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
crypto: allow to restrict valid GCM tag length
This change allows users to restrict accepted GCM authentication tag lengths to a single value. PR-URL: #20039 Fixes: #17523 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yihong Wang <yh.wang@ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
- Loading branch information
Showing
with
74 additions
and 7 deletions.
- +7 −1 doc/api/crypto.md
- +28 −5 src/node_crypto.cc
- +2 −1 src/node_crypto.h
- +37 −0 test/parallel/test-crypto-authenticated.js