From 636f968efcee1590773ff572ef020571bd68c5db Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Thu, 20 Sep 2001 02:56:18 +0000 Subject: [PATCH] Fix pk11_DecryptInit for AES. It was telling AES to encrypt, not decrypt. --- security/nss/lib/softoken/pkcs11c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/nss/lib/softoken/pkcs11c.c b/security/nss/lib/softoken/pkcs11c.c index 46c554617c74..c2c4ac62e81d 100644 --- a/security/nss/lib/softoken/pkcs11c.c +++ b/security/nss/lib/softoken/pkcs11c.c @@ -1144,7 +1144,7 @@ finish_des: (unsigned char*)att->attrib.pValue, (unsigned char*)pMechanism->pParameter, pMechanism->mechanism == CKM_AES_ECB ? NSS_AES : NSS_AES_CBC, - PR_TRUE, att->attrib.ulValueLen,16); + PR_FALSE, att->attrib.ulValueLen,16); pk11_FreeAttribute(att); if (context->cipherInfo == NULL) { crv = CKR_HOST_MEMORY;