aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore/include/osmocore/comp128.h
blob: 691ade54b39755e05fe657509c1712e725bcefd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * COMP128 header
 *
 * See comp128.c for details
 */

#ifndef __COMP128_H__
#define __COMP128_H__

#include <sys/types.h>

/*
 * Performs the COMP128 algorithm (used as A3/A8)
 * ki    : u_int8_t [16]
 * srand : u_int8_t [16]
 * sres  : u_int8_t [4]
 * kc    : u_int8_t [8]
 */
void comp128(u_int8_t *ki, u_int8_t *srand, u_int8_t *sres, u_int8_t *kc);

#endif /* __COMP128_H__ */