WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core32_Curve25519::fe_add() public WP 1.0

Add two field elements.

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

No Hooks.

Return

ParagonIE_Sodium_Core32_Curve25519_Fe.

Usage

$result = ParagonIE_Sodium_Core32_Curve25519::fe_add(;

Code of ParagonIE_Sodium_Core32_Curve25519::fe_add() WP 5.8.2

public static function fe_add(
    ParagonIE_Sodium_Core32_Curve25519_Fe $f,
    ParagonIE_Sodium_Core32_Curve25519_Fe $g
) {
    $arr = array();
    for ($i = 0; $i < 10; ++$i) {
        $arr[$i] = $f[$i]->addInt32($g[$i]);
    }
    /** @var array<int, ParagonIE_Sodium_Core32_Int32> $arr */
    return ParagonIE_Sodium_Core32_Curve25519_Fe::fromArray($arr);
}