ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull

Advertisement

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull( string $state, string $msg, string $aad = '' )

Parameters Parameters

$state

(string) (Required)

$msg

(string) (Required)

$aad

(string) (Optional)

Default value: ''

Return Return

(bool|array{0:) string, 1: int}

Source Source

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

    public static function crypto_secretstream_xchacha20poly1305_pull(&$state, $msg, $aad = '')
    {
        if (PHP_INT_SIZE === 4) {
            return ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_pull(
                $state,
                $msg,
                $aad
            );
        }
        return ParagonIE_Sodium_Crypto::secretstream_xchacha20poly1305_pull(
            $state,
            $msg,
            $aad
        );
    }

Advertisement

Advertisement

Leave a Reply

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