libosmogsm
0.9.3
Osmocom GSM library
|
00001 /* 00002 * COMP128v23 header 00003 * 00004 * See comp128v23.c for details 00005 */ 00006 00007 #pragma once 00008 00009 #include <stdint.h> 00010 00011 /* 00012 * Performs the COMP128 version 2 and 3 algorithm (used as A3/A8) 00013 * ki : uint8_t [16] 00014 * srand : uint8_t [16] 00015 * sres : uint8_t [4] 00016 * kc : uint8_t [8] 00017 * returns 1 if not version 2 or 3 specified 00018 */ 00019 int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc); 00020 int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);