All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.curve25519.java.fe_isreduced Maven / Gradle / Ivy

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