mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 19:07:31 +09:00
parent
997e7cf404
commit
da15587e4a
1 changed files with 2 additions and 2 deletions
|
|
@ -273,7 +273,7 @@ sftkdb_EncryptAttribute(PLArenaPool *arena, SECItem *passKey,
|
||||||
RNG_GenerateGlobalRandomBytes(saltData, cipherValue.salt.len);
|
RNG_GenerateGlobalRandomBytes(saltData, cipherValue.salt.len);
|
||||||
|
|
||||||
param = nsspkcs5_NewParam(cipherValue.alg, HASH_AlgSHA1, &cipherValue.salt,
|
param = nsspkcs5_NewParam(cipherValue.alg, HASH_AlgSHA1, &cipherValue.salt,
|
||||||
30000);
|
1);
|
||||||
if (param == NULL) {
|
if (param == NULL) {
|
||||||
rv = SECFailure;
|
rv = SECFailure;
|
||||||
goto loser;
|
goto loser;
|
||||||
|
|
@ -444,7 +444,7 @@ sftkdb_SignAttribute(PLArenaPool *arena, SECItem *passKey,
|
||||||
RNG_GenerateGlobalRandomBytes(saltData, prfLength);
|
RNG_GenerateGlobalRandomBytes(saltData, prfLength);
|
||||||
|
|
||||||
/* initialize our pkcs5 parameter */
|
/* initialize our pkcs5 parameter */
|
||||||
param = nsspkcs5_NewParam(signValue.alg, HASH_AlgSHA1, &signValue.salt, 30000);
|
param = nsspkcs5_NewParam(signValue.alg, HASH_AlgSHA1, &signValue.salt, 1);
|
||||||
if (param == NULL) {
|
if (param == NULL) {
|
||||||
rv = SECFailure;
|
rv = SECFailure;
|
||||||
goto loser;
|
goto loser;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue