summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-12-06 19:11:57 +0000
committerrelyea%netscape.com <devnull@localhost>2002-12-06 19:11:57 +0000
commit1768c33a406aeeb7f50113873519655197bfdac8 (patch)
tree9036f09fb6d24c0a8656c35fefe88e93aae1e196
parentaf0baec3a0eb2ee6cebd94bf22321b242c80017e (diff)
downloadnss-hg-1768c33a406aeeb7f50113873519655197bfdac8.tar.gz
Fix padding value.
-rw-r--r--security/nss/lib/softoken/pkcs11c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/nss/lib/softoken/pkcs11c.c b/security/nss/lib/softoken/pkcs11c.c
index cc56a1041..731c03d6a 100644
--- a/security/nss/lib/softoken/pkcs11c.c
+++ b/security/nss/lib/softoken/pkcs11c.c
@@ -755,8 +755,9 @@ CK_RV NSC_EncryptUpdate(CK_SESSION_HANDLE hSession,
return CKR_OK;
}
/* encrypt the current padded data */
- rv = (*context->update)(context->cipherInfo,pEncryptedPart,
- &outlen,context->blockSize,context->padBuf,context->blockSize);
+ rv = (*context->update)(context->cipherInfo, pEncryptedPart,
+ &padoutlen, context->blockSize, context->padBuf,
+ context->blockSize);
if (rv != SECSuccess) return CKR_DEVICE_ERROR;
pEncryptedPart += padoutlen;
maxout -= padoutlen;