blob: affe8a21b419a34b656139132a6b9cc93226fb8c [file] [log] [blame]
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02001/*! \file comp128v23.h
2 * COMP128v23 header.
Kevin Redonbe355cd2013-11-02 18:11:01 +01003 *
4 * See comp128v23.c for details
5 */
6
Sylvain Munaut12ba7782014-06-16 10:13:40 +02007#pragma once
Kevin Redonbe355cd2013-11-02 18:11:01 +01008
9#include <stdint.h>
10
11/*
12 * Performs the COMP128 version 2 and 3 algorithm (used as A3/A8)
13 * ki : uint8_t [16]
14 * srand : uint8_t [16]
Kevin Redonbe355cd2013-11-02 18:11:01 +010015 * sres : uint8_t [4]
16 * kc : uint8_t [8]
17 * returns 1 if not version 2 or 3 specified
18 */
Max4f0abc02013-12-02 11:30:32 +010019int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
20int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);