WordPress at a glance
function is not described

ParagonIE_Sodium_Core32_Curve25519::fe_isnonzero() public WP 1.0

Returns 0 if this field element results in all NUL bytes.

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

No Hooks.

Return

true|false. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core32_Curve25519::fe_isnonzero( $f );
$f(ParagonIE_Sodium_Core32_Curve25519_Fe) (required)
-

Code of ParagonIE_Sodium_Core32_Curve25519::fe_isnonzero() WP 5.7

<?php
public static function fe_isnonzero(ParagonIE_Sodium_Core32_Curve25519_Fe $f)
{
    static $zero;
    if ($zero === null) {
        $zero = str_repeat("\x00", 32);
    }
    /** @var string $str */
    $str = self::fe_tobytes($f);
    /** @var string $zero */
    return !self::verify_32($str, $zero);
}