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.../lib
File: sodium_compat.php
{
[500] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_scalarmult($n, $p);
[501] Fix | Delete
}
[502] Fix | Delete
}
[503] Fix | Delete
if (!is_callable('\\Sodium\\crypto_scalarmult_base')) {
[504] Fix | Delete
/**
[505] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_scalarmult_base()
[506] Fix | Delete
* @param string $n
[507] Fix | Delete
* @return string
[508] Fix | Delete
* @throws \SodiumException
[509] Fix | Delete
* @throws \TypeError
[510] Fix | Delete
*/
[511] Fix | Delete
function crypto_scalarmult_base($n)
[512] Fix | Delete
{
[513] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_scalarmult_base($n);
[514] Fix | Delete
}
[515] Fix | Delete
}
[516] Fix | Delete
if (!is_callable('\\Sodium\\crypto_secretbox')) {
[517] Fix | Delete
/**
[518] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_secretbox()
[519] Fix | Delete
* @param string $message
[520] Fix | Delete
* @param string $nonce
[521] Fix | Delete
* @param string $key
[522] Fix | Delete
* @return string
[523] Fix | Delete
* @throws \SodiumException
[524] Fix | Delete
* @throws \TypeError
[525] Fix | Delete
*/
[526] Fix | Delete
function crypto_secretbox($message, $nonce, $key)
[527] Fix | Delete
{
[528] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_secretbox($message, $nonce, $key);
[529] Fix | Delete
}
[530] Fix | Delete
}
[531] Fix | Delete
if (!is_callable('\\Sodium\\crypto_secretbox_open')) {
[532] Fix | Delete
/**
[533] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_secretbox_open()
[534] Fix | Delete
* @param string $message
[535] Fix | Delete
* @param string $nonce
[536] Fix | Delete
* @param string $key
[537] Fix | Delete
* @return string|bool
[538] Fix | Delete
*/
[539] Fix | Delete
function crypto_secretbox_open($message, $nonce, $key)
[540] Fix | Delete
{
[541] Fix | Delete
try {
[542] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_secretbox_open($message, $nonce, $key);
[543] Fix | Delete
} catch (\TypeError $ex) {
[544] Fix | Delete
return false;
[545] Fix | Delete
} catch (\SodiumException $ex) {
[546] Fix | Delete
return false;
[547] Fix | Delete
}
[548] Fix | Delete
}
[549] Fix | Delete
}
[550] Fix | Delete
if (!is_callable('\\Sodium\\crypto_shorthash')) {
[551] Fix | Delete
/**
[552] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_shorthash()
[553] Fix | Delete
* @param string $message
[554] Fix | Delete
* @param string $key
[555] Fix | Delete
* @return string
[556] Fix | Delete
* @throws \SodiumException
[557] Fix | Delete
* @throws \TypeError
[558] Fix | Delete
*/
[559] Fix | Delete
function crypto_shorthash($message, $key = '')
[560] Fix | Delete
{
[561] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_shorthash($message, $key);
[562] Fix | Delete
}
[563] Fix | Delete
}
[564] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign')) {
[565] Fix | Delete
/**
[566] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign()
[567] Fix | Delete
* @param string $message
[568] Fix | Delete
* @param string $sk
[569] Fix | Delete
* @return string
[570] Fix | Delete
* @throws \SodiumException
[571] Fix | Delete
* @throws \TypeError
[572] Fix | Delete
*/
[573] Fix | Delete
function crypto_sign($message, $sk)
[574] Fix | Delete
{
[575] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign($message, $sk);
[576] Fix | Delete
}
[577] Fix | Delete
}
[578] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_detached')) {
[579] Fix | Delete
/**
[580] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_detached()
[581] Fix | Delete
* @param string $message
[582] Fix | Delete
* @param string $sk
[583] Fix | Delete
* @return string
[584] Fix | Delete
* @throws \SodiumException
[585] Fix | Delete
* @throws \TypeError
[586] Fix | Delete
*/
[587] Fix | Delete
function crypto_sign_detached($message, $sk)
[588] Fix | Delete
{
[589] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_detached($message, $sk);
[590] Fix | Delete
}
[591] Fix | Delete
}
[592] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_keypair')) {
[593] Fix | Delete
/**
[594] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_keypair()
[595] Fix | Delete
* @return string
[596] Fix | Delete
* @throws \SodiumException
[597] Fix | Delete
* @throws \TypeError
[598] Fix | Delete
*/
[599] Fix | Delete
function crypto_sign_keypair()
[600] Fix | Delete
{
[601] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_keypair();
[602] Fix | Delete
}
[603] Fix | Delete
}
[604] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_open')) {
[605] Fix | Delete
/**
[606] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_open()
[607] Fix | Delete
* @param string $signedMessage
[608] Fix | Delete
* @param string $pk
[609] Fix | Delete
* @return string|bool
[610] Fix | Delete
*/
[611] Fix | Delete
function crypto_sign_open($signedMessage, $pk)
[612] Fix | Delete
{
[613] Fix | Delete
try {
[614] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $pk);
[615] Fix | Delete
} catch (\TypeError $ex) {
[616] Fix | Delete
return false;
[617] Fix | Delete
} catch (\SodiumException $ex) {
[618] Fix | Delete
return false;
[619] Fix | Delete
}
[620] Fix | Delete
}
[621] Fix | Delete
}
[622] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_publickey')) {
[623] Fix | Delete
/**
[624] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_publickey()
[625] Fix | Delete
* @param string $keypair
[626] Fix | Delete
* @return string
[627] Fix | Delete
* @throws \SodiumException
[628] Fix | Delete
* @throws \TypeError
[629] Fix | Delete
*/
[630] Fix | Delete
function crypto_sign_publickey($keypair)
[631] Fix | Delete
{
[632] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_publickey($keypair);
[633] Fix | Delete
}
[634] Fix | Delete
}
[635] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_publickey_from_secretkey')) {
[636] Fix | Delete
/**
[637] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey()
[638] Fix | Delete
* @param string $sk
[639] Fix | Delete
* @return string
[640] Fix | Delete
* @throws \SodiumException
[641] Fix | Delete
* @throws \TypeError
[642] Fix | Delete
*/
[643] Fix | Delete
function crypto_sign_publickey_from_secretkey($sk)
[644] Fix | Delete
{
[645] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey($sk);
[646] Fix | Delete
}
[647] Fix | Delete
}
[648] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_secretkey')) {
[649] Fix | Delete
/**
[650] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_secretkey()
[651] Fix | Delete
* @param string $keypair
[652] Fix | Delete
* @return string
[653] Fix | Delete
* @throws \SodiumException
[654] Fix | Delete
* @throws \TypeError
[655] Fix | Delete
*/
[656] Fix | Delete
function crypto_sign_secretkey($keypair)
[657] Fix | Delete
{
[658] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_secretkey($keypair);
[659] Fix | Delete
}
[660] Fix | Delete
}
[661] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_seed_keypair')) {
[662] Fix | Delete
/**
[663] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_seed_keypair()
[664] Fix | Delete
* @param string $seed
[665] Fix | Delete
* @return string
[666] Fix | Delete
* @throws \SodiumException
[667] Fix | Delete
* @throws \TypeError
[668] Fix | Delete
*/
[669] Fix | Delete
function crypto_sign_seed_keypair($seed)
[670] Fix | Delete
{
[671] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_seed_keypair($seed);
[672] Fix | Delete
}
[673] Fix | Delete
}
[674] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_verify_detached')) {
[675] Fix | Delete
/**
[676] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_verify_detached()
[677] Fix | Delete
* @param string $signature
[678] Fix | Delete
* @param string $message
[679] Fix | Delete
* @param string $pk
[680] Fix | Delete
* @return bool
[681] Fix | Delete
* @throws \SodiumException
[682] Fix | Delete
* @throws \TypeError
[683] Fix | Delete
*/
[684] Fix | Delete
function crypto_sign_verify_detached($signature, $message, $pk)
[685] Fix | Delete
{
[686] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_verify_detached($signature, $message, $pk);
[687] Fix | Delete
}
[688] Fix | Delete
}
[689] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_ed25519_pk_to_curve25519')) {
[690] Fix | Delete
/**
[691] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519()
[692] Fix | Delete
* @param string $pk
[693] Fix | Delete
* @return string
[694] Fix | Delete
* @throws \SodiumException
[695] Fix | Delete
* @throws \TypeError
[696] Fix | Delete
*/
[697] Fix | Delete
function crypto_sign_ed25519_pk_to_curve25519($pk)
[698] Fix | Delete
{
[699] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519($pk);
[700] Fix | Delete
}
[701] Fix | Delete
}
[702] Fix | Delete
if (!is_callable('\\Sodium\\crypto_sign_ed25519_sk_to_curve25519')) {
[703] Fix | Delete
/**
[704] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519()
[705] Fix | Delete
* @param string $sk
[706] Fix | Delete
* @return string
[707] Fix | Delete
* @throws \SodiumException
[708] Fix | Delete
* @throws \TypeError
[709] Fix | Delete
*/
[710] Fix | Delete
function crypto_sign_ed25519_sk_to_curve25519($sk)
[711] Fix | Delete
{
[712] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519($sk);
[713] Fix | Delete
}
[714] Fix | Delete
}
[715] Fix | Delete
if (!is_callable('\\Sodium\\crypto_stream')) {
[716] Fix | Delete
/**
[717] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_stream()
[718] Fix | Delete
* @param int $len
[719] Fix | Delete
* @param string $nonce
[720] Fix | Delete
* @param string $key
[721] Fix | Delete
* @return string
[722] Fix | Delete
* @throws \SodiumException
[723] Fix | Delete
* @throws \TypeError
[724] Fix | Delete
*/
[725] Fix | Delete
function crypto_stream($len, $nonce, $key)
[726] Fix | Delete
{
[727] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_stream($len, $nonce, $key);
[728] Fix | Delete
}
[729] Fix | Delete
}
[730] Fix | Delete
if (!is_callable('\\Sodium\\crypto_stream_xor')) {
[731] Fix | Delete
/**
[732] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_stream_xor()
[733] Fix | Delete
* @param string $message
[734] Fix | Delete
* @param string $nonce
[735] Fix | Delete
* @param string $key
[736] Fix | Delete
* @return string
[737] Fix | Delete
* @throws \SodiumException
[738] Fix | Delete
* @throws \TypeError
[739] Fix | Delete
*/
[740] Fix | Delete
function crypto_stream_xor($message, $nonce, $key)
[741] Fix | Delete
{
[742] Fix | Delete
return ParagonIE_Sodium_Compat::crypto_stream_xor($message, $nonce, $key);
[743] Fix | Delete
}
[744] Fix | Delete
}
[745] Fix | Delete
if (!is_callable('\\Sodium\\hex2bin')) {
[746] Fix | Delete
/**
[747] Fix | Delete
* @see ParagonIE_Sodium_Compat::hex2bin()
[748] Fix | Delete
* @param string $string
[749] Fix | Delete
* @return string
[750] Fix | Delete
* @throws \SodiumException
[751] Fix | Delete
* @throws \TypeError
[752] Fix | Delete
*/
[753] Fix | Delete
function hex2bin($string)
[754] Fix | Delete
{
[755] Fix | Delete
return ParagonIE_Sodium_Compat::hex2bin($string);
[756] Fix | Delete
}
[757] Fix | Delete
}
[758] Fix | Delete
if (!is_callable('\\Sodium\\memcmp')) {
[759] Fix | Delete
/**
[760] Fix | Delete
* @see ParagonIE_Sodium_Compat::memcmp()
[761] Fix | Delete
* @param string $a
[762] Fix | Delete
* @param string $b
[763] Fix | Delete
* @return int
[764] Fix | Delete
* @throws \SodiumException
[765] Fix | Delete
* @throws \TypeError
[766] Fix | Delete
*/
[767] Fix | Delete
function memcmp($a, $b)
[768] Fix | Delete
{
[769] Fix | Delete
return ParagonIE_Sodium_Compat::memcmp($a, $b);
[770] Fix | Delete
}
[771] Fix | Delete
}
[772] Fix | Delete
if (!is_callable('\\Sodium\\memzero')) {
[773] Fix | Delete
/**
[774] Fix | Delete
* @see ParagonIE_Sodium_Compat::memzero()
[775] Fix | Delete
* @param string $str
[776] Fix | Delete
* @return void
[777] Fix | Delete
* @throws \SodiumException
[778] Fix | Delete
* @throws \TypeError
[779] Fix | Delete
*
[780] Fix | Delete
* @psalm-suppress MissingParamType
[781] Fix | Delete
* @psalm-suppress MissingReturnType
[782] Fix | Delete
* @psalm-suppress ReferenceConstraintViolation
[783] Fix | Delete
*/
[784] Fix | Delete
function memzero(&$str)
[785] Fix | Delete
{
[786] Fix | Delete
ParagonIE_Sodium_Compat::memzero($str);
[787] Fix | Delete
}
[788] Fix | Delete
}
[789] Fix | Delete
if (!is_callable('\\Sodium\\randombytes_buf')) {
[790] Fix | Delete
/**
[791] Fix | Delete
* @see ParagonIE_Sodium_Compat::randombytes_buf()
[792] Fix | Delete
* @param int $amount
[793] Fix | Delete
* @return string
[794] Fix | Delete
* @throws \TypeError
[795] Fix | Delete
*/
[796] Fix | Delete
function randombytes_buf($amount)
[797] Fix | Delete
{
[798] Fix | Delete
return ParagonIE_Sodium_Compat::randombytes_buf($amount);
[799] Fix | Delete
}
[800] Fix | Delete
}
[801] Fix | Delete
[802] Fix | Delete
if (!is_callable('\\Sodium\\randombytes_uniform')) {
[803] Fix | Delete
/**
[804] Fix | Delete
* @see ParagonIE_Sodium_Compat::randombytes_uniform()
[805] Fix | Delete
* @param int $upperLimit
[806] Fix | Delete
* @return int
[807] Fix | Delete
* @throws \SodiumException
[808] Fix | Delete
* @throws \Error
[809] Fix | Delete
*/
[810] Fix | Delete
function randombytes_uniform($upperLimit)
[811] Fix | Delete
{
[812] Fix | Delete
return ParagonIE_Sodium_Compat::randombytes_uniform($upperLimit);
[813] Fix | Delete
}
[814] Fix | Delete
}
[815] Fix | Delete
[816] Fix | Delete
if (!is_callable('\\Sodium\\randombytes_random16')) {
[817] Fix | Delete
/**
[818] Fix | Delete
* @see ParagonIE_Sodium_Compat::randombytes_random16()
[819] Fix | Delete
* @return int
[820] Fix | Delete
*/
[821] Fix | Delete
function randombytes_random16()
[822] Fix | Delete
{
[823] Fix | Delete
return ParagonIE_Sodium_Compat::randombytes_random16();
[824] Fix | Delete
}
[825] Fix | Delete
}
[826] Fix | Delete
[827] Fix | Delete
if (!defined('\\Sodium\\CRYPTO_AUTH_BYTES')) {
[828] Fix | Delete
require_once dirname(__FILE__) . '/constants.php';
[829] Fix | Delete
}
[830] Fix | Delete
[831] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function