ASCII->POLY: improve readability
This commit is contained in:
parent
47afca9fe6
commit
58e6a90881
@ -121,7 +121,7 @@ fmpz_poly_t **ascii_to_poly(char *to_poly, ntru_context *ctx)
|
|||||||
uint32_t i = 0,
|
uint32_t i = 0,
|
||||||
polyc = 0;
|
polyc = 0;
|
||||||
char *cur = to_poly;
|
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);
|
char *out = ntru_malloc(out_size);
|
||||||
fmpz_poly_t **poly_array;
|
fmpz_poly_t **poly_array;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user