Fix pk11_DecryptInit for AES. It was telling AES to encrypt, not decrypt.

This commit is contained in:
nelsonb%netscape.com 2001-09-20 02:56:18 +00:00
Родитель ef9e88c813
Коммит 636f968efc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1144,7 +1144,7 @@ finish_des:
(unsigned char*)att->attrib.pValue, (unsigned char*)att->attrib.pValue,
(unsigned char*)pMechanism->pParameter, (unsigned char*)pMechanism->pParameter,
pMechanism->mechanism == CKM_AES_ECB ? NSS_AES : NSS_AES_CBC, 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); pk11_FreeAttribute(att);
if (context->cipherInfo == NULL) { if (context->cipherInfo == NULL) {
crv = CKR_HOST_MEMORY; crv = CKR_HOST_MEMORY;