WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Curve25519::sc25519_invert() public WP 1.0

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Core_Curve25519::sc25519_invert( $s );
$s(string) (required)
-

Code of ParagonIE_Sodium_Core_Curve25519::sc25519_invert() WP 5.8.2

public static function sc25519_invert($s)
{
    $_10 = self::sc25519_sq($s);
    $_11 = self::sc25519_mul($s, $_10);
    $_100 = self::sc25519_mul($s, $_11);
    $_1000 = self::sc25519_sq($_100);
    $_1010 = self::sc25519_mul($_10, $_1000);
    $_1011 = self::sc25519_mul($s, $_1010);
    $_10000 = self::sc25519_sq($_1000);
    $_10110 = self::sc25519_sq($_1011);
    $_100000 = self::sc25519_mul($_1010, $_10110);
    $_100110 = self::sc25519_mul($_10000, $_10110);
    $_1000000 = self::sc25519_sq($_100000);
    $_1010000 = self::sc25519_mul($_10000, $_1000000);
    $_1010011 = self::sc25519_mul($_11, $_1010000);
    $_1100011 = self::sc25519_mul($_10000, $_1010011);
    $_1100111 = self::sc25519_mul($_100, $_1100011);
    $_1101011 = self::sc25519_mul($_100, $_1100111);
    $_10010011 = self::sc25519_mul($_1000000, $_1010011);
    $_10010111 = self::sc25519_mul($_100, $_10010011);
    $_10111101 = self::sc25519_mul($_100110, $_10010111);
    $_11010011 = self::sc25519_mul($_10110, $_10111101);
    $_11100111 = self::sc25519_mul($_1010000, $_10010111);
    $_11101011 = self::sc25519_mul($_100, $_11100111);
    $_11110101 = self::sc25519_mul($_1010, $_11101011);

    $recip = self::sc25519_mul($_1011, $_11110101);
    $recip = self::sc25519_sqmul($recip, 126, $_1010011);
    $recip = self::sc25519_sqmul($recip, 9, $_10);
    $recip = self::sc25519_mul($recip, $_11110101);
    $recip = self::sc25519_sqmul($recip, 7, $_1100111);
    $recip = self::sc25519_sqmul($recip, 9, $_11110101);
    $recip = self::sc25519_sqmul($recip, 11, $_10111101);
    $recip = self::sc25519_sqmul($recip, 8, $_11100111);
    $recip = self::sc25519_sqmul($recip, 9, $_1101011);
    $recip = self::sc25519_sqmul($recip, 6, $_1011);
    $recip = self::sc25519_sqmul($recip, 14, $_10010011);
    $recip = self::sc25519_sqmul($recip, 10, $_1100011);
    $recip = self::sc25519_sqmul($recip, 9, $_10010111);
    $recip = self::sc25519_sqmul($recip, 10, $_11110101);
    $recip = self::sc25519_sqmul($recip, 8, $_11010011);
    return self::sc25519_sqmul($recip, 8, $_11101011);
}