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

This commit is contained in:
Fedor 2019-12-25 15:47:55 +03:00
parent ab0067bd7d
commit 6ba30e77c9
1 changed files with 1 additions and 1 deletions

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