2017-06-20 02:35:06 +00:00
|
|
|
/*! \file comp128.h
|
|
|
|
* COMP128 header.
|
2010-02-20 19:34:29 +00:00
|
|
|
*
|
|
|
|
* See comp128.c for details
|
|
|
|
*/
|
|
|
|
|
2014-06-16 08:13:40 +00:00
|
|
|
#pragma once
|
2010-02-20 19:34:29 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2016-04-21 15:12:40 +00:00
|
|
|
#include <osmocom/core/defs.h>
|
|
|
|
|
2010-02-20 19:34:29 +00:00
|
|
|
/*
|
2016-04-21 15:12:40 +00:00
|
|
|
* Performs the COMP128v1 algorithm (used as A3/A8)
|
2010-02-20 19:34:29 +00:00
|
|
|
* ki : uint8_t [16]
|
|
|
|
* srand : uint8_t [16]
|
|
|
|
* sres : uint8_t [4]
|
|
|
|
* kc : uint8_t [8]
|
|
|
|
*/
|
2016-04-21 15:12:40 +00:00
|
|
|
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");
|