[NSS] Bug 1586176 - EncryptUpdate should use maxout not block size.

This commit is contained in:
Craig Disselkoen 2019-12-06 16:06:30 +01:00 committed by Roy Tam
commit b7f6024e34

View file

@ -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());