From d927df43e6af72869900b65e826f985b345bb509 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Fri, 6 Dec 2019 16:06:30 +0100 Subject: [NSS] Bug 1586176 - EncryptUpdate should use maxout not block size. --- security/nss/lib/softoken/pkcs11c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'security/nss') diff --git a/security/nss/lib/softoken/pkcs11c.c b/security/nss/lib/softoken/pkcs11c.c index 327a67d5c..4837961f1 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()); -- cgit v1.2.3