diff options
-rw-r--r-- | src/lib/libcrypto/mlkem/mlkem.h | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/mlkem/mlkem1024.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/mlkem/mlkem768.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/mlkem/mlkem_internal.h | 5 |
4 files changed, 8 insertions, 14 deletions
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 @@ | |||
1 | /* $OpenBSD: mlkem.h,v 1.3 2024/12/17 06:43:32 tb Exp $ */ | 1 | /* $OpenBSD: mlkem.h,v 1.4 2024/12/19 23:52:26 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2024, Google Inc. | 3 | * Copyright (c) 2024, Google Inc. |
4 | * | 4 | * |
@@ -21,11 +21,6 @@ | |||
21 | #include <sys/types.h> | 21 | #include <sys/types.h> |
22 | #include <stdint.h> | 22 | #include <stdint.h> |
23 | 23 | ||
24 | #ifdef LIBRESSL_HAS_MLKEM | ||
25 | /* This needs to become public */ | ||
26 | #include <openssl/bytestring.h> | ||
27 | #endif | ||
28 | |||
29 | #if defined(__cplusplus) | 24 | #if defined(__cplusplus) |
30 | extern "C" { | 25 | extern "C" { |
31 | #endif | 26 | #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 @@ | |||
1 | /* $OpenBSD: mlkem1024.c,v 1.4 2024/12/18 10:55:21 tb Exp $ */ | 1 | /* $OpenBSD: mlkem1024.c,v 1.5 2024/12/19 23:52:26 tb 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> |
@@ -16,13 +16,12 @@ | |||
16 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <openssl/mlkem.h> | ||
20 | |||
21 | #include <assert.h> | 19 | #include <assert.h> |
22 | #include <stdlib.h> | 20 | #include <stdlib.h> |
23 | #include <string.h> | 21 | #include <string.h> |
24 | 22 | ||
25 | #include "bytestring.h" | 23 | #include "bytestring.h" |
24 | #include "mlkem.h" | ||
26 | 25 | ||
27 | #include "sha3_internal.h" | 26 | #include "sha3_internal.h" |
28 | #include "mlkem_internal.h" | 27 | #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 @@ | |||
1 | /* $OpenBSD: mlkem768.c,v 1.5 2024/12/18 10:55:21 tb Exp $ */ | 1 | /* $OpenBSD: mlkem768.c,v 1.6 2024/12/19 23:52:26 tb 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> |
@@ -16,13 +16,12 @@ | |||
16 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <openssl/mlkem.h> | ||
20 | |||
21 | #include <assert.h> | 19 | #include <assert.h> |
22 | #include <stdlib.h> | 20 | #include <stdlib.h> |
23 | #include <string.h> | 21 | #include <string.h> |
24 | 22 | ||
25 | #include "bytestring.h" | 23 | #include "bytestring.h" |
24 | #include "mlkem.h" | ||
26 | 25 | ||
27 | #include "sha3_internal.h" | 26 | #include "sha3_internal.h" |
28 | #include "mlkem_internal.h" | 27 | #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 @@ | |||
1 | /* $OpenBSD: mlkem_internal.h,v 1.3 2024/12/17 06:43:32 tb Exp $ */ | 1 | /* $OpenBSD: mlkem_internal.h,v 1.4 2024/12/19 23:52:26 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023, Google Inc. | 3 | * Copyright (c) 2023, Google Inc. |
4 | * | 4 | * |
@@ -18,7 +18,8 @@ | |||
18 | #ifndef OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H | 18 | #ifndef OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H |
19 | #define OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H | 19 | #define OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H |
20 | 20 | ||
21 | #include <openssl/mlkem.h> | 21 | #include "bytestring.h" |
22 | #include "mlkem.h" | ||
22 | 23 | ||
23 | #if defined(__cplusplus) | 24 | #if defined(__cplusplus) |
24 | extern "C" { | 25 | extern "C" { |