From 83754c5202a04bf72455fc9f3087d591e5f26381 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 19 Dec 2024 23:52:26 +0000 Subject: Do not assume mlkem.h and bytestring.h are public in libcrypto As long as is not quite clear what we want to do about the public API aspect of MLKEM, keep things internal for now. discussed with beck and jsing --- src/lib/libcrypto/mlkem/mlkem.h | 7 +------ src/lib/libcrypto/mlkem/mlkem1024.c | 5 ++--- src/lib/libcrypto/mlkem/mlkem768.c | 5 ++--- src/lib/libcrypto/mlkem/mlkem_internal.h | 5 +++-- 4 files changed, 8 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/mlkem/mlkem.h b/src/lib/libcrypto/mlkem/mlkem.h index 7941c21875..a5645facc6 100644 --- a/src/lib/libcrypto/mlkem/mlkem.h +++ b/src/lib/libcrypto/mlkem/mlkem.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mlkem.h,v 1.3 2024/12/17 06:43:32 tb Exp $ */ +/* $OpenBSD: mlkem.h,v 1.4 2024/12/19 23:52:26 tb Exp $ */ /* * Copyright (c) 2024, Google Inc. * @@ -21,11 +21,6 @@ #include #include -#ifdef LIBRESSL_HAS_MLKEM -/* This needs to become public */ -#include -#endif - #if defined(__cplusplus) extern "C" { #endif diff --git a/src/lib/libcrypto/mlkem/mlkem1024.c b/src/lib/libcrypto/mlkem/mlkem1024.c index b3cacc828b..1de14fde52 100644 --- a/src/lib/libcrypto/mlkem/mlkem1024.c +++ b/src/lib/libcrypto/mlkem/mlkem1024.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mlkem1024.c,v 1.4 2024/12/18 10:55:21 tb Exp $ */ +/* $OpenBSD: mlkem1024.c,v 1.5 2024/12/19 23:52:26 tb Exp $ */ /* * Copyright (c) 2024, Google Inc. * Copyright (c) 2024, Bob Beck @@ -16,13 +16,12 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include - #include #include #include #include "bytestring.h" +#include "mlkem.h" #include "sha3_internal.h" #include "mlkem_internal.h" diff --git a/src/lib/libcrypto/mlkem/mlkem768.c b/src/lib/libcrypto/mlkem/mlkem768.c index 040118cafc..7d99041152 100644 --- a/src/lib/libcrypto/mlkem/mlkem768.c +++ b/src/lib/libcrypto/mlkem/mlkem768.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mlkem768.c,v 1.5 2024/12/18 10:55:21 tb Exp $ */ +/* $OpenBSD: mlkem768.c,v 1.6 2024/12/19 23:52:26 tb Exp $ */ /* * Copyright (c) 2024, Google Inc. * Copyright (c) 2024, Bob Beck @@ -16,13 +16,12 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include - #include #include #include #include "bytestring.h" +#include "mlkem.h" #include "sha3_internal.h" #include "mlkem_internal.h" diff --git a/src/lib/libcrypto/mlkem/mlkem_internal.h b/src/lib/libcrypto/mlkem/mlkem_internal.h index 4c8a0650a8..d3f325932f 100644 --- a/src/lib/libcrypto/mlkem/mlkem_internal.h +++ b/src/lib/libcrypto/mlkem/mlkem_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mlkem_internal.h,v 1.3 2024/12/17 06:43:32 tb Exp $ */ +/* $OpenBSD: mlkem_internal.h,v 1.4 2024/12/19 23:52:26 tb Exp $ */ /* * Copyright (c) 2023, Google Inc. * @@ -18,7 +18,8 @@ #ifndef OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H #define OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H -#include +#include "bytestring.h" +#include "mlkem.h" #if defined(__cplusplus) extern "C" { -- cgit v1.2.3-55-g6feb