summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c
diff options
context:
space:
mode:
authorbeck <>2025-05-19 07:53:00 +0000
committerbeck <>2025-05-19 07:53:00 +0000
commit4511a08673efa0f6de09ca6fc9ad7544b007c186 (patch)
tree181bb3be5116b982cf5bf212a96fd0a8c8753918 /src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c
parentedb079457897c7f6e08032ffdb3663a6cccf4479 (diff)
downloadopenbsd-4511a08673efa0f6de09ca6fc9ad7544b007c186.tar.gz
openbsd-4511a08673efa0f6de09ca6fc9ad7544b007c186.tar.bz2
openbsd-4511a08673efa0f6de09ca6fc9ad7544b007c186.zip
Fix up MLKEM768_marshal_private_key to not use a passed in CBB
Even though this should remain internal, make it the same as the public key marshal function, and make the needed fallout changes in regress. This does not yet do the bikeshed of renaming the structure field in the regress ctx, that will wait until a follow on to convert 1024 in a similar manner ok tb@
Diffstat (limited to 'src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c')
-rw-r--r--src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c b/src/regress/lib/libcrypto/mlkem/mlkem_iteration_tests.c
index a8495f55e3..e0fd9ca241 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.3 2025/05/19 06:47:40 beck Exp $ */ 1/* $OpenBSD: mlkem_iteration_tests.c,v 1.4 2025/05/19 07:53:00 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>
@@ -185,7 +185,7 @@ main(void)
185 .priv = &priv768, 185 .priv = &priv768,
186 .pub = &pub768, 186 .pub = &pub768,
187 .encap_external_entropy = mlkem768_encap_external_entropy, 187 .encap_external_entropy = mlkem768_encap_external_entropy,
188 .encode_private_key = mlkem768_encode_private_key, 188 .encode_private_key = mlkem768_marshal_private_key,
189 .generate_key_external_entropy = 189 .generate_key_external_entropy =
190 mlkem768_generate_key_external_entropy, 190 mlkem768_generate_key_external_entropy,
191 .public_from_private = mlkem768_public_from_private, 191 .public_from_private = mlkem768_public_from_private,