зеркало из https://github.com/mozilla/gecko-dev.git
Fix pk11_DecryptInit for AES. It was telling AES to encrypt, not decrypt.
This commit is contained in:
Родитель
ef9e88c813
Коммит
636f968efc
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче