??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/tlma.co.uk/wp-includes/sodium_compat/src/Core32/XChaCha20.php
⬅ Kembali
<?php
if (class_exists('ParagonIE_Sodium_Core32_XChaCha20', false)) {
return;
}
/**
* Class ParagonIE_Sodium_Core32_XChaCha20
*/
class ParagonIE_Sodium_Core32_XChaCha20 extends ParagonIE_Sodium_Core32_HChaCha20
{
/**
* @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 stream($len = 64, $nonce = '', $key = '')
{
if (self::strlen($nonce) !== 24) {
throw new SodiumException('Nonce must be 24 bytes long');
}
return self::encryptBytes(
new ParagonIE_Sodium_Core32_ChaCha20_Ctx(
self::hChaCha20(
self::substr($nonce, 0, 16),
$key
),
self::substr($nonce, 16, 8)
),
str_repeat("\x00", $len)
);
}
/**
* @internal You should not use this directly from another application
*
* @param string $message
* @param string $nonce
* @param string $key
* @param string $ic
* @return string
* @throws SodiumException
* @throws TypeError
*/
public static function streamXorIc($message, $nonce = '', $key = '', $ic = '')
{
if (self::strlen($nonce) !== 24) {
throw new SodiumException('Nonce must be 24 bytes long');
}
return self::encryptBytes(
new ParagonIE_Sodium_Core32_ChaCha20_Ctx(
self::hChaCha20(self::substr($nonce, 0, 16), $key),
self::substr($nonce, 16, 8),
$ic
),
$message
);
}
/**
* @internal You should not use this directly from another application
*
* @param string $message
* @param string $nonce
* @param string $key
* @param string $ic
* @return string
* @throws SodiumException
* @throws TypeError
*/
public static function ietfStreamXorIc($message, $nonce = '', $key = '', $ic = '')
{
return self::encryptBytes(
new ParagonIE_Sodium_Core32_ChaCha20_IetfCtx(
self::hChaCha20(self::substr($nonce, 0, 16), $key),
"\x00\x00\x00\x00" . self::substr($nonce, 16, 8),
$ic
),
$message
);
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 ChaCha20
dir
—
2026-06-05 13:16
📁 Curve25519
dir
—
2026-06-05 13:16
📁 Poly1305
dir
—
2026-06-05 13:16
📁 SecretStream
dir
—
2026-06-05 13:16
🐘 BLAKE2b.php
php
21.8 KB
2021-05-25 17:55
🐘 ChaCha20.php
php
14.2 KB
2019-03-21 08:56
🐘 Curve25519.php
php
129.9 KB
2022-03-24 19:20
🐘 Ed25519.php
php
15.4 KB
2022-09-14 04:13
🐘 HChaCha20.php
php
5.2 KB
2019-03-21 08:56
🐘 HSalsa20.php
php
6.8 KB
2019-03-21 08:56
🐘 Int32.php
php
24 KB
2022-03-24 19:20
🐘 Int64.php
php
30.4 KB
2022-03-24 19:20
🐘 Poly1305.php
php
1.5 KB
2019-03-21 08:56
🐘 Salsa20.php
php
11.2 KB
2019-03-21 08:56
🐘 SipHash.php
php
6.5 KB
2019-03-21 08:56
🐘 Util.php
php
209 B
2019-03-21 08:56
🐘 X25519.php
php
10.8 KB
2019-12-09 21:42
🐘 XChaCha20.php
php
2.4 KB
2022-03-24 19:20
🐘 XSalsa20.php
php
1.3 KB
2019-03-21 08:56