28 lines
446 B
C
28 lines
446 B
C
|
#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);
|
||
|
}
|