org.whispersystems.curve25519.java.crypto_verify_32 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of curve25519-java Show documentation
Show all versions of curve25519-java Show documentation
Curve25519 library for Java
package org.whispersystems.curve25519.java;
public class crypto_verify_32 {
public static int crypto_verify_32(byte[] x, byte[] y) {
int differentbits = 0;
for (int count = 0; count < 32; count++) {
differentbits |= (x[count] ^ y[count]);
}
return differentbits;
}
}