Debian Codegraph @

others/mbedtls/tf-psa-crypto/drivers/pqcp/mldsa-native/dev/fips202/aarch64/x4_v8a_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_X4_V8A_SCALAR_H
8 #define MLD_FIPS202_NATIVE_AARCH64_X4_V8A_SCALAR_H
9
10 /* Part of backend API */
11 #define MLD_USE_FIPS202_X4_NATIVE
12 /* Guard for assembly file */
13 #define MLD_FIPS202_AARCH64_NEED_X4_V8A_SCALAR_HYBRID
14
15 #if !defined(__ASSEMBLER__)
16 #include "../api.h"
17 #include "src/fips202_native_aarch64.h"
18 static MLD_INLINE int mld_keccak_f1600_x4_native(uint64_t *state)
19 {
20 mld_keccak_f1600_x4_scalar_v8a_hybrid_asm(state,
21 mld_keccakf1600_round_constants);
22 return MLD_NATIVE_FUNC_SUCCESS;
23 }
24 #endif /* !__ASSEMBLER__ */
25
26 #endif /* !MLD_FIPS202_NATIVE_AARCH64_X4_V8A_SCALAR_H */