piotr | faacc72 | 2014-07-20 23:48:32 +0200 | [diff] [blame] | 1 | /* |
ptrkrysik | 8038b2e | 2014-12-15 23:10:48 +0100 | [diff] [blame] | 2 | The Hacker's Choice - http://www.thc.org |
| 3 | Part of THC's GSM SCANNER PROJECT |
| 4 | */ |
| 5 | |
piotr | faacc72 | 2014-07-20 23:48:32 +0200 | [diff] [blame] | 6 | |
| 7 | |
| 8 | #ifndef INCLUDED_FIRE_CRC_H |
| 9 | #define INCLUDED_FIRE_CRC_H |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | typedef struct |
| 16 | { |
| 17 | unsigned int crc_size; |
| 18 | unsigned int data_size; |
| 19 | unsigned int syn_start; |
| 20 | int syndrome_reg[40]; |
| 21 | } FC_CTX; |
| 22 | |
| 23 | int FC_init(FC_CTX *ctx, unsigned int crc_size, unsigned int data_size); |
| 24 | int FC_check_crc(FC_CTX *ctx, unsigned char *input_bits, unsigned char *control_data); |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #endif |