...
Let me give you an example, just try it on normal calculator, subtract 1 from the following and then
...
Digaran, stop creating mass fake accounts and spreading around. You're even using your signature ~dig OMG
This is really getting ridiculous.
In a bid to keep my research and efforts transparent and accessible, I have decided to share the GitHub repository containing my work on elliptic curve cryptography (ECC). Here's the link to the repository:
https://github.com/ecc-r/ECC-Vulnerability-Researchyour python program yields following error:
line 122, in is_point_odd
point_exponent = point_exponent(point, scalar)
^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'point_exponent' where it is not associated with a value
The name of the function is used as a variable in the function itself, which leads to an UnboundLocalError. To fix that bug, here's a patch...
Create a new file
bugfix.patch inside your local git folder with following content:
diff --git a/ecc_analysis.py b/ecc_analysis.py
index d216974..7307f5a 100644
--- a/ecc_analysis.py
+++ b/ecc_analysis.py
@@ -119,7 +119,7 @@ def is_point_odd(point):
scalar = CURVE_MAX - 2
- point_exponent = point_exponent(point, scalar)
+ result = point_exponent(point, scalar)
modulo_2_result = point_multiplication(point, point_exponent)
if modulo_2_result == get_first_point():
and then apply the patch
git apply bugfix.patch
or just merge in your branch, I created a pull-request in your git repo, feel free to check and update. I have included the patch in the
forked repository here.