WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Ristretto255::is_valid_point() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core_Ristretto255{}

No Hooks.

Return

Int.

Usage

$result = ParagonIE_Sodium_Core_Ristretto255::is_valid_point( $p );
$p(string) (required)
-

Code of ParagonIE_Sodium_Core_Ristretto255::is_valid_point() WP 5.8.2

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