| 1 |
/* |
| 2 |
* Copyright (c) The mlkem-native project authors |
| 3 |
* Copyright (c) The mldsa-native project authors |
| 4 |
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT |
| 5 |
*/ |
| 6 |
#include "ct.h" |
| 7 |
|
| 8 |
#if !defined(MLD_USE_ASM_VALUE_BARRIER) && \ |
| 9 |
!defined(MLD_CONFIG_MULTILEVEL_NO_SHARED) |
| 10 |
/* |
| 11 |
* Masking value used in constant-time functions from |
| 12 |
* ct.h to block the compiler's range analysis and |
| 13 |
* thereby reduce the risk of compiler-introduced branches. |
| 14 |
*/ |
| 15 |
volatile uint64_t mld_ct_opt_blocker_u64 = 0; |
| 16 |
|
| 17 |
#else /* !MLD_USE_ASM_VALUE_BARRIER && !MLD_CONFIG_MULTILEVEL_NO_SHARED */ |
| 18 |
|
| 19 |
MLD_EMPTY_CU(ct) |
| 20 |
|
| 21 |
#endif /* !(!MLD_USE_ASM_VALUE_BARRIER && !MLD_CONFIG_MULTILEVEL_NO_SHARED) */ |