-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvole.h
30 lines (21 loc) · 876 Bytes
/
vole.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
/*
* SPDX-License-Identifier: MIT
*/
#ifndef FAEST_VOLE_H
#define FAEST_VOLE_H
#include <stdbool.h>
#include "bavc.h"
FAEST_BEGIN_C_DECL
void vole_commit(const uint8_t* rootKey, const uint8_t* iv, unsigned int ellhat,
const faest_paramset_t* params, bavc_t* vecCom, uint8_t* c, uint8_t* u,
uint8_t** v);
bool vole_reconstruct(uint8_t* com, uint8_t** q, const uint8_t* iv, const uint8_t* chall_3,
const uint8_t* decom_i, const uint8_t* c, unsigned int ellhat,
const faest_paramset_t* params);
#if defined(FAEST_TESTS)
unsigned int convert_to_vole(const uint8_t* iv, const uint8_t* sd, bool sd0_bot, unsigned int i,
unsigned int outLenBytes, uint8_t* u, uint8_t* v,
const faest_paramset_t* params);
#endif
FAEST_END_C_DECL
#endif