rand_poly initial setup

This commit is contained in:
infidel
2022-04-16 15:38:03 +07:00
parent aecf8bb070
commit b8b1eeeeea
11 changed files with 107 additions and 3 deletions

27
tests/test.c Normal file
View File

@@ -0,0 +1,27 @@
#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);
}