anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /*-------------------------------------------------------- |
| 2 | * f9.h |
| 3 | *-------------------------------------------------------- |
| 4 | */ |
| 5 | |
| 6 | |
| 7 | /* The code has been referred from |
| 8 | * 1.https://www.gsma.com/aboutus/wp-content/uploads/2014/12/uea2uia2d1v21.pdf |
| 9 | * 2.https://www.gsma.com/aboutus/wp-content/uploads/2014/12/snow3gspec.pdf |
| 10 | */ |
| 11 | |
| 12 | #ifndef F9_H_ |
| 13 | #define F9_H_ |
| 14 | #include "snow_3g.h" |
| 15 | |
| 16 | /* f9. |
| 17 | * Input key: 128 bit Integrity Key. |
| 18 | * Input count:32-bit Count, Frame dependent input. |
| 19 | * Input fresh: 32-bit Random number. |
| 20 | * Input dir:1 bit, direction of transmission (in the LSB). |
| 21 | * Input data: length number of bits, input bit stream. |
| 22 | * Input length: 64 bit Length, i.e., the number of bits to be MAC'd. |
| 23 | * Output : 32 bit block used as MAC |
| 24 | * Generates 32-bit MAC using UIA2 algorithm as defined in Section 4 |
| 25 | * of https://www.gsma.com/aboutus/wp-content/uploads/2014/12/snow3gspec.pdf |
| 26 | * specs document. |
| 27 | */ |
| 28 | |
| 29 | |
| 30 | u8* f9( u8* key, u32 count, u32 fresh, u32 dir, u8 *data, u64 length); |
| 31 | |
| 32 | #endif |
| 33 | |