diff options
| author | tb <> | 2026-01-01 12:47:52 +0000 |
|---|---|---|
| committer | tb <> | 2026-01-01 12:47:52 +0000 |
| commit | 10bebbca92ef87af97bc15c6337afbbe050bb96e (patch) | |
| tree | d3acb74022a43d2d8b4ffdd98d504717b91d7139 /src/regress/lib/libcrypto/wycheproof | |
| parent | 632157bcbfb0f5031f0b5a0f3f3277c98c5cc846 (diff) | |
| download | openbsd-10bebbca92ef87af97bc15c6337afbbe050bb96e.tar.gz openbsd-10bebbca92ef87af97bc15c6337afbbe050bb96e.tar.bz2 openbsd-10bebbca92ef87af97bc15c6337afbbe050bb96e.zip | |
Rename RANK{768,1024} to MLKEM{768,1024}_RANK
RANK768 and RANK1024 are awfully short and generic names for public
constants. Before we make it worse with similarly named constants for
ML-DSA, let's fix this. This follows the naming convention used by the
other macros in the mlkem code.
ok kenjiro jsing
Diffstat (limited to 'src/regress/lib/libcrypto/wycheproof')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 6 |
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 907f58d5f8..397958ac15 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.195 2025/12/27 03:23:57 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.196 2026/01/01 12:47:52 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> |
| @@ -2460,9 +2460,9 @@ func (wtg *wycheproofTestGroupMLKEM) run(algorithm string, variant testVariant) | |||
| 2460 | fmt.Printf("INFO: skipping %v test group of type %v for %s\n", algorithm, wtg.Type, wtg.ParameterSet) | 2460 | fmt.Printf("INFO: skipping %v test group of type %v for %s\n", algorithm, wtg.Type, wtg.ParameterSet) |
| 2461 | return true | 2461 | return true |
| 2462 | case "ML-KEM-768": | 2462 | case "ML-KEM-768": |
| 2463 | rank = C.RANK768 | 2463 | rank = C.MLKEM768_RANK |
| 2464 | case "ML-KEM-1024": | 2464 | case "ML-KEM-1024": |
| 2465 | rank = C.RANK1024 | 2465 | rank = C.MLKEM1024_RANK |
| 2466 | default: | 2466 | default: |
| 2467 | log.Fatalf("Unknown ML-KEM parameterSet %v", wtg.ParameterSet) | 2467 | log.Fatalf("Unknown ML-KEM parameterSet %v", wtg.ParameterSet) |
| 2468 | } | 2468 | } |
