blob: df3ef81e7c7752bd3a24ca36ccb494ea4435b4a5 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*-----------------------------------------------
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
34void f8( u8 *key, u32 count, u32 bearer, u32 dir, u8 *data, u32 length );
35
36
37#endif