RAND: changed from ntru_get_poly_small(int length... to ntru_get_random_poly_ternary(size_t length...
This commit is contained in:
parent
e072eb04e9
commit
79a908de00
@ -155,7 +155,7 @@ static unsigned int check_allowed_zeros(pb_poly *polynom)
|
|||||||
* @param entropy_source the source of entropy you want
|
* @param entropy_source the source of entropy you want
|
||||||
* @return newly allocated polynomial, must be freed with delete_polynom()
|
* @return newly allocated polynomial, must be freed with delete_polynom()
|
||||||
*/
|
*/
|
||||||
pb_poly *ntru_get_poly_small(int length, int entropy_source)
|
pb_poly *ntru_get_random_poly_ternary(int length, int entropy_source)
|
||||||
{
|
{
|
||||||
mp_int chara;
|
mp_int chara;
|
||||||
init_integer(&chara);
|
init_integer(&chara);
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
*/
|
*/
|
||||||
#define GET_INT_FROM_RRAND 3
|
#define GET_INT_FROM_RRAND 3
|
||||||
|
|
||||||
pb_poly *ntru_get_poly_small(int length, int entropy_source);
|
pb_poly *ntru_get_random_poly_ternary(int length, int entropy_source);
|
||||||
pb_poly *ntru_get_poly_big(int length, int entropy_source, mp_int *upper_bound,
|
pb_poly *ntru_get_poly_big(size_t length, int entropy_source, mp_int *upper_bound,
|
||||||
mp_int *lower_bound);
|
mp_int *lower_bound);
|
||||||
|
|
||||||
#endif /* NTRU_RAND_H */
|
#endif /* NTRU_RAND_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user