blob: 33b997aa6ee758757d9f4c699ed401d91faee052 [file] [log] [blame]
Harald Welteec8b4502010-02-20 20:34:29 +01001/*
2 * COMP128 header
3 *
4 * See comp128.c for details
5 */
6
Sylvain Munaut12ba7782014-06-16 10:13:40 +02007#pragma once
Harald Welteec8b4502010-02-20 20:34:29 +01008
9#include <stdint.h>
10
11/*
12 * Performs the COMP128 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 */
Harald Welte39a287d2011-12-06 21:52:09 +010018void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc);