WordPress at a glance
function is not described

ParagonIE_Sodium_Core_XChaCha20::streamXorIc() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core_XChaCha20{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_XChaCha20::streamXorIc( $message, $nonce, $key, $ic );
$message(string) (required)
-
$nonce(string)
-
$key(string)
-
$ic(string)
-

Code of ParagonIE_Sodium_Core_XChaCha20::streamXorIc() WP 5.7

<?php
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
    );
}