ParagonIE_Sodium_Core_Curve25519::fe_sub() – Subtract two field elements.

You appear to be a bot. Output may be restricted

Description

Subtract two field elements.

h = f – g Preconditions:

f bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.

Postconditions:

Usage

$ParagonIE_Sodium_Core_Curve25519_Fe = ParagonIE_Sodium_Core_Curve25519::fe_sub( $f, $g );

Parameters

$f
( ParagonIE_Sodium_Core_Curve25519_Fe ) required
$g
( 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 20 of 20
    public static function fe_sub(ParagonIE_Sodium_Core_Curve25519_Fe $f, ParagonIE_Sodium_Core_Curve25519_Fe $g)
    {
        return self::fe_normalize(
            ParagonIE_Sodium_Core_Curve25519_Fe::fromArray(
                array(
                    (int) ($f[0] - $g[0]),
                    (int) ($f[1] - $g[1]),
                    (int) ($f[2] - $g[2]),
                    (int) ($f[3] - $g[3]),
                    (int) ($f[4] - $g[4]),
                    (int) ($f[5] - $g[5]),
                    (int) ($f[6] - $g[6]),
                    (int) ($f[7] - $g[7]),
                    (int) ($f[8] - $g[8]),
                    (int) ($f[9] - $g[9])
                )
            )
        );
    }
 

 View on GitHub View on Trac

Published:

Last updated:

9th June 2022

Information

API Letters: ,,,

Summary file
h bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.