ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push

Advertisement

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push( string $state, string $msg, string $aad = '', int $tag )

Parameters Parameters

$state

(string) (Required)

$msg

(string) (Required)

$aad

(string) (Optional)

Default value: ''

$tag

(int) (Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Compat.php

    public static function crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0)
    {
        if (PHP_INT_SIZE === 4) {
            return ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_push(
                $state,
                $msg,
                $aad,
                $tag
            );
        }
        return ParagonIE_Sodium_Crypto::secretstream_xchacha20poly1305_push(
            $state,
            $msg,
            $aad,
            $tag
        );
    }

Advertisement

Advertisement

Leave a Reply

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