2017-06-20 02:35:06 +00:00
|
|
|
/*! \file comp128v23.h
|
|
|
|
* COMP128v23 header.
|
2013-11-02 17:11:01 +00:00
|
|
|
*
|
|
|
|
* See comp128v23.c for details
|
|
|
|
*/
|
|
|
|
|
2014-06-16 08:13:40 +00:00
|
|
|
#pragma once
|
2013-11-02 17:11:01 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Performs the COMP128 version 2 and 3 algorithm (used as A3/A8)
|
|
|
|
* ki : uint8_t [16]
|
|
|
|
* srand : uint8_t [16]
|
|
|
|
* sres : uint8_t [4]
|
|
|
|
* kc : uint8_t [8]
|
|
|
|
* returns 1 if not version 2 or 3 specified
|
|
|
|
*/
|
2013-12-02 10:30:32 +00:00
|
|
|
int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
|
|
|
|
int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
|