anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /*----------------------------------------------- |
| 2 | * * f8.h |
| 3 | * *--------------------------------------------- |
| 4 | */ |
| 5 | |
| 6 | /* The code has been referred from |
| 7 | * 1. https://www.gsma.com/aboutus/wp-content/uploads/2014/12/uea2uia2d1v21.pdf |
| 8 | * 2. https://www.gsma.com/aboutus/wp-content/uploads/2014/12/snow3gspec.pdf |
| 9 | */ |
| 10 | |
| 11 | |
| 12 | #ifndef F8_H_ |
| 13 | #define F8_H_ |
| 14 | #include "snow_3g.h" |
| 15 | |
| 16 | |
| 17 | /* f8. |
| 18 | * Input key: 128 bit Confidentiality Key. |
| 19 | * Input count:32-bit Count, Frame dependent input. |
| 20 | * Input bearer: 5-bit Bearer identity (in the LSB side). |
| 21 | * Input dir:1 bit, direction of transmission. |
| 22 | * Input data: length number of bits, input bit stream. |
| 23 | * Input length: 32 bit Length, i.e., the number of bits to be encrypted or |
| 24 | * decrypted. |
| 25 | * Output data: Output bit stream. Assumes data is suitably memory |
| 26 | * allocated. |
| 27 | * Encrypts/decrypts blocks of data between 1 and 2^32 bits in length as |
| 28 | * defined in Section 3 of |
| 29 | * https://www.gsma.com/aboutus/wp-content/uploads/2014/12/snow3gspec.pdf |
| 30 | * specs document |
| 31 | */ |
| 32 | |
| 33 | |
| 34 | void f8( u8 *key, u32 count, u32 bearer, u32 dir, u8 *data, u32 length ); |
| 35 | |
| 36 | |
| 37 | #endif |