Skip to content
Snippets Groups Projects
Commit de360df5 authored by Niels Möller's avatar Niels Möller
Browse files

eccdata: Add assert.

parent 1eb23ca5
No related branches found
No related tags found
No related merge requests found
...@@ -664,6 +664,7 @@ ecc_pippenger_precompute (struct ecc_curve *ecc, unsigned k, unsigned c) ...@@ -664,6 +664,7 @@ ecc_pippenger_precompute (struct ecc_curve *ecc, unsigned k, unsigned c)
ecc->pippenger_k = k; ecc->pippenger_k = k;
ecc->pippenger_c = c; ecc->pippenger_c = c;
ecc->table_size = M << c; ecc->table_size = M << c;
assert (ecc->table_size >= 2);
ecc->table = ecc_alloc (ecc->table_size); ecc->table = ecc_alloc (ecc->table_size);
/* Compute the first 2^c entries */ /* Compute the first 2^c entries */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment