ParagonIE_Sodium_Core32_XChaCha20::ietfStreamXorIc() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core32_XChaCha20::ietfStreamXorIc( $message, $nonce, $key, $ic );

Parameters

$message
( string ) required
$nonce
( string ) optional
$key
( string ) optional
$ic
( string ) optional

Returns

string

Source

File name: wordpress/wp-includes/sodium_compat/src/Core32/XChaCha20.php


Lines:

1 to 12 of 12
    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
        );
    }
 

 View on GitHub View on Trac