From 58e6a908810b175050a46fb8a18c400c72eb5e8a Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 25 May 2014 22:43:59 +0200 Subject: [PATCH] ASCII->POLY: improve readability --- src/ascii_poly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ascii_poly.c b/src/ascii_poly.c index 33a129f..4fbf4af 100644 --- a/src/ascii_poly.c +++ b/src/ascii_poly.c @@ -121,7 +121,7 @@ fmpz_poly_t **ascii_to_poly(char *to_poly, ntru_context *ctx) uint32_t i = 0, polyc = 0; char *cur = to_poly; - size_t out_size = CHAR_SIZE * (strlen(to_poly) * 8 + 1); + size_t out_size = CHAR_SIZE * (strlen(to_poly) * ASCII_BITS + 1); char *out = ntru_malloc(out_size); fmpz_poly_t **poly_array;