ParagonIE_Sodium_Core_Curve25519::fe_isnegative() public WP 1.0
Is a field element negative? (1 = yes, 0 = no. Used in calculations.)
{} Это метод класса: ParagonIE_Sodium_Core_Curve25519{}
Хуков нет.
Возвращает
Число
. Null. Ничего.
Использование
$result = ParagonIE_Sodium_Core_Curve25519::fe_isnegative( $f );
- $f(ParagonIE_Sodium_Core_Curve25519_Fe) (обязательный)
- -
Код ParagonIE_Sodium_Core_Curve25519::fe_isnegative() ParagonIE Sodium Core Curve25519::fe isnegative WP 5.7
public static function fe_isnegative(ParagonIE_Sodium_Core_Curve25519_Fe $f)
{
$str = self::fe_tobytes($f);
return (int) (self::chrToInt($str[0]) & 1);
}