mirror of
https://github.com/henrydcase/pqc.git
synced 2024-12-02 04:11:26 +00:00
24 lines
675 B
C
24 lines
675 B
C
#ifndef POLY_H
|
|
#define POLY_H
|
|
#include "SABER_params.h"
|
|
#include <stdint.h>
|
|
|
|
typedef union {
|
|
uint16_t coeffs[SABER_N];
|
|
} poly;
|
|
|
|
|
|
void PQCLEAN_FIRESABER_CLEAN_MatrixVectorMul(poly c[SABER_L], const poly A[SABER_L][SABER_L], const poly s[SABER_L], int16_t transpose);
|
|
|
|
void PQCLEAN_FIRESABER_CLEAN_InnerProd(poly *c, const poly b[SABER_L], const poly s[SABER_L]);
|
|
|
|
void PQCLEAN_FIRESABER_CLEAN_GenMatrix(poly A[SABER_L][SABER_L], const uint8_t seed[SABER_SEEDBYTES]);
|
|
|
|
void PQCLEAN_FIRESABER_CLEAN_GenSecret(poly s[SABER_L], const uint8_t seed[SABER_NOISESEEDBYTES]);
|
|
|
|
|
|
void PQCLEAN_FIRESABER_CLEAN_poly_mul(poly *c, const poly *a, const poly *b, int accumulate);
|
|
|
|
|
|
#endif
|