ParagonIE_Sodium_Core32_ChaCha20::streamXorIc

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_ChaCha20::streamXorIc( string $message, string $nonce = '', string $key = '', string $ic = '' )

Parameters Parameters

$message

(string) (Required)

$nonce

(string) (Optional)

Default value: ''

$key

(string) (Optional)

Default value: ''

$ic

(string) (Optional)

Default value: ''

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Core32/ChaCha20.php

    public static function streamXorIc($message, $nonce = '', $key = '', $ic = '')
    {
        return self::encryptBytes(
            new ParagonIE_Sodium_Core32_ChaCha20_Ctx($key, $nonce, $ic),
            $message
        );
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.