ParagonIE_Sodium_Core32_Curve25519::fe_isnegative() public WP 1.0
Is a field element negative? (1 = yes, 0 = no. Used in calculations.)
{} It's a method of the class: ParagonIE_Sodium_Core32_Curve25519{}
No Hooks.
Return
Int
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Core32_Curve25519::fe_isnegative( $f );
- $f(ParagonIE_Sodium_Core32_Curve25519_Fe) (required)
- -
Code of ParagonIE_Sodium_Core32_Curve25519::fe_isnegative() ParagonIE Sodium Core32 Curve25519::fe isnegative WP 5.7.1
public static function fe_isnegative(ParagonIE_Sodium_Core32_Curve25519_Fe $f)
{
$str = self::fe_tobytes($f);
return (int) (self::chrToInt($str[0]) & 1);
}