Hi.. I need help.
1) I have been getting this error. I downloaded it here.>>>
https://github.com/bitlogik/lattice-attackhowever, i have been getting errors. i wanted to check on weak edcsa but i couldn't get this program to run properly. even when i use the sample that comes with it and the gen_data.py ...it still dont work. is there something i need to change?
python3 lattice_attack.py
----- Lattice ECDSA Attack -----
Loading data from file data.json
Running with 6 bits of k (LSB)
Starting recovery attack (curve SECP256K1)
Constructing matrix
Solving matrix ...
LLL reduction
Traceback (most recent call last):
File "/home/krash/lattack/lattice_attack.py", line 259, in <module>
lattice_attack_cli(arg.f, arg.l)
File "/home/krash/lattack/lattice_attack.py", line 239, in lattice_attack_cli
result = recover_private_key(
File "/home/krash/lattack/lattice_attack.py", line 195, in recover_private_key
res = test_result(lattice, pub_key, curve)
File "/home/krash/lattack/lattice_attack.py", line 93, in test_result
if target_pubkey == ecdsa_lib.privkey_to_pubkey(cand1, curve):
File "/home/krash/lattack/ecdsa_lib.py", line 129, in privkey_to_pubkey
ec.derive_private_key(pv_key_int, ec_backend, backends.default_backend())
File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 332, in derive_private_key
raise TypeError("private_value must be an integer type.")
TypeError: private_value must be an integer type.
What is wrong here??
2)If i wanna input my own datas in (RSZ,hashes) which file should i change it at?
Thank you for your advise and help in advance.