NHS31xx SW API
chaskey.h
1
/* C interface for C++ implementation of Chaskey MAC algorithm
2
* Very efficient MAC algorithm for microcontrollers
3
* http://mouha.be/chaskey/
4
*/
5
#include <stdint.h>
6
#pragma once
7
#ifdef __cplusplus
8
extern
"C"
{
9
#endif
10
11
void
chaskey(
12
uint8_t *tag,
13
uint32_t taglen,
14
const
uint8_t *m,
15
const
uint32_t mlen,
16
const
uint32_t k[4],
17
const
uint32_t k1[4],
18
const
uint32_t k2[4]
19
);
20
22
void
subkeys(
23
uint32_t k1[4],
24
uint32_t k2[4],
25
const
uint32_t k[4]
26
);
27
#ifdef __cplusplus
28
}
29
#endif
sw
nss
mods
mac
chaskey
chaskey.h
Generated on Tue Oct 20 2020 08:17:10 for NHS31xx SW API by
1.8.14