diff options
author | Craig Disselkoen <cdisselk@cs.ucsd.edu> | 2019-11-19 11:54:57 -0700 |
---|---|---|
committer | Craig Disselkoen <cdisselk@cs.ucsd.edu> | 2019-11-19 11:54:57 -0700 |
commit | 30e7ff05547ac35c3a7a2185370bc676aefb5645 (patch) | |
tree | 66628d06a5d657dafde82d1904b9ad7e06d6a0f7 | |
parent | c3c3efe08681b1386ab7e6d7a91b4d0abd898afb (diff) | |
download | nss-hg-30e7ff05547ac35c3a7a2185370bc676aefb5645.tar.gz |
Bug 1586176 - EncryptUpdate should use maxout not block size. r=franziskus
-rw-r--r-- | lib/softoken/pkcs11c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/softoken/pkcs11c.c b/lib/softoken/pkcs11c.c index ccf9a02ae..265b7537b 100644 --- a/lib/softoken/pkcs11c.c +++ b/lib/softoken/pkcs11c.c @@ -1343,7 +1343,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()); |