aboutsummaryrefslogtreecommitdiff
path: root/epare/simulate.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'epare/simulate.ipynb')
-rw-r--r--epare/simulate.ipynb5
1 files changed, 3 insertions, 2 deletions
diff --git a/epare/simulate.ipynb b/epare/simulate.ipynb
index 89a5533..54e29ca 100644
--- a/epare/simulate.ipynb
+++ b/epare/simulate.ipynb
@@ -132,6 +132,7 @@
"source": [
"category = \"secg\"\n",
"curve = \"secp256r1\"\n",
+ "kind = \"precomp+necessary\"\n",
"params = get_params(category, curve, \"projective\")\n",
"num_workers = 20\n",
"bits = params.order.bit_length()\n",
@@ -159,11 +160,11 @@
"chunk_id = randbytes(4).hex()\n",
"with TaskExecutor(max_workers=num_workers, mp_context=spawn_context) as pool, enable_spawn(get_small_scalar_multiples) as target:\n",
" for mult in selected_mults:\n",
- " for countermeasure in (None, \"gsr\", \"additive\", \"multiplicative\", \"euclidean\"):\n",
+ " for countermeasure in (None, \"gsr\", \"additive\", \"multiplicative\", \"euclidean\", \"bt\"):\n",
" mwc = mult.with_countermeasure(countermeasure)\n",
" pool.submit_task(mwc,\n",
" target,\n",
- " mwc, params, bits, samples, seed=chunk_id)\n",
+ " mwc, params, bits, samples, seed=chunk_id, kind=kind)\n",
" for mult, future in tqdm(pool.as_completed(), desc=\"Computing small scalar distributions.\", total=len(pool.tasks)):\n",
" print(f\"Got {mult}.\")\n",
" if error := future.exception():\n",