diff --git a/src/context.h b/src/context.h index 0384b29..0ef307f 100644 --- a/src/context.h +++ b/src/context.h @@ -41,6 +41,6 @@ typedef struct { * small modulus */ int p; -} pqc_context; +} ntru_context; #endif /* NTRU_CONTEXT_H */ diff --git a/src/rand.c b/src/rand.c index a79e2d9..3d73651 100644 --- a/src/rand.c +++ b/src/rand.c @@ -78,7 +78,7 @@ static mp_digit get_urnd_int_small(int *sign) * @param ctx the NTRU context * @return newly allocated polynomial */ -pb_poly *get_urnd_poly_small(pqc_context *ctx) +pb_poly *ntru_get_urnd_poly_small(ntru_context *ctx) { mp_int *chara = malloc(sizeof(mp_int)); init_integer(chara); diff --git a/src/rand.h b/src/rand.h index 66f2a1b..0fa2c62 100644 --- a/src/rand.h +++ b/src/rand.h @@ -28,6 +28,6 @@ #include -pb_poly *get_urnd_poly_small(pqc_context *ctx); +pb_poly *ntru_get_urnd_poly_small(ntru_context *ctx); #endif /* NTRU_RAND_H */