From 0c9e53b5fb1015072c2b0f6e836b2d0f47932c15 Mon Sep 17 00:00:00 2001 From: hasufell Date: Wed, 28 May 2014 19:41:51 +0200 Subject: [PATCH] ASCII->POLY: cosmetic cleanup --- src/ascii_poly.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ascii_poly.c b/src/ascii_poly.c index f8c096c..db71c28 100644 --- a/src/ascii_poly.c +++ b/src/ascii_poly.c @@ -108,8 +108,6 @@ get_bin_arr_to_ascii(char *binary_rep) if (!binary_rep || !*binary_rep) return NULL; - printf("YO %sEND\n", binary_rep); - int_arr_size = strlen(binary_rep) / ASCII_BITS + 1; int_arr = ntru_malloc(sizeof(*int_arr) * int_arr_size); @@ -185,7 +183,8 @@ ascii_to_bin_poly_arr(char *to_poly, ntru_context *ctx) free(tmp_string); } - poly_array = ntru_malloc(sizeof(**poly_array) * (strlen(out) / ctx->N)); + poly_array = ntru_malloc(sizeof(**poly_array) * + (strlen(out) / ctx->N)); for (uint32_t i = 0; i < strlen(out); i += ctx->N) { char chunk[ctx->N + 1];