libosmogsm  0.11.0-dirty
Osmocom GSM library
include/osmocom/gsm/comp128.h
Go to the documentation of this file.
00001 
00007 #pragma once
00008 
00009 #include <stdint.h>
00010 
00011 #include <osmocom/core/defs.h>
00012 
00013 /*
00014  * Performs the COMP128v1 algorithm (used as A3/A8)
00015  * ki    : uint8_t [16]
00016  * srand : uint8_t [16]
00017  * sres  : uint8_t [4]
00018  * kc    : uint8_t [8]
00019  */
00020 void comp128v1(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc);
00021 
00022 void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc) OSMO_DEPRECATED("Use generic API from osmocom/crypt/auth.h instead");
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines