libosmogsm 1.10.0.10-24ad1
Osmocom GSM library
|
COMP128 version 2 and 3 implementation, common algorithm used for GSM Authentication (A3/A8). More...
#include <stdint.h>
#include <string.h>
Functions | |
static void | _comp128v23_internal (uint8_t *output, const uint8_t *kxor, const uint8_t *rand) |
int | comp128v3 (const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc) |
Perform COMP128v3 algorithm. More... | |
int | comp128v2 (const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc) |
Perform COMP128v2 algorithm. More... | |
Variables | |
static const uint8_t | table0 [256] |
static const uint8_t | table1 [256] |
COMP128 version 2 and 3 implementation, common algorithm used for GSM Authentication (A3/A8).
This code is a C conversion of the original code by Tamas Jos info@.nosp@m.skel.nosp@m.sec.c.nosp@m.om from: