aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2022-12-28 17:00:25 +0100
committerJ08nY2022-12-28 17:00:25 +0100
commit67a66b2b4206a1b50577ada3fbaad54901ace64c (patch)
treed6d61c4c55e186117fca3298c510446c4d23d9d8
parente22ca41a68a5f6c717d9b526906b56dafc2f1ca1 (diff)
downloadpyecsca-notebook-67a66b2b4206a1b50577ada3fbaad54901ace64c.tar.gz
pyecsca-notebook-67a66b2b4206a1b50577ada3fbaad54901ace64c.tar.zst
pyecsca-notebook-67a66b2b4206a1b50577ada3fbaad54901ace64c.zip
Fix codegen notebook omission.
-rw-r--r--codegen.ipynb13
1 files changed, 7 insertions, 6 deletions
diff --git a/codegen.ipynb b/codegen.ipynb
index 54fe0c9..a54b42d 100644
--- a/codegen.ipynb
+++ b/codegen.ipynb
@@ -94,6 +94,7 @@
"mult = Multiplication.BASE\n",
"sqr = Squaring.BASE\n",
"red = Reduction.BASE\n",
+ "inv = Inversion.GCD\n",
"\n",
"model = ShortWeierstrassModel()\n",
"coords = model.coordinates[\"projective\"]\n",
@@ -105,7 +106,7 @@
"\n",
"config = DeviceConfiguration(model, coords, formulas, scalarmult, \n",
"\t\t\t\t\t\t\t hash_type, mod_rand, mult, sqr, red,\n",
- "\t\t\t\t\t\t\t platform, True, True, True)\n",
+ "\t\t\t\t\t\t\t inv, platform, True, True, True)\n",
"\n",
"config"
]
@@ -270,7 +271,7 @@
"source": [
"config = DeviceConfiguration(model, coords, formulas, scalarmult, \n",
"\t\t\t\t\t\t\t hash_type, mod_rand, mult, sqr, red,\n",
- "\t\t\t\t\t\t\t Platform.HOST, True, True, True)\n",
+ "\t\t\t\t\t\t\t inv, Platform.HOST, True, True, True)\n",
"\n",
"directory, elf_name, hex_name = render(config)\n",
"res = run([\"make\"], cwd=directory, capture_output=True)\n",
@@ -317,21 +318,21 @@
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
- "version": 2
+ "version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
- "pygments_lexer": "ipython2",
- "version": "2.7.6"
+ "pygments_lexer": "ipython3",
+ "version": "3.10.8"
},
"pycharm": {
"stem_cell": {