$72 GRAYBYTE WORDPRESS FILE MANAGER $35

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/test2.proid.vn/wp-includes/sodium_compat/src/Core/

HOME
Current File : /home/bqrcodec/test2.proid.vn/wp-includes/sodium_compat/src/Core//XChaCha20.php
<?php

if (class_exists('ParagonIE_Sodium_Core_XChaCha20', false)) {
    return;
}

/**
 * Class ParagonIE_Sodium_Core_XChaCha20
 */
class ParagonIE_Sodium_Core_XChaCha20 extends ParagonIE_Sodium_Core_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, $nonce, $key)
    {
        if (self::strlen($nonce) !== 24) {
            throw new SodiumException('Nonce must be 24 bytes long');
        }
        return self::encryptBytes(
            new ParagonIE_Sodium_Core_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 int $len
     * @param string $nonce
     * @param string $key
     * @return string
     * @throws SodiumException
     * @throws TypeError
     */
    public static function ietfStream($len, $nonce, $key)
    {
        if (self::strlen($nonce) !== 24) {
            throw new SodiumException('Nonce must be 24 bytes long');
        }
        return self::encryptBytes(
            new ParagonIE_Sodium_Core_ChaCha20_IetfCtx(
                self::hChaCha20(
                    self::substr($nonce, 0, 16),
                    $key
                ),
                "\x00\x00\x00\x00" . 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_Core_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 = '')
    {
        if (self::strlen($nonce) !== 24) {
            throw new SodiumException('Nonce must be 24 bytes long');
        }
        return self::encryptBytes(
            new ParagonIE_Sodium_Core_ChaCha20_IetfCtx(
                self::hChaCha20(self::substr($nonce, 0, 16), $key),
                "\x00\x00\x00\x00" . self::substr($nonce, 16, 8),
                $ic
            ),
            $message
        );
    }
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
AEGIS
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
AES
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
Base64
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
ChaCha20
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
Curve25519
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
Poly1305
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
SecretStream
--
19 Mar 2026 2.49 PM
bqrcodec / bqrcodec
0755
AEGIS128L.php
3.582 KB
18 Jul 2024 1.48 PM
bqrcodec / bqrcodec
0644
AEGIS256.php
3.514 KB
18 Jul 2024 1.48 PM
bqrcodec / bqrcodec
0644
AES.php
15.513 KB
18 Jul 2024 1.48 PM
bqrcodec / bqrcodec
0644
BLAKE2b.php
23.625 KB
24 Mar 2022 3.20 PM
bqrcodec / bqrcodec
0644
ChaCha20.php
12.587 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
Curve25519.php
140.274 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
Ed25519.php
18.049 KB
26 Jan 2026 10.53 PM
bqrcodec / bqrcodec
0644
HChaCha20.php
4.043 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
HSalsa20.php
3.587 KB
21 Mar 2019 4.56 AM
bqrcodec / bqrcodec
0644
Poly1305.php
1.539 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
Ristretto255.php
21.371 KB
25 May 2021 1.55 PM
bqrcodec / bqrcodec
0644
Salsa20.php
8.04 KB
21 Mar 2019 4.56 AM
bqrcodec / bqrcodec
0644
SipHash.php
8.04 KB
25 May 2021 1.55 PM
bqrcodec / bqrcodec
0644
Util.php
28.227 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
X25519.php
8.216 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
XChaCha20.php
3.242 KB
6 Oct 2025 3.48 PM
bqrcodec / bqrcodec
0644
XSalsa20.php
1.339 KB
21 Mar 2019 4.56 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF