summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/mlkem/mlkem_tests.c
diff options
context:
space:
mode:
authorbeck <>2025-05-19 07:53:00 +0000
committerbeck <>2025-05-19 07:53:00 +0000
commit41bd0848d38d40c872dd36e17a728b405acff4dc (patch)
tree181bb3be5116b982cf5bf212a96fd0a8c8753918 /src/regress/lib/libcrypto/mlkem/mlkem_tests.c
parent574636afc34a257a07ceb9fe84b926fa3c45fd04 (diff)
downloadopenbsd-41bd0848d38d40c872dd36e17a728b405acff4dc.tar.gz
openbsd-41bd0848d38d40c872dd36e17a728b405acff4dc.tar.bz2
openbsd-41bd0848d38d40c872dd36e17a728b405acff4dc.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_tests.c')
-rw-r--r--src/regress/lib/libcrypto/mlkem/mlkem_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/mlkem/mlkem_tests.c b/src/regress/lib/libcrypto/mlkem/mlkem_tests.c
index a4e7208c76..84b71aebb0 100644
--- a/src/regress/lib/libcrypto/mlkem/mlkem_tests.c
+++ b/src/regress/lib/libcrypto/mlkem/mlkem_tests.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: mlkem_tests.c,v 1.4 2025/05/19 06:47:40 beck Exp $ */ 1/* $OpenBSD: mlkem_tests.c,v 1.5 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 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org>
@@ -662,7 +662,7 @@ mlkem_keygen_tests(const char *fn, size_t size, enum test_type test_type)
662 .generate_key_external_entropy = 662 .generate_key_external_entropy =
663 mlkem768_generate_key_external_entropy, 663 mlkem768_generate_key_external_entropy,
664 .encode_private_key = 664 .encode_private_key =
665 mlkem768_encode_private_key, 665 mlkem768_marshal_private_key,
666 }; 666 };
667 struct MLKEM1024_private_key private_key1024; 667 struct MLKEM1024_private_key private_key1024;
668 uint8_t encoded_public_key1024[MLKEM1024_PUBLIC_KEY_BYTES]; 668 uint8_t encoded_public_key1024[MLKEM1024_PUBLIC_KEY_BYTES];