libosmogsm  0.11.0-dirty
Osmocom GSM library
include/osmocom/gsm/comp128v23.h
Go to the documentation of this file.
00001 
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);
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines