Browse Source

modified: .gitignore

modified:   keygen.zip
	modified:   mikro.py
pull/7/head
zyb 2 years ago
parent
commit
6d2fdf28d7
  1. 6
      .gitignore
  2. BIN
      keygen.zip
  3. 2
      mikro.py

6
.gitignore

@ -1,2 +1,6 @@
__pycache__/ __pycache__/
test_*.py
venv/
test_*.py
keygen.py
keygen.bat
mikrotik.ico

BIN
keygen.zip

2
mikro.py

@ -194,7 +194,7 @@ def mikro_kcdsa_verify(data:bytes, signature:bytes, public_key:bytes)->bool:
YY = ((x**3) + (curve.a * x**2) + x).sqrt() YY = ((x**3) + (curve.a * x**2) + x).sqrt()
public_keys = [] public_keys = []
for y in YY: for y in YY:
public_keys += [AffineCurvePoint(x, int(y), curve)]
public_keys += [AffineCurvePoint(int(x), int(y), curve)]
data_hash = bytearray(mikro_sha256(data)) data_hash = bytearray(mikro_sha256(data))
nonce_hash = signature[:16] nonce_hash = signature[:16]

Loading…
Cancel
Save