permutations.c 599 Bytes
Newer Older
Martin Schläffer committed
1 2
#include "permutations.h"

Enrico Pozzobon committed
3
#if !ASCON_INLINE_PERM && ASCON_UNROLL_LOOPS
Martin Schläffer committed
4

Enrico Pozzobon committed
5
void P12(state_t* s) { P12ROUNDS(s); }
Martin Schläffer committed
6 7 8 9 10 11 12

#endif

#if ((defined(ASCON_AEAD_RATE) && ASCON_AEAD_RATE == 16) ||     \
     (defined(ASCON_HASH_ROUNDS) && ASCON_HASH_ROUNDS == 8)) && \
    !ASCON_INLINE_PERM && ASCON_UNROLL_LOOPS

Enrico Pozzobon committed
13
void P8(state_t* s) { P8ROUNDS(s); }
Martin Schläffer committed
14 15 16 17 18 19

#endif

#if (defined(ASCON_AEAD_RATE) && ASCON_AEAD_RATE == 8) && \
    !ASCON_INLINE_PERM && ASCON_UNROLL_LOOPS

Enrico Pozzobon committed
20
void P6(state_t* s) { P6ROUNDS(s); }
Martin Schläffer committed
21 22 23

#endif

Enrico Pozzobon committed
24 25 26
#if !ASCON_INLINE_PERM && !ASCON_UNROLL_LOOPS

void P(state_t* s, int nr) { PROUNDS(s, nr); }
Martin Schläffer committed
27 28

#endif