From 03d96c3e965fd69a348d752aa377b374ffb4851a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Th=C3=B6rnblad?= Date: Tue, 24 Jun 2025 11:14:05 +0200 Subject: [PATCH] tool: Fix b2s BLAKE2s digest zero padding --- hw/application_fpga/tools/b2s/b2s.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/application_fpga/tools/b2s/b2s.go b/hw/application_fpga/tools/b2s/b2s.go index 7b73672..bfd9afe 100644 --- a/hw/application_fpga/tools/b2s/b2s.go +++ b/hw/application_fpga/tools/b2s/b2s.go @@ -20,7 +20,7 @@ func printCDigest(digest [blake2s.Size]byte, fileName string) { fmt.Printf("const uint8_t digest[32] = {\n") for _, n := range digest { - fmt.Printf("0x%x, ", n) + fmt.Printf("0x%02x, ", n) } fmt.Printf("\n}; \n")