You are here

public static function ParagonIE_Sodium_Core32_Curve25519::equal in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Core32/Curve25519.php \ParagonIE_Sodium_Core32_Curve25519::equal()

@internal You should not use this directly from another application

@psalm-suppress MixedReturnStatement

Parameters

int $b:

int $c:

Return value

int

1 call to ParagonIE_Sodium_Core32_Curve25519::equal()
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 1834

Class

ParagonIE_Sodium_Core32_Curve25519
Class ParagonIE_Sodium_Core32_Curve25519

Code

public static function equal($b, $c) {
  return (int) ((($b ^ $c) - 1 & 0xffffffff) >> 31);
}