From 6fe3e1bf361ccba3ce9b0bfb14e316671908044c Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 4 Sep 2025 16:51:31 +0000 Subject: wycheproof: migrate HMAC to v1 This is straightforward since the schema did not change. This adds coverage for HMAC-SHA512/224 and HMAC-SHA512/256. --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 0463a9b3be..f09793af41 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go @@ -1,4 +1,4 @@ -/* $OpenBSD: wycheproof.go,v 1.165 2025/09/04 16:48:42 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.166 2025/09/04 16:51:31 tb Exp $ */ /* * Copyright (c) 2018,2023 Joel Sing * Copyright (c) 2018,2019,2022-2024 Theo Buehler @@ -2639,7 +2639,7 @@ func testGroupFromAlgorithm(algorithm string, variant testVariant) wycheproofTes return &wycheproofTestGroupEdDSA{} case "HKDF-SHA-1", "HKDF-SHA-256", "HKDF-SHA-384", "HKDF-SHA-512": return &wycheproofTestGroupHkdf{} - case "HMACSHA1", "HMACSHA224", "HMACSHA256", "HMACSHA384", "HMACSHA512", "HMACSHA3-224", "HMACSHA3-256", "HMACSHA3-384", "HMACSHA3-512": + case "HMACSHA1", "HMACSHA224", "HMACSHA256", "HMACSHA384", "HMACSHA512", "HMACSHA512/224", "HMACSHA512/256", "HMACSHA3-224", "HMACSHA3-256", "HMACSHA3-384", "HMACSHA3-512": return &wycheproofTestGroupHmac{} case "KW": return &wycheproofTestGroupKW{} @@ -2771,7 +2771,7 @@ func main() { {v0, "EDDSA", "eddsa_test.json", Normal}, {v0, "ED448", "ed448_test.json", Skip}, {v0, "HKDF", "hkdf_sha*_test.json", Normal}, - {v0, "HMAC", "hmac_sha*_test.json", Normal}, + {v1, "HMAC", "hmac_sha*_test.json", Normal}, {v0, "JSON webcrypto", "json_web_*_test.json", Skip}, {v0, "KW", "kw_test.json", Normal}, {v0, "Primality test", "primality_test.json", Normal}, -- cgit v1.2.3-55-g6feb