summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mlkem/mlkem_internal.h
diff options
context:
space:
mode:
authorbeck <>2025-05-20 00:33:41 +0000
committerbeck <>2025-05-20 00:33:41 +0000
commit211b9df21ce4cb41c95de7fbc558ebdf3c53d921 (patch)
treef450ccfc382edbfea6d9c43fe327c89137b6f196 /src/lib/libcrypto/mlkem/mlkem_internal.h
parent3194407a33af1c51fcf0aa9d3fb8c474c87b1408 (diff)
downloadopenbsd-211b9df21ce4cb41c95de7fbc558ebdf3c53d921.tar.gz
openbsd-211b9df21ce4cb41c95de7fbc558ebdf3c53d921.tar.bz2
openbsd-211b9df21ce4cb41c95de7fbc558ebdf3c53d921.zip
Make MLKEM1024_marshal_private_key consistent with the public_key funcitons
Even though this should remain internal, make it the same as the public key marshal function, and make the needed fallout changes in regress. ok kenjiro@, tb@
Diffstat (limited to 'src/lib/libcrypto/mlkem/mlkem_internal.h')
-rw-r--r--src/lib/libcrypto/mlkem/mlkem_internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/mlkem/mlkem_internal.h b/src/lib/libcrypto/mlkem/mlkem_internal.h
index aed051e980..1e051970a8 100644
--- a/src/lib/libcrypto/mlkem/mlkem_internal.h
+++ b/src/lib/libcrypto/mlkem/mlkem_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: mlkem_internal.h,v 1.6 2025/05/19 07:53:00 beck Exp $ */ 1/* $OpenBSD: mlkem_internal.h,v 1.7 2025/05/20 00:33:40 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2023, Google Inc. 3 * Copyright (c) 2023, Google Inc.
4 * 4 *
@@ -96,8 +96,9 @@ int MLKEM1024_generate_key_external_entropy(
96 * standard format for ML-KEM private keys. It returns one on success or zero on 96 * standard format for ML-KEM private keys. It returns one on success or zero on
97 * allocation error. 97 * allocation error.
98 */ 98 */
99int MLKEM1024_marshal_private_key(CBB *out, 99int MLKEM1024_marshal_private_key(
100 const struct MLKEM1024_private_key *private_key); 100 const struct MLKEM1024_private_key *private_key, uint8_t **out_private_key,
101 size_t *out_private_key_len);
101 102
102/* 103/*
103 * MLKEM_encap_external_entropy behaves like |MLKEM_encap|, but uses 104 * MLKEM_encap_external_entropy behaves like |MLKEM_encap|, but uses