
org.whispersystems.curve25519.java.sc_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 sc_isreduced {
public static boolean sc_isreduced(byte[] s) {
byte[] strict = new byte[64];
System.arraycopy(s, 0, strict, 0, 32);
sc_reduce.sc_reduce(strict);
return crypto_verify_32.crypto_verify_32(strict, s) == 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy