Skip to content

Commit c76d792

Browse files
authored
Merge pull request #919 from pq-code-package/mlkem_native_h
Fix typo in mlkem/mlkem_native.h and test in multi-level builds
2 parents 26e147c + 8d0592b commit c76d792

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/monolithic_build_multilevel/mlkem_native_all.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
/* Only include API to check consistency with mlkem/mlkem_native.h
7+
* imported into the individual builds below via MLK_CHECK_APIS. */
8+
#include "mlkem_native_all.h"
9+
610
#define MLK_MULTILEVEL_BUILD
711

12+
/* Include mlkem_native.h into each level-build to ensure consistency
13+
* with kem.h and mlkem_native_all.h above. */
14+
#define MLK_CHECK_APIS
15+
816
/* Three instances of mlkem-native for all security levels */
917

1018
/* Include level-independent code */

mlkem/mlkem_native.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#if defined(MLK_MULTILEVEL_BUILD_WITH_SHARED) || \
6262
defined(MLK_MULTILEVEL_BUILD_NO_SHARED)
6363
#define MLK_BUILD_INFO_CONCAT3_(x, y, z) x##y##_##z
64-
#define MLK_BUILD_INFO_CONCAT3(x, y, z) MLK_BUILD_INFO_CONCAT_(x, y, z)
64+
#define MLK_BUILD_INFO_CONCAT3(x, y, z) MLK_BUILD_INFO_CONCAT3_(x, y, z)
6565
#define MLK_BUILD_INFO_NAMESPACE(sym) \
6666
MLK_BUILD_INFO_CONCAT3(MLK_NAMESPACE_PREFIX, MLK_BUILD_INFO_LVL, sym)
6767
#else

0 commit comments

Comments
 (0)