infidel_poly/tests/test.c

28 lines
446 B
C
Raw Normal View History

2022-04-16 04:38:03 -04:00
#include <stdio.h>
#include <stdint.h>
#include "test_util.h"
int main(int argc, char** argv) {
printf("Running Test....\n");
uint16_t i;
uint16_t modulus;
uint16_t N;
// int16_t coeffs[NTRU_INT_POLY_SIZE];
// uint16_t a;
modulus = 4;
N = 739;
NtruIntPoly a, c;
// a = 739;
printf("%d\n", modulus);
printf("%d\n", N);
// printf("%d\n", &a);
rand_poly(&a, N, modulus);
}