diff --git a/src/poly.c b/src/poly.c index 3ee3341..b5b6dd7 100644 --- a/src/poly.c +++ b/src/poly.c @@ -35,7 +35,6 @@ /* * static declarations */ -static unsigned int get_degree(pb_poly const * const poly); static void pb_mod2_to_modq(pb_poly * const a, pb_poly *Fq, ntru_context *ctx); @@ -275,7 +274,7 @@ void pb_xor(pb_poly *a, * @param poly the polynomial * @return the degree */ -static unsigned int get_degree(pb_poly const * const poly) +unsigned int get_degree(pb_poly const * const poly) { unsigned int count = 0; diff --git a/src/poly.h b/src/poly.h index 4f3beea..9c2f988 100644 --- a/src/poly.h +++ b/src/poly.h @@ -31,6 +31,9 @@ #include #include + +unsigned int get_degree(pb_poly const * const poly); + #define MP_SET(...) mp_set(__VA_ARGS__) #define MP_SET_INT(...) \