From 5df1ebbb45d4302c54f25c8d10bd73140426440a Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 14 Apr 2014 23:47:01 +0200 Subject: [PATCH] ALL: prefix external API structs/functions with ntru_ --- src/context.h | 2 +- src/rand.c | 2 +- src/rand.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 */