WordPress at a glance
function is not described

ParagonIE_Sodium_Crypto32::aead_xchacha20poly1305_ietf_decrypt() public WP 1.0

AEAD Decryption with ChaCha20-Poly1305, IETF mode (96-bit nonce)

{} It's a method of the class: ParagonIE_Sodium_Crypto32{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Crypto32::aead_xchacha20poly1305_ietf_decrypt(;

Code of ParagonIE_Sodium_Crypto32::aead_xchacha20poly1305_ietf_decrypt() WP 5.7.1

<?php
public static function aead_xchacha20poly1305_ietf_decrypt(
    $message = '',
    $ad = '',
    $nonce = '',
    $key = ''
) {
    $subkey = ParagonIE_Sodium_Core32_HChaCha20::hChaCha20(
        ParagonIE_Sodium_Core32_Util::substr($nonce, 0, 16),
        $key
    );
    $nonceLast = "\x00\x00\x00\x00" .
        ParagonIE_Sodium_Core32_Util::substr($nonce, 16, 8);

    return self::aead_chacha20poly1305_ietf_decrypt($message, $ad, $nonceLast, $subkey);
}