POLY: rearrange header declarations
This commit is contained in:
parent
f6b5c8de19
commit
8fbcbe4144
11
src/poly.h
11
src/poly.h
@ -32,11 +32,6 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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(...) mp_set(__VA_ARGS__)
|
||||||
|
|
||||||
#define MP_SET_INT(...) \
|
#define MP_SET_INT(...) \
|
||||||
@ -173,8 +168,11 @@ unsigned int get_degree(pb_poly const * const poly);
|
|||||||
mp_error_to_string(result)); \
|
mp_error_to_string(result)); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void init_integer(mp_int *new_int);
|
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(pb_poly *new_poly, mp_int *chara);
|
||||||
|
|
||||||
void init_polynom_size(pb_poly *new_poly, mp_int *chara, size_t size);
|
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,
|
pb_poly *c,
|
||||||
const size_t len);
|
const size_t len);
|
||||||
|
|
||||||
|
unsigned int get_degree(pb_poly const * const poly);
|
||||||
|
|
||||||
bool pb_inverse_poly_q(pb_poly *a,
|
bool pb_inverse_poly_q(pb_poly *a,
|
||||||
pb_poly *Fq,
|
pb_poly *Fq,
|
||||||
ntru_context *ctx);
|
ntru_context *ctx);
|
||||||
@ -211,4 +211,5 @@ bool pb_inverse_poly_p(pb_poly *a,
|
|||||||
|
|
||||||
void draw_polynom(pb_poly * const poly);
|
void draw_polynom(pb_poly * const poly);
|
||||||
|
|
||||||
|
|
||||||
#endif /* NTRU_POLY_H */
|
#endif /* NTRU_POLY_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user