ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push

Advertisement

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push( string $key )

Parameters Parameters

$key

(Required)

Return Return

(array<int,) string> Returns a state and a header.

Source Source

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

    public static function crypto_secretstream_xchacha20poly1305_init_push($key)
    {
        if (PHP_INT_SIZE === 4) {
            return ParagonIE_Sodium_Crypto32::secretstream_xchacha20poly1305_init_push($key);
        }
        return ParagonIE_Sodium_Crypto::secretstream_xchacha20poly1305_init_push($key);
    }

Advertisement

Advertisement

Leave a Reply