aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2025-10-26 14:47:22 +0100
committerJ08nY2025-10-26 14:47:22 +0100
commit581253817dc2eabfb88d2d7ca75d2174eafe5c4d (patch)
tree64e61ee8e83b3da4e0f2b5a07b72cd5281788a03
parentce1f28417f7cf67c1e53873b0929600ff05bf4cc (diff)
downloadECTester-581253817dc2eabfb88d2d7ca75d2174eafe5c4d.tar.gz
ECTester-581253817dc2eabfb88d2d7ca75d2174eafe5c4d.tar.zst
ECTester-581253817dc2eabfb88d2d7ca75d2174eafe5c4d.zip
-rw-r--r--analysis/scalarmults/simulate.ipynb98
1 files changed, 7 insertions, 91 deletions
diff --git a/analysis/scalarmults/simulate.ipynb b/analysis/scalarmults/simulate.ipynb
index d79e447..2d46555 100644
--- a/analysis/scalarmults/simulate.ipynb
+++ b/analysis/scalarmults/simulate.ipynb
@@ -25,7 +25,7 @@
},
{
"cell_type": "code",
- "execution_count": 15,
+ "execution_count": null,
"id": "b4386513-cc14-434b-a748-2863f8657452",
"metadata": {},
"outputs": [],
@@ -80,7 +80,7 @@
},
{
"cell_type": "code",
- "execution_count": 16,
+ "execution_count": null,
"id": "3463a7bd-34d8-458b-8ceb-dddf99de21dc",
"metadata": {},
"outputs": [],
@@ -97,21 +97,10 @@
},
{
"cell_type": "code",
- "execution_count": 17,
+ "execution_count": null,
"id": "170c11fc-86cf-4eb1-bf4e-b2e44b2d7ac5",
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Scalar multipliers considered: 65\n",
- "Scalar multipliers (with a combination of up-to two countermeasures) considered: 5265\n",
- "Error models considered: 32\n",
- "Total configurations considered: 168480\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"nmults = len(all_mults)\n",
"nmults_ctr = len(all_mults_with_ctr)\n",
@@ -137,7 +126,7 @@
},
{
"cell_type": "code",
- "execution_count": 18,
+ "execution_count": null,
"id": "4d5c7f10-618f-4612-b594-81d1607b0d1d",
"metadata": {},
"outputs": [],
@@ -170,30 +159,7 @@
"execution_count": null,
"id": "84359084-4116-436c-92cd-d43fdfeca842",
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "f7b8ac781be9408db32f219b4b2290a0",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Computing multiple graphs.: 0%| | 0/5265 [00:00<?, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "/home/xjancar/pyecsca/virt/lib/python3.12/site-packages/loky/process_executor.py:782: UserWarning: A worker stopped while some jobs were given to the executor. This can be caused by a too short worker timeout or by a memory leak.\n",
- " warnings.warn(\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"chunk_id = randbytes(4).hex()\n",
"with TaskExecutor(max_workers=num_workers, initializer=silence) as pool, tempfile.TemporaryDirectory() as tmp_dirname:\n",
@@ -234,57 +200,7 @@
"execution_count": null,
"id": "fbab8333-b8f1-4890-b38a-7bb34f5ffb02",
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "f4bc80bd47b345e0a74ad1a94121bfb1",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Processing chunks: 0%| | 0/1 [00:00<?, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Processing chunk 316daffc, no probmaps found.\n"
- ]
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "38046ebec4d34694a973ab1959f14905",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Loading chunk 316daffc.: 0%| | 0/5265 [00:00<?, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "76e3fb85f95e41069c2b7fbe86b27650",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Processing 316daffc.: 0%| | 0/168480 [00:00<?, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"with TaskExecutor(max_workers=num_workers, initializer=silence) as pool:\n",
" for in_fname in tqdm(glob.glob(f\"multiples_{bits}_chunk*.pickle\"), desc=\"Processing chunks\", smoothing=0):\n",