libosmogsm 1.9.0.196-9975
Osmocom GSM library
comp128v23.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <stdint.h>
10
11/*
12 * Performs the COMP128 version 2 and 3 algorithm (used as A3/A8)
13 * ki : uint8_t [16]
14 * srand : uint8_t [16]
15 * sres : uint8_t [4]
16 * kc : uint8_t [8]
17 * returns 1 if not version 2 or 3 specified
18 */
19int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
20int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc)
Perform COMP128v3 algorithm.
Definition: comp128v23.c:115
int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc)
Perform COMP128v2 algorithm.
Definition: comp128v23.c:167
uint8_t sres[4]
Definition: gsm_04_08.h:0