Closed ScH01ar closed 1 year ago
Which tests are you referring to specifically? Those functions are heavily overloaded, and do different things depending on the type of the input parameters (finite field element, integer, real number...)
such as this script
p=193387944202565886198256260591909756041
P.
t = GF(p)(193387944202565886198256260591909756040).squareroot() u = (P[1] + tP[0])/(P[1] - tP[0]) % p v = (Q[1] + tQ[0])/(Q[1] - tQ_[0]) % p print (v.log(u))
@ScH01ar could you link where this is used in the repository, I can't find it.
attacks/ecc/singular_curve.py : line 43
I didn't see too much of a performance difference, but I replaced it anyway for consistency: https://github.com/jvdsn/crypto-attacks/commit/9af6ac20f0abe387a7dcd8c92dc286e997774a75 Thanks.
In some tests, using "return v.log(u)" instead of "return int(discrete_log(v, u))" is more efficient. What are the differences between the two functions? Thanks.