Skip to content
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...
1 parent eb4c59b commit 631773c28f450df646d57a53026b1cb1485aa0d5 Matthew Garrett committed Oct 23, 2012
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");

0 comments on commit 631773c

Please sign in to comment.
Something went wrong with that request. Please try again.