Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../sodium_c.../src/Core32
File: Curve25519.php
$carry11 = $s11->shiftRight(21);
[3000] Fix | Delete
$s12 = $s12->addInt64($carry11);
[3001] Fix | Delete
$s11 = $s11->subInt64($carry11->shiftLeft(21));
[3002] Fix | Delete
[3003] Fix | Delete
$s0 = $s0->addInt64($s12->mulInt(666643, 20));
[3004] Fix | Delete
$s1 = $s1->addInt64($s12->mulInt(470296, 19));
[3005] Fix | Delete
$s2 = $s2->addInt64($s12->mulInt(654183, 20));
[3006] Fix | Delete
$s3 = $s3->subInt64($s12->mulInt(997805, 20));
[3007] Fix | Delete
$s4 = $s4->addInt64($s12->mulInt(136657, 18));
[3008] Fix | Delete
$s5 = $s5->subInt64($s12->mulInt(683901, 20));
[3009] Fix | Delete
[3010] Fix | Delete
$carry0 = $s0->shiftRight(21);
[3011] Fix | Delete
$s1 = $s1->addInt64($carry0);
[3012] Fix | Delete
$s0 = $s0->subInt64($carry0->shiftLeft(21));
[3013] Fix | Delete
$carry1 = $s1->shiftRight(21);
[3014] Fix | Delete
$s2 = $s2->addInt64($carry1);
[3015] Fix | Delete
$s1 = $s1->subInt64($carry1->shiftLeft(21));
[3016] Fix | Delete
$carry2 = $s2->shiftRight(21);
[3017] Fix | Delete
$s3 = $s3->addInt64($carry2);
[3018] Fix | Delete
$s2 = $s2->subInt64($carry2->shiftLeft(21));
[3019] Fix | Delete
$carry3 = $s3->shiftRight(21);
[3020] Fix | Delete
$s4 = $s4->addInt64($carry3);
[3021] Fix | Delete
$s3 = $s3->subInt64($carry3->shiftLeft(21));
[3022] Fix | Delete
$carry4 = $s4->shiftRight(21);
[3023] Fix | Delete
$s5 = $s5->addInt64($carry4);
[3024] Fix | Delete
$s4 = $s4->subInt64($carry4->shiftLeft(21));
[3025] Fix | Delete
$carry5 = $s5->shiftRight(21);
[3026] Fix | Delete
$s6 = $s6->addInt64($carry5);
[3027] Fix | Delete
$s5 = $s5->subInt64($carry5->shiftLeft(21));
[3028] Fix | Delete
$carry6 = $s6->shiftRight(21);
[3029] Fix | Delete
$s7 = $s7->addInt64($carry6);
[3030] Fix | Delete
$s6 = $s6->subInt64($carry6->shiftLeft(21));
[3031] Fix | Delete
$carry7 = $s7->shiftRight(21);
[3032] Fix | Delete
$s8 = $s8->addInt64($carry7);
[3033] Fix | Delete
$s7 = $s7->subInt64($carry7->shiftLeft(21));
[3034] Fix | Delete
$carry8 = $s8->shiftRight(21);
[3035] Fix | Delete
$s9 = $s9->addInt64($carry8);
[3036] Fix | Delete
$s8 = $s8->subInt64($carry8->shiftLeft(21));
[3037] Fix | Delete
$carry9 = $s9->shiftRight(21);
[3038] Fix | Delete
$s10 = $s10->addInt64($carry9);
[3039] Fix | Delete
$s9 = $s9->subInt64($carry9->shiftLeft(21));
[3040] Fix | Delete
$carry10 = $s10->shiftRight(21);
[3041] Fix | Delete
$s11 = $s11->addInt64($carry10);
[3042] Fix | Delete
$s10 = $s10->subInt64($carry10->shiftLeft(21));
[3043] Fix | Delete
[3044] Fix | Delete
$S0 = $s0->toInt32()->toInt();
[3045] Fix | Delete
$S1 = $s1->toInt32()->toInt();
[3046] Fix | Delete
$S2 = $s2->toInt32()->toInt();
[3047] Fix | Delete
$S3 = $s3->toInt32()->toInt();
[3048] Fix | Delete
$S4 = $s4->toInt32()->toInt();
[3049] Fix | Delete
$S5 = $s5->toInt32()->toInt();
[3050] Fix | Delete
$S6 = $s6->toInt32()->toInt();
[3051] Fix | Delete
$S7 = $s7->toInt32()->toInt();
[3052] Fix | Delete
$S8 = $s8->toInt32()->toInt();
[3053] Fix | Delete
$S9 = $s9->toInt32()->toInt();
[3054] Fix | Delete
$S10 = $s10->toInt32()->toInt();
[3055] Fix | Delete
$S11 = $s11->toInt32()->toInt();
[3056] Fix | Delete
[3057] Fix | Delete
/**
[3058] Fix | Delete
* @var array<int, int>
[3059] Fix | Delete
*/
[3060] Fix | Delete
$arr = array(
[3061] Fix | Delete
(int) ($S0 >> 0),
[3062] Fix | Delete
(int) ($S0 >> 8),
[3063] Fix | Delete
(int) (($S0 >> 16) | ($S1 << 5)),
[3064] Fix | Delete
(int) ($S1 >> 3),
[3065] Fix | Delete
(int) ($S1 >> 11),
[3066] Fix | Delete
(int) (($S1 >> 19) | ($S2 << 2)),
[3067] Fix | Delete
(int) ($S2 >> 6),
[3068] Fix | Delete
(int) (($S2 >> 14) | ($S3 << 7)),
[3069] Fix | Delete
(int) ($S3 >> 1),
[3070] Fix | Delete
(int) ($S3 >> 9),
[3071] Fix | Delete
(int) (($S3 >> 17) | ($S4 << 4)),
[3072] Fix | Delete
(int) ($S4 >> 4),
[3073] Fix | Delete
(int) ($S4 >> 12),
[3074] Fix | Delete
(int) (($S4 >> 20) | ($S5 << 1)),
[3075] Fix | Delete
(int) ($S5 >> 7),
[3076] Fix | Delete
(int) (($S5 >> 15) | ($S6 << 6)),
[3077] Fix | Delete
(int) ($S6 >> 2),
[3078] Fix | Delete
(int) ($S6 >> 10),
[3079] Fix | Delete
(int) (($S6 >> 18) | ($S7 << 3)),
[3080] Fix | Delete
(int) ($S7 >> 5),
[3081] Fix | Delete
(int) ($S7 >> 13),
[3082] Fix | Delete
(int) ($S8 >> 0),
[3083] Fix | Delete
(int) ($S8 >> 8),
[3084] Fix | Delete
(int) (($S8 >> 16) | ($S9 << 5)),
[3085] Fix | Delete
(int) ($S9 >> 3),
[3086] Fix | Delete
(int) ($S9 >> 11),
[3087] Fix | Delete
(int) (($S9 >> 19) | ($S10 << 2)),
[3088] Fix | Delete
(int) ($S10 >> 6),
[3089] Fix | Delete
(int) (($S10 >> 14) | ($S11 << 7)),
[3090] Fix | Delete
(int) ($S11 >> 1),
[3091] Fix | Delete
(int) ($S11 >> 9),
[3092] Fix | Delete
(int) $S11 >> 17
[3093] Fix | Delete
);
[3094] Fix | Delete
return self::intArrayToString($arr);
[3095] Fix | Delete
}
[3096] Fix | Delete
[3097] Fix | Delete
/**
[3098] Fix | Delete
* multiply by the order of the main subgroup l = 2^252+27742317777372353535851937790883648493
[3099] Fix | Delete
*
[3100] Fix | Delete
* @param ParagonIE_Sodium_Core32_Curve25519_Ge_P3 $A
[3101] Fix | Delete
* @return ParagonIE_Sodium_Core32_Curve25519_Ge_P3
[3102] Fix | Delete
* @throws SodiumException
[3103] Fix | Delete
* @throws TypeError
[3104] Fix | Delete
*/
[3105] Fix | Delete
public static function ge_mul_l(ParagonIE_Sodium_Core32_Curve25519_Ge_P3 $A)
[3106] Fix | Delete
{
[3107] Fix | Delete
$aslide = array(
[3108] Fix | Delete
13, 0, 0, 0, 0, -1, 0, 0, 0, 0, -11, 0, 0, 0, 0, 0, 0, -5, 0, 0, 0,
[3109] Fix | Delete
0, 0, 0, -3, 0, 0, 0, 0, -13, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 3, 0,
[3110] Fix | Delete
0, 0, 0, -13, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0,
[3111] Fix | Delete
0, 0, 11, 0, 0, 0, 0, -13, 0, 0, 0, 0, 0, 0, -3, 0, 0, 0, 0, 0, -1,
[3112] Fix | Delete
0, 0, 0, 0, 3, 0, 0, 0, 0, -11, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0,
[3113] Fix | Delete
0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 5, 0, 0, 0, 0,
[3114] Fix | Delete
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[3115] Fix | Delete
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[3116] Fix | Delete
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[3117] Fix | Delete
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[3118] Fix | Delete
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[3119] Fix | Delete
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
[3120] Fix | Delete
);
[3121] Fix | Delete
[3122] Fix | Delete
/** @var array<int, ParagonIE_Sodium_Core32_Curve25519_Ge_Cached> $Ai size 8 */
[3123] Fix | Delete
$Ai = array();
[3124] Fix | Delete
[3125] Fix | Delete
# ge_p3_to_cached(&Ai[0], A);
[3126] Fix | Delete
$Ai[0] = self::ge_p3_to_cached($A);
[3127] Fix | Delete
# ge_p3_dbl(&t, A);
[3128] Fix | Delete
$t = self::ge_p3_dbl($A);
[3129] Fix | Delete
# ge_p1p1_to_p3(&A2, &t);
[3130] Fix | Delete
$A2 = self::ge_p1p1_to_p3($t);
[3131] Fix | Delete
[3132] Fix | Delete
for ($i = 1; $i < 8; ++$i) {
[3133] Fix | Delete
# ge_add(&t, &A2, &Ai[0]);
[3134] Fix | Delete
$t = self::ge_add($A2, $Ai[$i - 1]);
[3135] Fix | Delete
# ge_p1p1_to_p3(&u, &t);
[3136] Fix | Delete
$u = self::ge_p1p1_to_p3($t);
[3137] Fix | Delete
# ge_p3_to_cached(&Ai[i], &u);
[3138] Fix | Delete
$Ai[$i] = self::ge_p3_to_cached($u);
[3139] Fix | Delete
}
[3140] Fix | Delete
[3141] Fix | Delete
$r = self::ge_p3_0();
[3142] Fix | Delete
for ($i = 252; $i >= 0; --$i) {
[3143] Fix | Delete
$t = self::ge_p3_dbl($r);
[3144] Fix | Delete
if ($aslide[$i] > 0) {
[3145] Fix | Delete
# ge_p1p1_to_p3(&u, &t);
[3146] Fix | Delete
$u = self::ge_p1p1_to_p3($t);
[3147] Fix | Delete
# ge_add(&t, &u, &Ai[aslide[i] / 2]);
[3148] Fix | Delete
$t = self::ge_add($u, $Ai[(int)($aslide[$i] / 2)]);
[3149] Fix | Delete
} elseif ($aslide[$i] < 0) {
[3150] Fix | Delete
# ge_p1p1_to_p3(&u, &t);
[3151] Fix | Delete
$u = self::ge_p1p1_to_p3($t);
[3152] Fix | Delete
# ge_sub(&t, &u, &Ai[(-aslide[i]) / 2]);
[3153] Fix | Delete
$t = self::ge_sub($u, $Ai[(int)(-$aslide[$i] / 2)]);
[3154] Fix | Delete
}
[3155] Fix | Delete
}
[3156] Fix | Delete
# ge_p1p1_to_p3(r, &t);
[3157] Fix | Delete
return self::ge_p1p1_to_p3($t);
[3158] Fix | Delete
}
[3159] Fix | Delete
}
[3160] Fix | Delete
[3161] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function