Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix password hash calculation

This was hardcoded, rather than being based on the actual password length,
resulting in incorrect hashes being generated.
  • Loading branch information...
commit 631773c28f450df646d57a53026b1cb1485aa0d5 1 parent eb4c59b
Matthew Garrett authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  MokManager.c
View
3  MokManager.c
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.