libosmogsm
UNKNOWN
Osmocom GSM library
Toggle main menu visibility
Loading...
Searching...
No Matches
comp128.h
Go to the documentation of this file.
1
6
7
#pragma once
8
9
#include <stdint.h>
10
11
#include <
osmocom/core/defs.h
>
12
13
/*
14
* Performs the COMP128v1 algorithm (used as A3/A8)
15
* ki : uint8_t [16]
16
* srand : uint8_t [16]
17
* sres : uint8_t [4]
18
* kc : uint8_t [8]
19
*/
20
void
comp128v1
(
const
uint8_t *ki,
const
uint8_t *srand, uint8_t *
sres
, uint8_t *kc);
21
22
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"
);
defs.h
comp128
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")
Perform COMP128v1 algorithm.
Definition
comp128.c:242
comp128v1
void comp128v1(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc)
Perform COMP128v1 algorithm.
Definition
comp128.c:192
OSMO_DEPRECATED
#define OSMO_DEPRECATED(text)
sres
uint8_t sres[4]
Definition
gsm_04_08.h:0
include
osmocom
gsm
comp128.h
Generated by
1.17.0