#ifndef CONFIG_H_ #define CONFIG_H_ /* inline the Ascon mode */ #ifndef ASCON_INLINE_MODE #define ASCON_INLINE_MODE 1 #endif /* inline the Ascon permutations */ #ifndef ASCON_INLINE_PERM #define ASCON_INLINE_PERM 0 #endif /* single function for all permutations */ #ifndef ASCON_SINGLE_PERM #define ASCON_SINGLE_PERM 0 #endif /* unroll the permutation loops */ #ifndef ASCON_UNROLL_LOOPS #define ASCON_UNROLL_LOOPS 0 #endif /* Ascon data access option { 'W'ordwise, 'B'ytewise, 'H'ybrid, 'M'emcpy } */ #ifndef ASCON_DATA_ACCESS #define ASCON_DATA_ACCESS 'B' #endif /* Ascon mask generator { 'S'tdlib, 'X'orshift, 'R'andombytes } */ #ifndef ASCON_MASK_RNG #define ASCON_MASK_RNG 'X' #endif /* mask key/data loads */ #ifndef ASCON_MASK_LOADS #define ASCON_MASK_LOADS 0 #endif /* make sure __forceinline is supported */ #ifndef __forceinline #define __forceinline inline __attribute__((always_inline)) #endif #endif /* CONFIG_H_ */