fix codeql warning

This commit is contained in:
Hare Sudhan 2024-02-25 17:06:09 -05:00
parent eadc74e4f4
commit 3e2dddc56a

View file

@ -67,15 +67,12 @@ class DeriveEVPKey extends Operation {
iterations = args[2],
hasher = args[3],
salt = Utils.convertToByteString(args[4].string, args[4].option),
key = CryptoJS.EvpKDF(
passphrase, // lgtm [js/insufficient-password-hash]
salt,
{
keySize: keySize,
hasher: CryptoJS.algo[hasher],
iterations: iterations
}
);
// prettier-ignore
key = CryptoJS.EvpKDF(passphrase, salt, { // lgtm [js/insufficient-password-hash]
keySize: keySize,
hasher: CryptoJS.algo[hasher],
iterations: iterations
});
return key.toString(CryptoJS.enc.Hex);
}