summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Disselkoen <cdisselk@cs.ucsd.edu>2019-12-06 16:06:30 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-06 16:06:30 +0100
commitcaca92fcbd65b1c3c4a38428d69e8e16260648f6 (patch)
tree9bfb893c96ebc7df89584b9bb9bf657f6c95b746
parent6a6e8099d60afcf09c1c6ba7115004c52ffd5ab8 (diff)
downloaduxp-caca92fcbd65b1c3c4a38428d69e8e16260648f6.tar.gz
[NSS] Bug 1586176 - EncryptUpdate should use maxout not block size.
-rw-r--r--security/nss/lib/softoken/pkcs11c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/pkcs11c.c b/security/nss/lib/softoken/pkcs11c.c
index 327a67d5c0..4837961f14 100644
--- a/security/nss/lib/softoken/pkcs11c.c
+++ b/security/nss/lib/softoken/pkcs11c.c
@@ -1285,7 +1285,7 @@ NSC_EncryptUpdate(CK_SESSION_HANDLE hSession,
}
/* encrypt the current padded data */
rv = (*context->update)(context->cipherInfo, pEncryptedPart,
- &padoutlen, context->blockSize, context->padBuf,
+ &padoutlen, maxout, context->padBuf,
context->blockSize);
if (rv != SECSuccess) {
return sftk_MapCryptError(PORT_GetError());