-
Notifications
You must be signed in to change notification settings - Fork 1
/
vole.h
32 lines (23 loc) · 1.05 KB
/
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
31
32
/*
* SPDX-License-Identifier: MIT
*/
#ifndef FAEST_VOLE_H
#define FAEST_VOLE_H
#include "vc.h"
#include <stdbool.h>
FAEST_BEGIN_C_DECL
// k_b is at most 12, so chalout needs to point to an array of at most 12 bytes
int ChalDec(const uint8_t* chal, unsigned int i, unsigned int k0, unsigned int t0, unsigned int k1,
unsigned int t1, uint8_t* chalout);
void vole_commit(const uint8_t* rootKey, const uint8_t* iv, unsigned int ellhat,
const faest_paramset_t* params, uint8_t* hcom, vec_com_t* vecCom, uint8_t* c,
uint8_t* u, uint8_t** v);
void vole_reconstruct(const uint8_t* iv, const uint8_t* chal, const uint8_t* const* pdec,
const uint8_t* const* com_j, uint8_t* hcom, uint8_t** q, unsigned int ellhat,
const faest_paramset_t* params);
#if defined(FAEST_TESTS)
void ConvertToVole(const uint8_t* iv, const uint8_t* sd, bool sd0_bot, unsigned int lambda,
unsigned int depth, unsigned int outLenBytes, uint8_t* u, uint8_t* v);
#endif
FAEST_END_C_DECL
#endif