Skip to content

Commit

Permalink
secboot: fix building of primary digest
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed Jan 16, 2025
1 parent 39dc92b commit d80dab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secboot/secboot_sb.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func GetPrimaryKeyDigest(devicePath string, alg crypto.Hash) (salt []byte, diges
return nil, nil, err
}

h := hmac.New(alg.New, salt[:])
h := hmac.New(alg.New, saltArray[:])

Check warning on line 429 in secboot/secboot_sb.go

View check run for this annotation

Codecov / codecov/patch

secboot/secboot_sb.go#L429

Added line #L429 was not covered by tests
h.Write(p)
return saltArray[:], h.Sum(nil), nil
}
Expand Down

0 comments on commit d80dab9

Please sign in to comment.