-
Notifications
You must be signed in to change notification settings - Fork 1
/
owf.h
39 lines (29 loc) · 1.01 KB
/
owf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* SPDX-License-Identifier: MIT
*/
#ifndef OWF_H
#define OWF_H
#include "macros.h"
#include <stdbool.h>
#include <stdint.h>
FAEST_BEGIN_C_DECL
bool owf_128(const uint8_t* key, const uint8_t* input, uint8_t* output);
bool owf_192(const uint8_t* key, const uint8_t* input, uint8_t* output);
bool owf_256(const uint8_t* key, const uint8_t* input, uint8_t* output);
bool owf_em_128(const uint8_t* key, const uint8_t* input, uint8_t* output);
bool owf_em_192(const uint8_t* key, const uint8_t* input, uint8_t* output);
bool owf_em_256(const uint8_t* key, const uint8_t* input, uint8_t* output);
#define faest_128s_owf owf_128
#define faest_128f_owf owf_128
#define faest_192s_owf owf_192
#define faest_192f_owf owf_192
#define faest_256s_owf owf_256
#define faest_256f_owf owf_256
#define faest_em_128s_owf owf_em_128
#define faest_em_128f_owf owf_em_128
#define faest_em_192s_owf owf_em_192
#define faest_em_192f_owf owf_em_192
#define faest_em_256s_owf owf_em_256
#define faest_em_256f_owf owf_em_256
FAEST_END_C_DECL
#endif