blob: aa26e56a531fbc039c9b93af08b3e54b82ff9b8e [file] [log] [blame]
Kevin Redonbe355cd2013-11-02 18:11:01 +01001/*
2 * COMP128v23 header
3 *
4 * See comp128v23.c for details
5 */
6
7#ifndef __COMP128V23_H__
8#define __COMP128V23_H__
9
10#include <stdint.h>
11
12/*
13 * Performs the COMP128 version 2 and 3 algorithm (used as A3/A8)
14 * ki : uint8_t [16]
15 * srand : uint8_t [16]
16 * version : uint8_t (2 or 3)
17 * sres : uint8_t [4]
18 * kc : uint8_t [8]
19 * returns 1 if not version 2 or 3 specified
20 */
21int comp128v23(const uint8_t *ki, const uint8_t *rand, uint8_t version, uint8_t *sres, uint8_t *kc);
22
23#endif /* __COMP128V23_H__ */