mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -205,8 +205,7 @@ sftkdb_encrypt_stub(PLArenaPool *arena, SDB *sdb, SECItem *plainText,
|
|||
iterationCount = 1;
|
||||
}
|
||||
|
||||
rv = sftkdb_EncryptAttribute(arena, handle, sdb, key, iterationCount,
|
||||
CK_INVALID_HANDLE, CKT_INVALID_TYPE,
|
||||
rv = sftkdb_EncryptAttribute(arena, key, iterationCount,
|
||||
plainText, cipherText);
|
||||
PZ_Unlock(handle->passwordLock);
|
||||
|
||||
|
|
@ -228,7 +227,7 @@ sftkdb_decrypt_stub(SDB *sdb, SECItem *cipherText, SECItem **plainText)
|
|||
return SECFailure;
|
||||
}
|
||||
|
||||
/* if we aren't the key handle, try the other handle */
|
||||
/* if we aren't th handle, try the other handle */
|
||||
oldKey = handle->oldKey;
|
||||
if (handle->type != SFTK_KEYDB_TYPE) {
|
||||
handle = handle->peerDB;
|
||||
|
|
@ -245,9 +244,7 @@ sftkdb_decrypt_stub(SDB *sdb, SECItem *cipherText, SECItem **plainText)
|
|||
/* PORT_SetError */
|
||||
return SECFailure;
|
||||
}
|
||||
rv = sftkdb_DecryptAttribute(NULL, oldKey ? oldKey : &handle->passwordKey,
|
||||
CK_INVALID_HANDLE,
|
||||
CKT_INVALID_TYPE,
|
||||
rv = sftkdb_DecryptAttribute(oldKey ? oldKey : &handle->passwordKey,
|
||||
cipherText, plainText);
|
||||
PZ_Unlock(handle->passwordLock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue