blob: bebeb5970b06a121f964a667b54a3b1ab0fa0720 [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]
Kevin Redonbe355cd2013-11-02 18:11:01 +010016 * sres : uint8_t [4]
17 * kc : uint8_t [8]
18 * returns 1 if not version 2 or 3 specified
19 */
Max4f0abc02013-12-02 11:30:32 +010020int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
21int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
Kevin Redonbe355cd2013-11-02 18:11:01 +010022
23#endif /* __COMP128V23_H__ */