ParagonIE_Sodium_Core_Ristretto255::is_valid_point() –

You appear to be a bot. Output may be restricted

Description

Usage

$int = ParagonIE_Sodium_Core_Ristretto255::is_valid_point( $p );

Parameters

$p
( string ) required

Returns

int

Source

File name: wordpress/wp-includes/sodium_compat/src/Core/Ristretto255.php


Lines:

1 to 9 of 9
    public static function is_valid_point($p)
    {
        $result = self::ristretto255_frombytes($p);
        if ($result['res'] !== 0) {
            return 0;
        }
        return 1;
    }
 

 View on GitHub View on Trac