Skip to content

Commit ad29f04

Browse files
committed
Add MLD_CONFIG_NO_ASM to config.h
Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent 93df34f commit ad29f04

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

mldsa/config.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,28 @@
137137
#endif
138138
*/
139139

140+
/******************************************************************************
141+
* Name: MLD_CONFIG_NO_ASM
142+
*
143+
* Description: If this option is set, mldsa-native will be built without
144+
* use of native code or inline assembly.
145+
*
146+
* By default, inline assembly is used to implement value barriers.
147+
* Without inline assembly, mldsa-native will use a global volatile
148+
* 'opt blocker' instead; see ct.h.
149+
*
150+
* Inline assembly is also used to implement a secure zeroization
151+
* function on non-Windows platforms. If this option is set and
152+
* the target platform is not Windows, you MUST set
153+
* MLD_CONFIG_CUSTOM_ZEROIZE and provide a custom zeroization
154+
* function.
155+
*
156+
* If this option is set, MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 and
157+
* and MLD_CONFIG_USE_NATIVE_BACKEND_ARITH will be ignored, and no
158+
* native backends will be used.
159+
*
160+
*****************************************************************************/
161+
/* #define MLD_CONFIG_NO_ASM */
162+
163+
140164
#endif /* !MLD_CONFIG_H */

0 commit comments

Comments
 (0)