
org.whispersystems.curve25519.java.fe_isreduced 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
The newest version!
package org.whispersystems.curve25519.java;
public class fe_isreduced {
public static int[] fe_isreduced(byte[] s) {
int[] f = new int[10];
byte[] strict = new byte[32];
fe_frombytes.fe_frombytes(f, s);
fe_tobytes.fe_tobytes(strict, f);
if (crypto_verify_32.crypto_verify_32(strict, s) == 0)
return f;
else {
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy