From 0328249cfb85e5c9c785d6dad76605f26b684210 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 20 Dec 2025 16:18:03 +0000 Subject: wycheproof: add minimal glue for the decaps validation tests --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 18c77f07b8..67957bd6b2 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.193 2025/09/16 15:45:34 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.194 2025/12/20 16:18:03 tb Exp $ */ /* * Copyright (c) 2018,2023 Joel Sing * Copyright (c) 2018,2019,2022-2025 Theo Buehler @@ -503,6 +503,7 @@ type wycheproofTestMLKEM struct { Comment string `json:"comment"` Seed string `json:"seed"` Ek string `json:"ek"` + Dk string `json:"dk"` M string `json:"m"` C string `json:"c"` K string `json:"K"` @@ -2447,6 +2448,10 @@ func runMLKEMEncapsTestGroup(rank C.int, wt *wycheproofTestMLKEM) bool { return true } +func runMLKEMDecapsValidationTest(rank C.int, wt *wycheproofTestMLKEM) bool { + return true +} + func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) bool { var rank C.int @@ -2471,6 +2476,8 @@ func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) runTest = runMLKEMTestGroup case "MLKEMEncapsTest": runTest = runMLKEMEncapsTestGroup + case "MLKEMDecapsValidationTest": + runTest = runMLKEMDecapsValidationTest default: log.Fatalf("Unknown ML-KEM test type %v", wtg.Type) } -- cgit v1.2.3-55-g6feb