ParagonIE_Sodium_Core_Curve25519::fe_neg() – Get the negative values for each piece of the field element.

You appear to be a bot. Output may be restricted

Description

Get the negative values for each piece of the field element.

h = -f

Usage

$ParagonIE_Sodium_Core_Curve25519_Fe = ParagonIE_Sodium_Core_Curve25519::fe_neg( $f );

Parameters

$f
( ParagonIE_Sodium_Core_Curve25519_Fe ) required

Returns

ParagonIE_Sodium_Core_Curve25519_Fe

Source

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


Lines:

1 to 9 of 9
    public static function fe_neg(ParagonIE_Sodium_Core_Curve25519_Fe $f)
    {
        $h = new ParagonIE_Sodium_Core_Curve25519_Fe();
        for ($i = 0; $i < 10; ++$i) {
            $h[$i] = -$f[$i];
        }
        return self::fe_normalize($h);
    }
 

 View on GitHub View on Trac