POLY: make get_degree() public

This commit is contained in:
hasufell 2014-04-30 17:16:50 +02:00
parent 942f90a0ef
commit 12fa21f5b2
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -31,6 +31,9 @@
#include <stdarg.h>
#include <stdbool.h>
unsigned int get_degree(pb_poly const * const poly);
#define MP_SET(...) mp_set(__VA_ARGS__)
#define MP_SET_INT(...) \