rand_poly initial setup
This commit is contained in:
27
tests/test.c
Normal file
27
tests/test.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user