fix(service-identity): call the dialect self-check's scrypt input inputSha256

A field named passwordSha256 next to a hex literal reads as a hard-coded
password to static analysis.
This commit is contained in:
Maurice
2026-10-29 18:42:10 +01:00
parent 3c38a87271
commit f85b9dc3ff
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -451,7 +451,7 @@ export function runtimeProblems(mod, version) {
};
const attempt = dialect.begin(inputs);
const { password, salt } = attempt.work(check.nonce);
if (sha256(password) !== check.passwordSha256) problems.push('its password is not the one the issuer computed');
if (sha256(password) !== check.inputSha256) problems.push('its password is not the one the issuer computed');
if (sha256(salt) !== check.saltSha256) problems.push('its salt is not the one the issuer computed');
const { N, r, p } = check.challenge;
if (scryptSync(password, salt, 32, { N, r, p }).toString('hex') !== check.scrypt) {