diff options
author | Benjamin Beurdouche <bbeurdouche@mozilla.com> | 2020-07-18 00:13:38 +0000 |
---|---|---|
committer | Benjamin Beurdouche <bbeurdouche@mozilla.com> | 2020-07-18 00:13:38 +0000 |
commit | 1f3869123503ad1b85bd7aa2cfcdac49b5f09471 (patch) | |
tree | 05ea3a8f4ba574d7311819f5fbf64888f7f8c464 /lib/freebl | |
parent | bfc05d0925ffb6516d53c9892020a16a05b34861 (diff) | |
download | nss-hg-1f3869123503ad1b85bd7aa2cfcdac49b5f09471.tar.gz |
Bug 1636771 - Fix incorrect call to Chacha20Poly1305 by PKCS11. r=jcj,kjacobs,rrelyea
Differential Revision: https://phabricator.services.mozilla.com/D74801
Diffstat (limited to 'lib/freebl')
-rw-r--r-- | lib/freebl/chacha20poly1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freebl/chacha20poly1305.c b/lib/freebl/chacha20poly1305.c index 970c6436d..5c294a9ea 100644 --- a/lib/freebl/chacha20poly1305.c +++ b/lib/freebl/chacha20poly1305.c @@ -81,7 +81,7 @@ ChaCha20Poly1305_InitContext(ChaCha20Poly1305Context *ctx, PORT_SetError(SEC_ERROR_BAD_KEY); return SECFailure; } - if (tagLen == 0 || tagLen > 16) { + if (tagLen != 16) { PORT_SetError(SEC_ERROR_INPUT_LEN); return SECFailure; } |