Skip to content

Commit b0aed66

Browse files
committed
poly_kl.c: Switch to NAMESPACE_KL
Symbols in poly_kl need to include the parameter set in the namespace to enable SCU builds. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent 677b887 commit b0aed66

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mldsa/src/poly_kl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "common.h"
1010
#include "poly.h"
1111

12-
#define mld_poly_decompose MLD_NAMESPACE(poly_decompose)
12+
#define mld_poly_decompose MLD_NAMESPACE_KL(poly_decompose)
1313
/*************************************************
1414
* Name: mld_poly_decompose
1515
*
@@ -40,7 +40,7 @@ __contract__(
4040
);
4141

4242

43-
#define mld_poly_make_hint MLD_NAMESPACE(poly_make_hint)
43+
#define mld_poly_make_hint MLD_NAMESPACE_KL(poly_make_hint)
4444
/*************************************************
4545
* Name: mld_poly_make_hint
4646
*
@@ -66,7 +66,7 @@ __contract__(
6666
ensures(array_bound(h->coeffs, 0, MLDSA_N, 0, 2))
6767
);
6868

69-
#define mld_poly_use_hint MLD_NAMESPACE(poly_use_hint)
69+
#define mld_poly_use_hint MLD_NAMESPACE_KL(poly_use_hint)
7070
/*************************************************
7171
* Name: mld_poly_use_hint
7272
*
@@ -89,7 +89,7 @@ __contract__(
8989
ensures(array_bound(b->coeffs, 0, MLDSA_N, 0, (MLDSA_Q-1)/(2*MLDSA_GAMMA2)))
9090
);
9191

92-
#define mld_poly_chknorm MLD_NAMESPACE(poly_chknorm)
92+
#define mld_poly_chknorm MLD_NAMESPACE_KL(poly_chknorm)
9393
/*************************************************
9494
* Name: mld_poly_chknorm
9595
*

mldsa/src/polyvec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* This namespacing is not done at the top to avoid a naming conflict
2626
* with native backends, which are currently not yet namespaced. */
2727
#define mld_poly_permute_bitrev_to_custom \
28-
MLD_NAMESPACE(mld_poly_permute_bitrev_to_custom)
28+
MLD_NAMESPACE_KL(mld_poly_permute_bitrev_to_custom)
2929

3030
static MLD_INLINE void mld_poly_permute_bitrev_to_custom(int32_t data[MLDSA_N])
3131
{

0 commit comments

Comments
 (0)