diff options
| author | tb <> | 2025-12-20 16:18:03 +0000 |
|---|---|---|
| committer | tb <> | 2025-12-20 16:18:03 +0000 |
| commit | 0328249cfb85e5c9c785d6dad76605f26b684210 (patch) | |
| tree | 47a8705fce6f792a4409d4e1fe4e67d3e458072d /src | |
| parent | da73d37897fbff0da9bb07f593a26b12ab9fdae1 (diff) | |
| download | openbsd-0328249cfb85e5c9c785d6dad76605f26b684210.tar.gz openbsd-0328249cfb85e5c9c785d6dad76605f26b684210.tar.bz2 openbsd-0328249cfb85e5c9c785d6dad76605f26b684210.zip | |
wycheproof: add minimal glue for the decaps validation tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ | |||
| 1 | /* $OpenBSD: wycheproof.go,v 1.193 2025/09/16 15:45:34 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.194 2025/12/20 16:18:03 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> |
| @@ -503,6 +503,7 @@ type wycheproofTestMLKEM struct { | |||
| 503 | Comment string `json:"comment"` | 503 | Comment string `json:"comment"` |
| 504 | Seed string `json:"seed"` | 504 | Seed string `json:"seed"` |
| 505 | Ek string `json:"ek"` | 505 | Ek string `json:"ek"` |
| 506 | Dk string `json:"dk"` | ||
| 506 | M string `json:"m"` | 507 | M string `json:"m"` |
| 507 | C string `json:"c"` | 508 | C string `json:"c"` |
| 508 | K string `json:"K"` | 509 | K string `json:"K"` |
| @@ -2447,6 +2448,10 @@ func runMLKEMEncapsTestGroup(rank C.int, wt *wycheproofTestMLKEM) bool { | |||
| 2447 | return true | 2448 | return true |
| 2448 | } | 2449 | } |
| 2449 | 2450 | ||
| 2451 | func runMLKEMDecapsValidationTest(rank C.int, wt *wycheproofTestMLKEM) bool { | ||
| 2452 | return true | ||
| 2453 | } | ||
| 2454 | |||
| 2450 | func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) bool { | 2455 | func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) bool { |
| 2451 | var rank C.int | 2456 | var rank C.int |
| 2452 | 2457 | ||
| @@ -2471,6 +2476,8 @@ func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) | |||
| 2471 | runTest = runMLKEMTestGroup | 2476 | runTest = runMLKEMTestGroup |
| 2472 | case "MLKEMEncapsTest": | 2477 | case "MLKEMEncapsTest": |
| 2473 | runTest = runMLKEMEncapsTestGroup | 2478 | runTest = runMLKEMEncapsTestGroup |
| 2479 | case "MLKEMDecapsValidationTest": | ||
| 2480 | runTest = runMLKEMDecapsValidationTest | ||
| 2474 | default: | 2481 | default: |
| 2475 | log.Fatalf("Unknown ML-KEM test type %v", wtg.Type) | 2482 | log.Fatalf("Unknown ML-KEM test type %v", wtg.Type) |
| 2476 | } | 2483 | } |
