I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 5ae267a8 authored by str4d's avatar str4d
Browse files

EdDSA bugfixes

parent 0d2892c7
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ public class Utils {
for (int i = 0; i < 32; i++) {
result |= b[i] ^ c[i];
}
return ~equal(result, 0) & 0x01;
return equal(result, 0);
}
/**
......
......@@ -26,7 +26,7 @@ public class Ed25519FieldElement extends FieldElement {
public boolean isNonZero() {
byte[] s = toByteArray();
return Utils.equal(s, ZERO) == 1;
return Utils.equal(s, ZERO) == 0;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment