mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-30 03:11:43 +00:00
26 lines
738 B
C
26 lines
738 B
C
/*---------------------------------------------------------------------
|
||
This file has been adapted from the implementation
|
||
(available at, Public Domain https://github.com/pq-crystals/kyber)
|
||
of "CRYSTALS – Kyber: a CCA-secure module-lattice-based KEM"
|
||
by : Joppe Bos, Leo Ducas, Eike Kiltz, Tancrede Lepoint,
|
||
Vadim Lyubashevsky, John M. Schanck, Peter Schwabe & Damien stehle
|
||
----------------------------------------------------------------------*/
|
||
|
||
#ifndef POLY_H
|
||
#define POLY_H
|
||
|
||
#include "SABER_params.h"
|
||
#include <stdint.h>
|
||
|
||
typedef struct {
|
||
uint16_t coeffs[SABER_N];
|
||
} poly;
|
||
|
||
typedef struct {
|
||
poly vec[SABER_K];
|
||
} polyvec;
|
||
|
||
void PQCLEAN_SABER_CLEAN_GenSecret(uint16_t r[SABER_K][SABER_N], const unsigned char *seed);
|
||
|
||
#endif
|