Harald Welte | ec8b450 | 2010-02-20 20:34:29 +0100 | [diff] [blame] | 1 | /* |
| 2 | * COMP128 header |
| 3 | * |
| 4 | * See comp128.c for details |
| 5 | */ |
| 6 | |
| 7 | #ifndef __COMP128_H__ |
| 8 | #define __COMP128_H__ |
| 9 | |
| 10 | #include <stdint.h> |
| 11 | |
| 12 | /* |
| 13 | * Performs the COMP128 algorithm (used as A3/A8) |
| 14 | * ki : uint8_t [16] |
| 15 | * srand : uint8_t [16] |
| 16 | * sres : uint8_t [4] |
| 17 | * kc : uint8_t [8] |
| 18 | */ |
Harald Welte | 39a287d | 2011-12-06 21:52:09 +0100 | [diff] [blame] | 19 | void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc); |
Harald Welte | ec8b450 | 2010-02-20 20:34:29 +0100 | [diff] [blame] | 20 | |
| 21 | #endif /* __COMP128_H__ */ |
| 22 | |