public static function ParagonIE_Sodium_Core32_Curve25519::fe_neg in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Core32/Curve25519.php \ParagonIE_Sodium_Core32_Curve25519::fe_neg()
Get the negative values for each piece of the field element.
h = -f
@internal You should not use this directly from another application
@psalm-suppress MixedAssignment @psalm-suppress MixedMethodCall
Parameters
ParagonIE_Sodium_Core32_Curve25519_Fe $f:
Return value
ParagonIE_Sodium_Core32_Curve25519_Fe
2 calls to ParagonIE_Sodium_Core32_Curve25519::fe_neg()
- ParagonIE_Sodium_Core32_Curve25519::ge_frombytes_negate_vartime in vendor/
paragonie/ sodium_compat/ src/ Core32/ Curve25519.php - @internal You should not use this directly from another application
- ParagonIE_Sodium_Core32_Curve25519::ge_select in vendor/
paragonie/ sodium_compat/ src/ Core32/ Curve25519.php - @internal You should not use this directly from another application
File
- vendor/
paragonie/ sodium_compat/ src/ Core32/ Curve25519.php, line 754
Class
- ParagonIE_Sodium_Core32_Curve25519
- Class ParagonIE_Sodium_Core32_Curve25519
Code
public static function fe_neg(ParagonIE_Sodium_Core32_Curve25519_Fe $f) {
$h = new ParagonIE_Sodium_Core32_Curve25519_Fe();
for ($i = 0; $i < 10; ++$i) {
$h[$i] = $h[$i]
->subInt32($f[$i]);
}
return $h;
}