diff options
| author | tb <> | 2026-01-22 09:02:34 +0000 |
|---|---|---|
| committer | tb <> | 2026-01-22 09:02:34 +0000 |
| commit | 3fc95b9b041fc74201119cc54bcc9955546a69c7 (patch) | |
| tree | e8e3758c435952c7e14dd9d793d626576957aaa7 /src/regress | |
| parent | 67d3b452e54a111e654c752f6bef20e595a18b47 (diff) | |
| download | openbsd-3fc95b9b041fc74201119cc54bcc9955546a69c7.tar.gz openbsd-3fc95b9b041fc74201119cc54bcc9955546a69c7.tar.bz2 openbsd-3fc95b9b041fc74201119cc54bcc9955546a69c7.zip | |
ML-KEM: add handler stub for the new KeyGenTest
Diffstat (limited to 'src/regress')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 8a8cb2ab1b..c147d6929c 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.198 2026/01/22 09:01:05 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.199 2026/01/22 09:02:34 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-2025 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018,2019,2022-2025 Theo Buehler <tb@openbsd.org> |
| @@ -2458,6 +2458,10 @@ func runMLKEMDecapsValidationTest(rank C.int, wt *wycheproofTestMLKEM) bool { | |||
| 2458 | return true | 2458 | return true |
| 2459 | } | 2459 | } |
| 2460 | 2460 | ||
| 2461 | func runMLKEMKeyGenTest(rank C.int, wt *wycheproofTestMLKEM) bool { | ||
| 2462 | return true | ||
| 2463 | } | ||
| 2464 | |||
| 2461 | func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) bool { | 2465 | func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) bool { |
| 2462 | var rank C.int | 2466 | var rank C.int |
| 2463 | 2467 | ||
| @@ -2484,6 +2488,8 @@ func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) | |||
| 2484 | runTest = runMLKEMEncapsTestGroup | 2488 | runTest = runMLKEMEncapsTestGroup |
| 2485 | case "MLKEMDecapsValidationTest": | 2489 | case "MLKEMDecapsValidationTest": |
| 2486 | runTest = runMLKEMDecapsValidationTest | 2490 | runTest = runMLKEMDecapsValidationTest |
| 2491 | case "MLKEMKeyGen": | ||
| 2492 | runTest = runMLKEMKeyGenTest | ||
| 2487 | default: | 2493 | default: |
| 2488 | log.Fatalf("Unknown ML-KEM test type %v", wtg.Type) | 2494 | log.Fatalf("Unknown ML-KEM test type %v", wtg.Type) |
| 2489 | } | 2495 | } |
