WordPress at a glance
function is not described

ParagonIE_Sodium_Core_Curve25519::fe_neg() public WP 1.0

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

h = -f

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

No Hooks.

Return

ParagonIE_Sodium_Core_Curve25519_Fe. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_Curve25519::fe_neg( $f );
$f(ParagonIE_Sodium_Core_Curve25519_Fe) (required)
-

Code of ParagonIE_Sodium_Core_Curve25519::fe_neg() WP 5.7

<?php
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 $h;
}