Debian Codegraph @

others/mbedtls/tf-psa-crypto/drivers/pqcp/mldsa-native/dev/fips202/aarch64/x1_scalar.h

raw
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
7 #ifndef MLD_FIPS202_NATIVE_AARCH64_X1_SCALAR_H
8 #define MLD_FIPS202_NATIVE_AARCH64_X1_SCALAR_H
9
10 /* Part of backend API */
11 #define MLD_USE_FIPS202_X1_NATIVE
12 /* Guard for assembly file */
13 #define MLD_FIPS202_AARCH64_NEED_X1_SCALAR
14
15 #if !defined(__ASSEMBLER__)
16 #include "../api.h"
17 #include "src/fips202_native_aarch64.h"
18 static MLD_INLINE int mld_keccak_f1600_x1_native(uint64_t *state)
19 {
20 mld_keccak_f1600_x1_scalar_asm(state, mld_keccakf1600_round_constants);
21 return MLD_NATIVE_FUNC_SUCCESS;
22 }
23 #endif /* !__ASSEMBLER__ */
24
25 #endif /* !MLD_FIPS202_NATIVE_AARCH64_X1_SCALAR_H */