ParagonIE_Sodium_Core32_ChaCha20::ietfStream

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_ChaCha20::ietfStream( int $len, string $nonce = '', string $key = '' )

Parameters Parameters

$len

(Required)

$nonce

(Optional)

Default value: ''

$key

(Optional)

Default value: ''

Return Return

(string)

Source Source

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

    public static function ietfStream($len, $nonce = '', $key = '')
    {
        return self::encryptBytes(
            new ParagonIE_Sodium_Core32_ChaCha20_IetfCtx($key, $nonce),
            str_repeat("\x00", $len)
        );
    }

Advertisement

Advertisement

Leave a Reply