Summery Summery
Subtract two field elements.
Syntax Syntax
Description Description
h = f – g
Preconditions: |f| bounded by 1.1_2^25,1.1_2^24,1.1_2^25,1.1_2^24,etc. |g| bounded by 1.1_2^25,1.1_2^24,1.1_2^25,1.1_2^24,etc.
Postconditions: |h| bounded by 1.1_2^26,1.1_2^25,1.1_2^26,1.1_2^25,etc.
Parameters Parameters
- $f
-
(Required)
- $g
-
(Required)
Return Return
Source Source
File: wp-includes/sodium_compat/src/Core32/Curve25519.php
public static function fe_sub(ParagonIE_Sodium_Core32_Curve25519_Fe $f, ParagonIE_Sodium_Core32_Curve25519_Fe $g) { return ParagonIE_Sodium_Core32_Curve25519_Fe::fromArray( array( $f[0]->subInt32($g[0]), $f[1]->subInt32($g[1]), $f[2]->subInt32($g[2]), $f[3]->subInt32($g[3]), $f[4]->subInt32($g[4]), $f[5]->subInt32($g[5]), $f[6]->subInt32($g[6]), $f[7]->subInt32($g[7]), $f[8]->subInt32($g[8]), $f[9]->subInt32($g[9]) ) ); }