
org.whispersystems.curve25519.java.point_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 point_isreduced {
public static boolean point_isreduced(byte[] p) {
byte prevp31Value = p[31];
p[31] &= 0x7F; /* mask off sign bit */
int[] result = fe_isreduced.fe_isreduced(p);
p[31] = prevp31Value;
return result != null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy