wppaste
WordPress

ParagonIE_Sodium_Core32_Curve25519::sc_muladd( string $a, string $b, string $c ): string

Source
wp-includes/sodium_compat/src/Core32/Curve25519.php:2249
Calculates (ab + c) mod l where l = 2^252 + 27742317777372353535851937790883648493

Compatibility

WordPress
core
PHP
7.4–8.6-dev
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.

Parameters

$astring
$bstring
$cstring

Return value

string

Performance profile

How much work a call to ParagonIE_Sodium_Core32_Curve25519::sc_muladd() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Light

Touches nothing outside its own arguments.

Scaling
Constant

No loop in the body: the same number of instructions runs whatever you pass in.

Instructions
3542

Executed per call on PHP 8.5. The body compiles to 3542.

Plugin surface
None

Nothing here hands control to plugin code.

Called by
0

Nothing in core calls this; the cost is only what you spend yourself.

What one call costs · 1 distinct outcome

One number would be a lie: the work depends on which branch runs. These are every distinct cost ParagonIE_Sodium_Core32_Curve25519::sc_muladd() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
always3542::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_3(), ::ParagonIE_Sodium_Core32_Int64(), ::substr(), ::load_4(), ::ParagonIE_Sodium_Core32_Int64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->mulInt64(), ->addInt64(), ->mulInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->addInt(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->mulInt(), ->addInt64(), ->mulInt(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->shiftRight(), ->addInt64(), ->shiftLeft(), ->subInt64(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ->toInt(), ::intArrayToString()

Across PHP versions

Compiles the same on PHP 7.4, 8.1, 8.2, 8.3, 8.4, 8.5 and 8.6-dev: 3542 instructions, 3542 executed per call, 0 branches. The work does not change between versions.

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Uses · 6

Source code

    public static function sc_muladd($a, $b, $c)    {        $a0 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & self::load_3(self::substr($a, 0, 3)));        $a1 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($a, 2, 4)) >> 5));        $a2 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($a, 5, 3)) >> 2));        $a3 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($a, 7, 4)) >> 7));        $a4 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($a, 10, 4)) >> 4));        $a5 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($a, 13, 3)) >> 1));        $a6 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($a, 15, 4)) >> 6));        $a7 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($a, 18, 3)) >> 3));        $a8 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & self::load_3(self::substr($a, 21, 3)));        $a9 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($a, 23, 4)) >> 5));        $a10 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($a, 26, 3)) >> 2));        $a11 = ParagonIE_Sodium_Core32_Int64::fromInt(0x1fffffff & (self::load_4(self::substr($a, 28, 4)) >> 7));        $b0 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & self::load_3(self::substr($b, 0, 3)));        $b1 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($b, 2, 4)) >> 5));        $b2 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($b, 5, 3)) >> 2));        $b3 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($b, 7, 4)) >> 7));        $b4 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($b, 10, 4)) >> 4));        $b5 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($b, 13, 3)) >> 1));        $b6 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($b, 15, 4)) >> 6));        $b7 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($b, 18, 3)) >> 3));        $b8 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & self::load_3(self::substr($b, 21, 3)));        $b9 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($b, 23, 4)) >> 5));        $b10 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($b, 26, 3)) >> 2));        $b11 = ParagonIE_Sodium_Core32_Int64::fromInt(0x1fffffff & (self::load_4(self::substr($b, 28, 4)) >> 7));        $c0 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & self::load_3(self::substr($c, 0, 3)));        $c1 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($c, 2, 4)) >> 5));        $c2 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($c, 5, 3)) >> 2));        $c3 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($c, 7, 4)) >> 7));        $c4 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($c, 10, 4)) >> 4));        $c5 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($c, 13, 3)) >> 1));        $c6 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($c, 15, 4)) >> 6));        $c7 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($c, 18, 3)) >> 3));        $c8 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & self::load_3(self::substr($c, 21, 3)));        $c9 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_4(self::substr($c, 23, 4)) >> 5));        $c10 = ParagonIE_Sodium_Core32_Int64::fromInt(2097151 & (self::load_3(self::substr($c, 26, 3)) >> 2));        $c11 = ParagonIE_Sodium_Core32_Int64::fromInt(0x1fffffff & (self::load_4(self::substr($c, 28, 4)) >> 7));         /* Can't really avoid the pyramid here: */        /**         * @var ParagonIE_Sodium_Core32_Int64 $s0         * @var ParagonIE_Sodium_Core32_Int64 $s1         * @var ParagonIE_Sodium_Core32_Int64 $s2         * @var ParagonIE_Sodium_Core32_Int64 $s3         * @var ParagonIE_Sodium_Core32_Int64 $s4         * @var ParagonIE_Sodium_Core32_Int64 $s5         * @var ParagonIE_Sodium_Core32_Int64 $s6         * @var ParagonIE_Sodium_Core32_Int64 $s7         * @var ParagonIE_Sodium_Core32_Int64 $s8         * @var ParagonIE_Sodium_Core32_Int64 $s9         * @var ParagonIE_Sodium_Core32_Int64 $s10         * @var ParagonIE_Sodium_Core32_Int64 $s11         * @var ParagonIE_Sodium_Core32_Int64 $s12         * @var ParagonIE_Sodium_Core32_Int64 $s13         * @var ParagonIE_Sodium_Core32_Int64 $s14         * @var ParagonIE_Sodium_Core32_Int64 $s15         * @var ParagonIE_Sodium_Core32_Int64 $s16         * @var ParagonIE_Sodium_Core32_Int64 $s17         * @var ParagonIE_Sodium_Core32_Int64 $s18         * @var ParagonIE_Sodium_Core32_Int64 $s19         * @var ParagonIE_Sodium_Core32_Int64 $s20         * @var ParagonIE_Sodium_Core32_Int64 $s21         * @var ParagonIE_Sodium_Core32_Int64 $s22         * @var ParagonIE_Sodium_Core32_Int64 $s23         */         $s0 = $c0->addInt64($a0->mulInt64($b0, 24));        $s1 = $c1->addInt64($a0->mulInt64($b1, 24))->addInt64($a1->mulInt64($b0, 24));        $s2 = $c2->addInt64($a0->mulInt64($b2, 24))->addInt64($a1->mulInt64($b1, 24))->addInt64($a2->mulInt64($b0, 24));        $s3 = $c3->addInt64($a0->mulInt64($b3, 24))->addInt64($a1->mulInt64($b2, 24))->addInt64($a2->mulInt64($b1, 24))                 ->addInt64($a3->mulInt64($b0, 24));        $s4 = $c4->addInt64($a0->mulInt64($b4, 24))->addInt64($a1->mulInt64($b3, 24))->addInt64($a2->mulInt64($b2, 24))                 ->addInt64($a3->mulInt64($b1, 24))->addInt64($a4->mulInt64($b0, 24));        $s5 = $c5->addInt64($a0->mulInt64($b5, 24))->addInt64($a1->mulInt64($b4, 24))->addInt64($a2->mulInt64($b3, 24))                 ->addInt64($a3->mulInt64($b2, 24))->addInt64($a4->mulInt64($b1, 24))->addInt64($a5->mulInt64($b0, 24));        $s6 = $c6->addInt64($a0->mulInt64($b6, 24))->addInt64($a1->mulInt64($b5, 24))->addInt64($a2->mulInt64($b4, 24))                 ->addInt64($a3->mulInt64($b3, 24))->addInt64($a4->mulInt64($b2, 24))->addInt64($a5->mulInt64($b1, 24))                 ->addInt64($a6->mulInt64($b0, 24));        $s7 = $c7->addInt64($a0->mulInt64($b7, 24))->addInt64($a1->mulInt64($b6, 24))->addInt64($a2->mulInt64($b5, 24))

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/sodium_compat/src/Core32/Curve25519.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.