From d80dab9d109eef84b62094774356757fac259652 Mon Sep 17 00:00:00 2001 From: Valentin David Date: Thu, 16 Jan 2025 15:22:21 +0100 Subject: [PATCH] secboot: fix building of primary digest --- secboot/secboot_sb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secboot/secboot_sb.go b/secboot/secboot_sb.go index beb76acdcbf..09801c3480b 100644 --- a/secboot/secboot_sb.go +++ b/secboot/secboot_sb.go @@ -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[:]) h.Write(p) return saltArray[:], h.Sum(nil), nil }