summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-09-04 16:51:31 +0000
committertb <>2025-09-04 16:51:31 +0000
commit6fe3e1bf361ccba3ce9b0bfb14e316671908044c (patch)
treeb7c65c86390eaa6955bbb8998164dcc1a0a7fec1
parent1118fe21e2836602ad2f3fa691ac4126a59c42d6 (diff)
downloadopenbsd-6fe3e1bf361ccba3ce9b0bfb14e316671908044c.tar.gz
openbsd-6fe3e1bf361ccba3ce9b0bfb14e316671908044c.tar.bz2
openbsd-6fe3e1bf361ccba3ce9b0bfb14e316671908044c.zip
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.
-rw-r--r--src/regress/lib/libcrypto/wycheproof/wycheproof.go6
1 files 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 @@
1/* $OpenBSD: wycheproof.go,v 1.165 2025/09/04 16:48:42 tb Exp $ */ 1/* $OpenBSD: wycheproof.go,v 1.166 2025/09/04 16:51:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018,2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018,2023 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2018,2019,2022-2024 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018,2019,2022-2024 Theo Buehler <tb@openbsd.org>
@@ -2639,7 +2639,7 @@ func testGroupFromAlgorithm(algorithm string, variant testVariant) wycheproofTes
2639 return &wycheproofTestGroupEdDSA{} 2639 return &wycheproofTestGroupEdDSA{}
2640 case "HKDF-SHA-1", "HKDF-SHA-256", "HKDF-SHA-384", "HKDF-SHA-512": 2640 case "HKDF-SHA-1", "HKDF-SHA-256", "HKDF-SHA-384", "HKDF-SHA-512":
2641 return &wycheproofTestGroupHkdf{} 2641 return &wycheproofTestGroupHkdf{}
2642 case "HMACSHA1", "HMACSHA224", "HMACSHA256", "HMACSHA384", "HMACSHA512", "HMACSHA3-224", "HMACSHA3-256", "HMACSHA3-384", "HMACSHA3-512": 2642 case "HMACSHA1", "HMACSHA224", "HMACSHA256", "HMACSHA384", "HMACSHA512", "HMACSHA512/224", "HMACSHA512/256", "HMACSHA3-224", "HMACSHA3-256", "HMACSHA3-384", "HMACSHA3-512":
2643 return &wycheproofTestGroupHmac{} 2643 return &wycheproofTestGroupHmac{}
2644 case "KW": 2644 case "KW":
2645 return &wycheproofTestGroupKW{} 2645 return &wycheproofTestGroupKW{}
@@ -2771,7 +2771,7 @@ func main() {
2771 {v0, "EDDSA", "eddsa_test.json", Normal}, 2771 {v0, "EDDSA", "eddsa_test.json", Normal},
2772 {v0, "ED448", "ed448_test.json", Skip}, 2772 {v0, "ED448", "ed448_test.json", Skip},
2773 {v0, "HKDF", "hkdf_sha*_test.json", Normal}, 2773 {v0, "HKDF", "hkdf_sha*_test.json", Normal},
2774 {v0, "HMAC", "hmac_sha*_test.json", Normal}, 2774 {v1, "HMAC", "hmac_sha*_test.json", Normal},
2775 {v0, "JSON webcrypto", "json_web_*_test.json", Skip}, 2775 {v0, "JSON webcrypto", "json_web_*_test.json", Skip},
2776 {v0, "KW", "kw_test.json", Normal}, 2776 {v0, "KW", "kw_test.json", Normal},
2777 {v0, "Primality test", "primality_test.json", Normal}, 2777 {v0, "Primality test", "primality_test.json", Normal},