-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.h
More file actions
46 lines (33 loc) · 683 Bytes
/
types.h
File metadata and controls
46 lines (33 loc) · 683 Bytes
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
40
41
42
43
44
45
46
/*
* types.h
* integer-fhe
*
* Created by Henning Perl on 25.11.10.
* Copyright 2010 Henning Perl. All rights reserved.
*
*/
#pragma once
#ifndef TYPES_H
#define TYPES_H
#include <stdio.h>
#include <gmp.h>
#include "parameters.h"
/** type defs **/
typedef struct {
mpz_t p, alpha;
mpz_t c[FHE_S1], B[FHE_S1];
} _fhe_pk;
typedef _fhe_pk fhe_pk_t[1];
typedef struct {
mpz_t p, B;
} _fhe_sk;
typedef _fhe_sk fhe_sk_t[1];
/** memory management **/
void fhe_pk_init(fhe_pk_t pk);
void fhe_pk_clear(fhe_pk_t pk);
void fhe_sk_init(fhe_sk_t sk);
void fhe_sk_clear(fhe_sk_t sk);
/** output **/
void fhe_pk_print(fhe_pk_t pk);
void fhe_sk_print(fhe_sk_t sk);
#endif