aboutsummaryrefslogtreecommitdiff
path: root/analysis/countermeasures/combinations.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'analysis/countermeasures/combinations.ipynb')
-rw-r--r--analysis/countermeasures/combinations.ipynb54
1 files changed, 47 insertions, 7 deletions
diff --git a/analysis/countermeasures/combinations.ipynb b/analysis/countermeasures/combinations.ipynb
index cd07889..9fcba68 100644
--- a/analysis/countermeasures/combinations.ipynb
+++ b/analysis/countermeasures/combinations.ipynb
@@ -1,6 +1,22 @@
{
"cells": [
{
+ "cell_type": "markdown",
+ "id": "65d4a44b-b1f1-4a24-aed3-a7f12eb263a2",
+ "metadata": {},
+ "source": [
+ "# Simulation of countermeasure combinations\n",
+ "\n",
+ "This notebook contains simulation of combinations of countermeasures and their behavior under our tests:\n",
+ " - [GSR + Add](#GSR-+-Add)\n",
+ " - [GSR + Mul](#GSR-+-Mul)\n",
+ " - [GSR + Euclid](#GSR-+-Euclid)\n",
+ " - [Add + Mul](#Add-+-Mul)\n",
+ " - [Add + Euclid](#Add-+-Euclid)\n",
+ " - [Mul + Euclid](#Mul-+-Euclid)"
+ ]
+ },
+ {
"cell_type": "code",
"execution_count": null,
"id": "50a9e566",
@@ -172,6 +188,14 @@
]
},
{
+ "cell_type": "markdown",
+ "id": "4084e4ca-e375-4c3e-8ba9-37387a7ab8f9",
+ "metadata": {},
+ "source": [
+ "Let's initialize some useful objects first."
+ ]
+ },
+ {
"cell_type": "code",
"execution_count": null,
"id": "03ab7450",
@@ -185,6 +209,7 @@
"ltr = LTRMultiplier(add, dbl, complete=False)\n",
"rtl = RTLMultiplier(add, dbl, complete=False)\n",
"mult = ltr\n",
+ "\n",
"gsr = GroupScalarRandomization(mult)\n",
"gsr160 = GroupScalarRandomization(mult, 160)\n",
"asplit = AdditiveSplitting(mult)\n",
@@ -194,6 +219,14 @@
]
},
{
+ "cell_type": "markdown",
+ "id": "0366cb95-f70d-42ec-91d5-4681a86b40e1",
+ "metadata": {},
+ "source": [
+ "In the 3n test the target is given domain parameters of order $3n$ but claimed order $n$. The target is then given a point of order $3n$ for scalar multiplication and the results are observed."
+ ]
+ },
+ {
"cell_type": "code",
"execution_count": null,
"id": "ef143ca2",
@@ -551,7 +584,7 @@
"id": "32da4f70",
"metadata": {},
"source": [
- "## GSR + Mult"
+ "### GSR + Mul"
]
},
{
@@ -1513,7 +1546,7 @@
"id": "a4d14a41",
"metadata": {},
"source": [
- "### Add+Mul"
+ "### Add + Mul"
]
},
{
@@ -1735,7 +1768,7 @@
"id": "82876bb4",
"metadata": {},
"source": [
- "### Add + Eucl"
+ "### Add + Euclid"
]
},
{
@@ -1987,13 +2020,20 @@
]
},
{
+ "cell_type": "markdown",
+ "id": "68dd0555-e536-4c55-814a-b13e8d8e8349",
+ "metadata": {},
+ "source": [
+ "### Mul + Euclid"
+ ]
+ },
+ {
"cell_type": "code",
"execution_count": null,
"id": "3afaaa43",
"metadata": {},
"outputs": [],
"source": [
- " \n",
"@public\n",
"class Mul_Eucl_1(ScalarMultiplierCountermeasure):\n",
" r\"\"\"\n",
@@ -2233,9 +2273,9 @@
],
"metadata": {
"kernelspec": {
- "display_name": "env",
+ "display_name": "Python 3 (ipykernel)",
"language": "python",
- "name": "env"
+ "name": "python3"
},
"language_info": {
"codemirror_mode": {
@@ -2247,7 +2287,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.12"
+ "version": "3.13.5"
}
},
"nbformat": 4,