oxedyne/fe2o3/fe2o3_crypto/src/c/poly.h
532 bytes, 1 run
created by r1870400018:214, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | #ifndef POLY_H |
| 2 | #define POLY_H |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | #include "SABER_params.h" |
| 6 | |
| 7 | void MatrixVectorMul(const uint16_t a[SABER_L][SABER_L][SABER_N], const uint16_t s[SABER_L][SABER_N], uint16_t res[SABER_L][SABER_N], int16_t transpose); |
| 8 | void InnerProd(const uint16_t b[SABER_L][SABER_N], const uint16_t s[SABER_L][SABER_N], uint16_t res[SABER_N]); |
| 9 | void GenMatrix(uint16_t a[SABER_L][SABER_L][SABER_N], const uint8_t seed[SABER_SEEDBYTES]); |
| 10 | void GenSecret(uint16_t s[SABER_L][SABER_N], const uint8_t seed[SABER_NOISE_SEEDBYTES]); |
| 11 | |
| 12 | #endif |