comp128.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <osmocom/core/defs.h>
/*
* Performs the COMP128v1 algorithm (used as A3/A8)
* ki : uint8_t [16]
* srand : uint8_t [16]
* sres : uint8_t [4]
* kc : uint8_t [8]
*/
void comp128v1(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc);
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");
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:246
sres
uint8_t sres[4]
Definition: gsm_04_08.h:708
comp128v1
void comp128v1(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc)
Perform COMP128v1 algorithm.
Definition: comp128.c:196