diff --git a/.gitignore b/.gitignore index 5575263..f52be2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ __pycache__/ -test_*.py \ No newline at end of file +venv/ +test_*.py +keygen.py +keygen.bat +mikrotik.ico \ No newline at end of file diff --git a/keygen.zip b/keygen.zip index fd039b8..0a81d6d 100644 Binary files a/keygen.zip and b/keygen.zip differ diff --git a/mikro.py b/mikro.py index 2d8c5b9..83df543 100644 --- a/mikro.py +++ b/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() public_keys = [] 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)) nonce_hash = signature[:16]