diff --git a/src/poly.h b/src/poly.h index 1f81767..fdf7450 100644 --- a/src/poly.h +++ b/src/poly.h @@ -32,11 +32,6 @@ #include - -void init_integers(mp_int *new_int, ...); - -unsigned int get_degree(pb_poly const * const poly); - #define MP_SET(...) mp_set(__VA_ARGS__) #define MP_SET_INT(...) \ @@ -173,8 +168,11 @@ unsigned int get_degree(pb_poly const * const poly); mp_error_to_string(result)); \ } + void init_integer(mp_int *new_int); +void init_integers(mp_int *new_int, ...); + void init_polynom(pb_poly *new_poly, mp_int *chara); void init_polynom_size(pb_poly *new_poly, mp_int *chara, size_t size); @@ -201,6 +199,8 @@ void pb_xor(pb_poly *a, pb_poly *c, const size_t len); +unsigned int get_degree(pb_poly const * const poly); + bool pb_inverse_poly_q(pb_poly *a, pb_poly *Fq, ntru_context *ctx); @@ -211,4 +211,5 @@ bool pb_inverse_poly_p(pb_poly *a, void draw_polynom(pb_poly * const poly); + #endif /* NTRU_POLY_H */