ENC: cleanup
This commit is contained in:
parent
ecdfbad591
commit
2a6ad998ce
@ -66,7 +66,6 @@ ntru_encrypt_poly(
|
|||||||
* TODO: investigate
|
* TODO: investigate
|
||||||
*/
|
*/
|
||||||
for (uint32_t i = 0; i < ctx->N; i++) {
|
for (uint32_t i = 0; i < ctx->N; i++) {
|
||||||
printf("go ");
|
|
||||||
fmpz_t e_coeff_i;
|
fmpz_t e_coeff_i;
|
||||||
fmpz *m_coeff_i = fmpz_poly_get_coeff_ptr(tmp_poly_msg, i);
|
fmpz *m_coeff_i = fmpz_poly_get_coeff_ptr(tmp_poly_msg, i);
|
||||||
fmpz_init(e_coeff_i);
|
fmpz_init(e_coeff_i);
|
||||||
@ -96,7 +95,6 @@ ntru_encrypt_string(
|
|||||||
poly_array = ascii_to_bin_poly_arr(msg, ctx);
|
poly_array = ascii_to_bin_poly_arr(msg, ctx);
|
||||||
|
|
||||||
while (*poly_array[i]) {
|
while (*poly_array[i]) {
|
||||||
poly_draw(*poly_array[i]);
|
|
||||||
ntru_encrypt_poly(*poly_array[i],
|
ntru_encrypt_poly(*poly_array[i],
|
||||||
pub_key,
|
pub_key,
|
||||||
rnd,
|
rnd,
|
||||||
|
Loading…
Reference in New Issue
Block a user