Sylvain Munaut | d7c9e5c | 2009-12-23 15:49:16 +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 | |
Harald Welte | a3d5514 | 2010-02-20 19:10:44 +0100 | [diff] [blame^] | 10 | #include <stdint.h> |
Sylvain Munaut | d7c9e5c | 2009-12-23 15:49:16 +0100 | [diff] [blame] | 11 | |
| 12 | /* |
| 13 | * Performs the COMP128 algorithm (used as A3/A8) |
Harald Welte | a3d5514 | 2010-02-20 19:10:44 +0100 | [diff] [blame^] | 14 | * ki : uint8_t [16] |
| 15 | * srand : uint8_t [16] |
| 16 | * sres : uint8_t [4] |
| 17 | * kc : uint8_t [8] |
Sylvain Munaut | d7c9e5c | 2009-12-23 15:49:16 +0100 | [diff] [blame] | 18 | */ |
Harald Welte | a3d5514 | 2010-02-20 19:10:44 +0100 | [diff] [blame^] | 19 | void comp128(uint8_t *ki, uint8_t *srand, uint8_t *sres, uint8_t *kc); |
Sylvain Munaut | d7c9e5c | 2009-12-23 15:49:16 +0100 | [diff] [blame] | 20 | |
| 21 | #endif /* __COMP128_H__ */ |
| 22 | |