scalar_random example

return self::ristretto255_from_hash(
            ParagonIE_Sodium_Compat::randombytes_buf(self::crypto_core_ristretto255_HASHBYTES)
        );
    }

    /** * @return string * @throws SodiumException */
    public static function ristretto255_scalar_random()
    {
        return self::scalar_random();
    }

    /** * @param string $s * @return string * @throws SodiumException */
    public static function ristretto255_scalar_complement($s)
    {
        return self::scalar_complement($s);
    }


    
Home | Imprint | This part of the site doesn't use cookies.