-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomm.h
More file actions
31 lines (26 loc) · 740 Bytes
/
Copy pathcomm.h
File metadata and controls
31 lines (26 loc) · 740 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
#ifndef COMM_H
#define COMM_H
#include "params.h"
#include "polyvec.h"
typedef struct {
poly *t0; // length mu
poly *tm; // length m
} comm;
typedef struct {
poly *s; // length lambda
poly *e; // length mu
poly *em; // length m
} commrnd;
typedef struct {
poly * b0; // length mu x lambda
poly * bt; // length mu x m
poly * bm; // length m x lambda
} commkey;
#ifndef SHORT
void expand_commkey(commkey *ck, const uint8_t seed[PQMX_SYMBYTES]);
void commit(comm *t, commrnd *r, const poly *msg, const commkey *ck);
#else
void shortness_expand_commkey(commkey *ck, const uint8_t seed[PQMX_SYMBYTES]);
void shortness_commit(comm *t, commrnd *r, const poly *msg, const commkey *ck);
#endif
#endif