KeccakP-400-unrolling.macros 2.08 KB
Newer Older
Enrico Pozzobon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
#define rounds20X \
    thetaRhoPiChiIota( 0, S, E) \
    thetaRhoPiChiIota( 1, E, S) \
    thetaRhoPiChiIota( 2, S, E) \
    thetaRhoPiChiIota( 3, E, S) \
    thetaRhoPiChiIota( 4, S, E) \
    thetaRhoPiChiIota( 5, E, S) \
    thetaRhoPiChiIota( 6, S, E) \
    thetaRhoPiChiIota( 7, E, S) \
    thetaRhoPiChiIota( 8, S, E) \
    thetaRhoPiChiIota( 9, E, S) \
    thetaRhoPiChiIota(10, S, E) \
    thetaRhoPiChiIota(11, E, S) \
    thetaRhoPiChiIota(12, S, E) \
    thetaRhoPiChiIota(13, E, S) \
    thetaRhoPiChiIota(14, S, E) \
    thetaRhoPiChiIota(15, E, S) \
    thetaRhoPiChiIota(16, S, E) \
    thetaRhoPiChiIota(17, E, S) \
    thetaRhoPiChiIota(18, S, E) \
    thetaRhoPiChiIota(19, E, S) \

#define rounds16X \
    thetaRhoPiChiIota( 4, S, E) \
    thetaRhoPiChiIota( 5, E, S) \
    thetaRhoPiChiIota( 6, S, E) \
    thetaRhoPiChiIota( 7, E, S) \
    thetaRhoPiChiIota( 8, S, E) \
    thetaRhoPiChiIota( 9, E, S) \
    thetaRhoPiChiIota(10, S, E) \
    thetaRhoPiChiIota(11, E, S) \
    thetaRhoPiChiIota(12, S, E) \
    thetaRhoPiChiIota(13, E, S) \
    thetaRhoPiChiIota(14, S, E) \
    thetaRhoPiChiIota(15, E, S) \
    thetaRhoPiChiIota(16, S, E) \
    thetaRhoPiChiIota(17, E, S) \
    thetaRhoPiChiIota(18, S, E) \
    thetaRhoPiChiIota(19, E, S) \

#define rounds12X \
    thetaRhoPiChiIota( 8, S, E) \
    thetaRhoPiChiIota( 9, E, S) \
    thetaRhoPiChiIota(10, S, E) \
    thetaRhoPiChiIota(11, E, S) \
    thetaRhoPiChiIota(12, S, E) \
    thetaRhoPiChiIota(13, E, S) \
    thetaRhoPiChiIota(14, S, E) \
    thetaRhoPiChiIota(15, E, S) \
    thetaRhoPiChiIota(16, S, E) \
    thetaRhoPiChiIota(17, E, S) \
    thetaRhoPiChiIota(18, S, E) \
    thetaRhoPiChiIota(19, E, S) \

#define rounds8X \
    thetaRhoPiChiIota(12, S, E) \
    thetaRhoPiChiIota(13, E, S) \
    thetaRhoPiChiIota(14, S, E) \
    thetaRhoPiChiIota(15, E, S) \
    thetaRhoPiChiIota(16, S, E) \
    thetaRhoPiChiIota(17, E, S) \
    thetaRhoPiChiIota(18, S, E) \
    thetaRhoPiChiIota(19, E, S) \

#define rounds1X \
    thetaRhoPiChiIota(19, S, E) \
    copyStateVariables(S, E) \

// prevent "warning: backslash-newline at end of file"