- Timestamp:
- 04/30/2023 02:06:51 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Core32/Poly1305/State.php
r52988 r55699 256 256 /* h *= r */ 257 257 $d0 = $zero 258 ->addInt64($h0->mulInt64($r0, 2 5))259 ->addInt64($s4->mulInt64($h1, 2 6))260 ->addInt64($s3->mulInt64($h2, 2 6))261 ->addInt64($s2->mulInt64($h3, 2 6))262 ->addInt64($s1->mulInt64($h4, 2 6));258 ->addInt64($h0->mulInt64($r0, 27)) 259 ->addInt64($s4->mulInt64($h1, 27)) 260 ->addInt64($s3->mulInt64($h2, 27)) 261 ->addInt64($s2->mulInt64($h3, 27)) 262 ->addInt64($s1->mulInt64($h4, 27)); 263 263 264 264 $d1 = $zero 265 ->addInt64($h0->mulInt64($r1, 2 5))266 ->addInt64($h1->mulInt64($r0, 2 5))267 ->addInt64($s4->mulInt64($h2, 2 6))268 ->addInt64($s3->mulInt64($h3, 2 6))269 ->addInt64($s2->mulInt64($h4, 2 6));265 ->addInt64($h0->mulInt64($r1, 27)) 266 ->addInt64($h1->mulInt64($r0, 27)) 267 ->addInt64($s4->mulInt64($h2, 27)) 268 ->addInt64($s3->mulInt64($h3, 27)) 269 ->addInt64($s2->mulInt64($h4, 27)); 270 270 271 271 $d2 = $zero 272 ->addInt64($h0->mulInt64($r2, 2 5))273 ->addInt64($h1->mulInt64($r1, 2 5))274 ->addInt64($h2->mulInt64($r0, 2 5))275 ->addInt64($s4->mulInt64($h3, 2 6))276 ->addInt64($s3->mulInt64($h4, 2 6));272 ->addInt64($h0->mulInt64($r2, 27)) 273 ->addInt64($h1->mulInt64($r1, 27)) 274 ->addInt64($h2->mulInt64($r0, 27)) 275 ->addInt64($s4->mulInt64($h3, 27)) 276 ->addInt64($s3->mulInt64($h4, 27)); 277 277 278 278 $d3 = $zero 279 ->addInt64($h0->mulInt64($r3, 2 5))280 ->addInt64($h1->mulInt64($r2, 2 5))281 ->addInt64($h2->mulInt64($r1, 2 5))282 ->addInt64($h3->mulInt64($r0, 2 5))283 ->addInt64($s4->mulInt64($h4, 2 6));279 ->addInt64($h0->mulInt64($r3, 27)) 280 ->addInt64($h1->mulInt64($r2, 27)) 281 ->addInt64($h2->mulInt64($r1, 27)) 282 ->addInt64($h3->mulInt64($r0, 27)) 283 ->addInt64($s4->mulInt64($h4, 27)); 284 284 285 285 $d4 = $zero 286 ->addInt64($h0->mulInt64($r4, 2 5))287 ->addInt64($h1->mulInt64($r3, 2 5))288 ->addInt64($h2->mulInt64($r2, 2 5))289 ->addInt64($h3->mulInt64($r1, 2 5))290 ->addInt64($h4->mulInt64($r0, 2 5));286 ->addInt64($h0->mulInt64($r4, 27)) 287 ->addInt64($h1->mulInt64($r3, 27)) 288 ->addInt64($h2->mulInt64($r2, 27)) 289 ->addInt64($h3->mulInt64($r1, 27)) 290 ->addInt64($h4->mulInt64($r0, 27)); 291 291 292 292 /* (partial) h %= p */
Note: See TracChangeset
for help on using the changeset viewer.