mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-12 09:43:02 +00:00
Fix password hash calculation
This was hardcoded, rather than being based on the actual password length, resulting in incorrect hashes being generated.
This commit is contained in:
parent
eb4c59b0c8
commit
631773c28f
@ -803,8 +803,7 @@ static INTN mok_pw_prompt (void *MokPW, void *data2, void *data3) {
|
||||
continue;
|
||||
}
|
||||
|
||||
efi_status = compute_pw_hash(NULL, 0, password,
|
||||
SB_PASSWORD_LEN, hash);
|
||||
efi_status = compute_pw_hash(NULL, 0, password, length, hash);
|
||||
|
||||
if (efi_status != EFI_SUCCESS) {
|
||||
Print(L"Unable to generate password hash\n");
|
||||
|
Loading…
Reference in New Issue
Block a user