Artifact 022694ac189be1d2ea5d287b44e2927d932e59f6:
- File keccak/KeccakF-1600-32.macros — part of check-in [cff016a477] at 2013-01-08 22:39:31 on branch trunk — Added Keccak reference stuff, to be built as library (user: bernd size: 844)
- File keccakp/KeccakF-1600-32.macros — part of check-in [90b0958714] at 2020-01-12 21:09:56 on branch trunk — Improve haves (user: bernd size: 844)
0000: 2f 2a 0a 54 68 65 20 4b 65 63 63 61 6b 20 73 70 /*.The Keccak sp 0010: 6f 6e 67 65 20 66 75 6e 63 74 69 6f 6e 2c 20 64 onge function, d 0020: 65 73 69 67 6e 65 64 20 62 79 20 47 75 69 64 6f esigned by Guido 0030: 20 42 65 72 74 6f 6e 69 2c 20 4a 6f 61 6e 20 44 Bertoni, Joan D 0040: 61 65 6d 65 6e 2c 0a 4d 69 63 68 61 c3 ab 6c 20 aemen,.Michaël 0050: 50 65 65 74 65 72 73 20 61 6e 64 20 47 69 6c 6c Peeters and Gill 0060: 65 73 20 56 61 6e 20 41 73 73 63 68 65 2e 20 46 es Van Assche. F 0070: 6f 72 20 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 or more informat 0080: 69 6f 6e 2c 20 66 65 65 64 62 61 63 6b 20 6f 72 ion, feedback or 0090: 0a 71 75 65 73 74 69 6f 6e 73 2c 20 70 6c 65 61 .questions, plea 00a0: 73 65 20 72 65 66 65 72 20 74 6f 20 6f 75 72 20 se refer to our 00b0: 77 65 62 73 69 74 65 3a 20 68 74 74 70 3a 2f 2f website: http:// 00c0: 6b 65 63 63 61 6b 2e 6e 6f 65 6b 65 6f 6e 2e 6f keccak.noekeon.o 00d0: 72 67 2f 0a 0a 49 6d 70 6c 65 6d 65 6e 74 61 74 rg/..Implementat 00e0: 69 6f 6e 20 62 79 20 74 68 65 20 64 65 73 69 67 ion by the desig 00f0: 6e 65 72 73 2c 0a 68 65 72 65 62 79 20 64 65 6e ners,.hereby den 0100: 6f 74 65 64 20 61 73 20 22 74 68 65 20 69 6d 70 oted as "the imp 0110: 6c 65 6d 65 6e 74 65 72 22 2e 0a 0a 54 6f 20 74 lementer"...To t 0120: 68 65 20 65 78 74 65 6e 74 20 70 6f 73 73 69 62 he extent possib 0130: 6c 65 20 75 6e 64 65 72 20 6c 61 77 2c 20 74 68 le under law, th 0140: 65 20 69 6d 70 6c 65 6d 65 6e 74 65 72 20 68 61 e implementer ha 0150: 73 20 77 61 69 76 65 64 20 61 6c 6c 20 63 6f 70 s waived all cop 0160: 79 72 69 67 68 74 0a 61 6e 64 20 72 65 6c 61 74 yright.and relat 0170: 65 64 20 6f 72 20 6e 65 69 67 68 62 6f 72 69 6e ed or neighborin 0180: 67 20 72 69 67 68 74 73 20 74 6f 20 74 68 65 20 g rights to the 0190: 73 6f 75 72 63 65 20 63 6f 64 65 20 69 6e 20 74 source code in t 01a0: 68 69 73 20 66 69 6c 65 2e 0a 68 74 74 70 3a 2f his file..http:/ 01b0: 2f 63 72 65 61 74 69 76 65 63 6f 6d 6d 6f 6e 73 /creativecommons 01c0: 2e 6f 72 67 2f 70 75 62 6c 69 63 64 6f 6d 61 69 .org/publicdomai 01d0: 6e 2f 7a 65 72 6f 2f 31 2e 30 2f 0a 2a 2f 0a 0a n/zero/1.0/.*/.. 01e0: 23 69 66 64 65 66 20 55 73 65 53 63 68 65 64 75 #ifdef UseSchedu 01f0: 6c 65 0a 20 20 20 20 23 69 66 20 28 55 73 65 53 le. #if (UseS 0200: 63 68 65 64 75 6c 65 20 3d 3d 20 31 29 0a 20 20 chedule == 1). 0210: 20 20 20 20 20 20 23 69 6e 63 6c 75 64 65 20 22 #include " 0220: 4b 65 63 63 61 6b 46 2d 31 36 30 30 2d 33 32 2d KeccakF-1600-32- 0230: 73 31 2e 6d 61 63 72 6f 73 22 0a 20 20 20 20 23 s1.macros". # 0240: 65 6c 69 66 20 28 55 73 65 53 63 68 65 64 75 6c elif (UseSchedul 0250: 65 20 3d 3d 20 32 29 0a 20 20 20 20 20 20 20 20 e == 2). 0260: 23 69 6e 63 6c 75 64 65 20 22 4b 65 63 63 61 6b #include "Keccak 0270: 46 2d 31 36 30 30 2d 33 32 2d 73 32 2e 6d 61 63 F-1600-32-s2.mac 0280: 72 6f 73 22 0a 20 20 20 20 23 65 6c 69 66 20 28 ros". #elif ( 0290: 55 73 65 53 63 68 65 64 75 6c 65 20 3d 3d 20 33 UseSchedule == 3 02a0: 29 0a 20 20 20 20 20 20 20 20 23 69 6e 63 6c 75 ). #inclu 02b0: 64 65 20 22 4b 65 63 63 61 6b 46 2d 31 36 30 30 de "KeccakF-1600 02c0: 2d 33 32 2d 72 76 6b 2e 6d 61 63 72 6f 73 22 0a -32-rvk.macros". 02d0: 20 20 20 20 23 65 6c 73 65 0a 20 20 20 20 20 20 #else. 02e0: 20 20 23 65 72 72 6f 72 20 22 54 68 69 73 20 73 #error "This s 02f0: 63 68 65 64 75 6c 65 20 69 73 20 6e 6f 74 20 73 chedule is not s 0300: 75 70 70 6f 72 74 65 64 2e 22 0a 20 20 20 20 23 upported.". # 0310: 65 6e 64 69 66 0a 23 65 6c 73 65 0a 20 20 20 20 endif.#else. 0320: 23 69 6e 63 6c 75 64 65 20 22 4b 65 63 63 61 6b #include "Keccak 0330: 46 2d 31 36 30 30 2d 33 32 2d 73 31 2e 6d 61 63 F-1600-32-s1.mac 0340: 72 6f 73 22 0a 23 65 6e 64 69 66 0a ros".#endif.