Skip to content

Commit 63a9895

Browse files
committed
Serial FIPS: Don't include MLD_FIPS202X4_HEADER_FILE
If MLD_CONFIG_SERIAL_FIPS202_ONLY is set, we don't make use of any fips202x4 functions. This commit makes the include conditional, such that consumers setting MLD_CONFIG_SERIAL_FIPS202_ONLY don't have to provide an (empty) fips202x4.h. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent acd171a commit 63a9895

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mldsa/symmetric.h

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

1212
#include MLD_FIPS202_HEADER_FILE
13+
#if !defined(MLD_CONFIG_SERIAL_FIPS202_ONLY)
1314
#include MLD_FIPS202X4_HEADER_FILE
15+
#endif
1416

1517
#define STREAM128_BLOCKBYTES SHAKE128_RATE
1618
#define STREAM256_BLOCKBYTES SHAKE256_RATE

0 commit comments

Comments
 (0)