Harald Welte | 8bd9d5d | 2023-05-28 09:36:50 +0200 | [diff] [blame] | 1 | /* ----------------------------------------------------------------------- |
| 2 | * code extracted from 3GPP TS 35.231, annex E for Keccak core functions |
| 3 | * https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=2402 |
| 4 | *-----------------------------------------------------------------------*/ |
| 5 | |
| 6 | /* this is the trick to make the code cross-platform |
| 7 | * at least, Win32 / Linux */ |
| 8 | |
| 9 | #if defined(_WIN32) || defined(__WIN32__) |
| 10 | # include <windows.h> |
| 11 | # define EXPORTIT __declspec(dllexport) |
| 12 | #else |
| 13 | # define EXPORTIT |
| 14 | #endif |
| 15 | |
| 16 | #include <stdint.h> |
| 17 | |
| 18 | /*------------------------------------------------------------------------ |
| 19 | * KeccakP-1600-3gpp.h |
| 20 | *------------------------------------------------------------------------*/ |
| 21 | |
| 22 | EXPORTIT void Keccak_f_8 (uint8_t s[200]); |
| 23 | EXPORTIT void Keccak_f_32(uint32_t s[50]); |
| 24 | EXPORTIT void Keccak_f_64(uint64_t s[25]); |
| 25 | |