diff options
| author | tb <> | 2026-01-22 09:01:05 +0000 |
|---|---|---|
| committer | tb <> | 2026-01-22 09:01:05 +0000 |
| commit | 67d3b452e54a111e654c752f6bef20e595a18b47 (patch) | |
| tree | f4441116061130b19ac8451ea2316b02fb35f870 /src | |
| parent | 7230345c386ca08c3bd745cb449fc7fa99ee0081 (diff) | |
| download | openbsd-67d3b452e54a111e654c752f6bef20e595a18b47.tar.gz openbsd-67d3b452e54a111e654c752f6bef20e595a18b47.tar.bz2 openbsd-67d3b452e54a111e654c752f6bef20e595a18b47.zip | |
ML_KEM: fix broken test: the encapsulated key is eK, not C...
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index a204503c3e..8a8cb2ab1b 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.197 2026/01/22 08:59:40 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.198 2026/01/22 09:01:05 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> |
| @@ -2444,7 +2444,7 @@ func runMLKEMEncapsTestGroup(rank C.int, wt *wycheproofTestMLKEM) bool { | |||
| 2444 | log.Fatal("MLKEM_public_key_new failed") | 2444 | log.Fatal("MLKEM_public_key_new failed") |
| 2445 | } | 2445 | } |
| 2446 | 2446 | ||
| 2447 | ek, ekLen := mustDecodeHexString(wt.C, "eK") | 2447 | ek, ekLen := mustDecodeHexString(wt.Ek, "eK") |
| 2448 | 2448 | ||
| 2449 | if C.MLKEM_parse_public_key(pubKey, (*C.uchar)(unsafe.Pointer(&ek[0])), (C.size_t)(ekLen)) != 0 || wt.Result != "invalid" { | 2449 | if C.MLKEM_parse_public_key(pubKey, (*C.uchar)(unsafe.Pointer(&ek[0])), (C.size_t)(ekLen)) != 0 || wt.Result != "invalid" { |
| 2450 | fmt.Printf("FAIL: %s MLKEM_parse_public_key succeeded\n", wt) | 2450 | fmt.Printf("FAIL: %s MLKEM_parse_public_key succeeded\n", wt) |
