diff options
| author | beck <> | 2025-05-19 06:47:40 +0000 |
|---|---|---|
| committer | beck <> | 2025-05-19 06:47:40 +0000 |
| commit | b5d568ea85f2380b8447d6b8b652e81e0cbdfb8d (patch) | |
| tree | c0473c2a6778acc8c1c57a2e73ed27b1d35552a6 /src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c | |
| parent | 4ec16279eb7cfd33c1785a5832ba16feff4a0ed8 (diff) | |
| download | openbsd-b5d568ea85f2380b8447d6b8b652e81e0cbdfb8d.tar.gz openbsd-b5d568ea85f2380b8447d6b8b652e81e0cbdfb8d.tar.bz2 openbsd-b5d568ea85f2380b8447d6b8b652e81e0cbdfb8d.zip | |
API changes for ML-KEM
- Get rid of CBB/CBS usage in public api
- Make void functions return int that can fail if malloc fails.
Along with some fallout and resulting bikeshedding in the regress tests.
ok jsing@, tb@
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c b/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c index 5a61248090..a8495f55e3 100644 --- a/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c +++ b/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: mlkem_iteration_tests.c,v 1.2 2024/12/26 07:26:45 tb Exp $ */ | 1 | /* $OpenBSD: mlkem_iteration_tests.c,v 1.3 2025/05/19 06:47:40 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2024 Google Inc. | 3 | * Copyright (c) 2024 Google Inc. |
| 4 | * Copyright (c) 2024 Bob Beck <beck@obtuse.com> | 4 | * Copyright (c) 2024 Bob Beck <beck@obtuse.com> |
| @@ -116,8 +116,10 @@ MlkemIterativeTest(struct iteration_ctx *ctx) | |||
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | /* generate ek as encoded_public_key */ | 118 | /* generate ek as encoded_public_key */ |
| 119 | ctx->generate_key_external_entropy(ctx->encoded_public_key, | 119 | if (!ctx->generate_key_external_entropy(ctx->encoded_public_key, |
| 120 | ctx->priv, seed); | 120 | ctx->priv, seed)) { |
| 121 | errx(1, "generate_key_external_entropy"); | ||
| 122 | } | ||
| 121 | ctx->public_from_private(ctx->pub, ctx->priv); | 123 | ctx->public_from_private(ctx->pub, ctx->priv); |
| 122 | 124 | ||
| 123 | /* hash in ek */ | 125 | /* hash in ek */ |
