From 979ae617261e17481575f5119e7bd8235e0526eb Mon Sep 17 00:00:00 2001 From: Malte Date: Tue, 6 May 2014 07:50:22 +0200 Subject: [PATCH] RAND: changed ntru_get_poly_big() to ntru_get_random_poly() --- src/rand.c | 2 +- src/rand.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rand.c b/src/rand.c index 820530b..f503ff6 100644 --- a/src/rand.c +++ b/src/rand.c @@ -192,7 +192,7 @@ pb_poly *ntru_get_random_poly_ternary(size_t length, int entropy_source) * @param entropy_source the source of entropy you want * @return newly allocated polynomial, must be freed with delete_polynom() */ -pb_poly *ntru_get_poly_big(int length, int entropy_source, mp_int *upper_bound, +pb_poly *ntru_get_random_poly(int length, int entropy_source, mp_int *upper_bound, mp_int *lower_bound) { //TODO diff --git a/src/rand.h b/src/rand.h index 4e21c4a..b4b073f 100644 --- a/src/rand.h +++ b/src/rand.h @@ -37,7 +37,7 @@ #define GET_INT_FROM_RRAND 3 pb_poly *ntru_get_random_poly_ternary(int length, int entropy_source); -pb_poly *ntru_get_poly_big(size_t length, int entropy_source, mp_int *upper_bound, +pb_poly *ntru_get_random_poly(size_t length, int entropy_source, mp_int *upper_bound, mp_int *lower_bound); #endif /* NTRU_RAND_H */