crypto_aead_aes256gcm_decrypt

Advertisement

Syntax Syntax

crypto_aead_aes256gcm_decrypt( string $message, string $assocData, string $nonce, string $key )

Parameters Parameters

$message

(Required)

$assocData

(Required)

$nonce

(Required)

$key

(Required)

Return Return

(string|bool)

Source Source

File: wp-includes/sodium_compat/lib/sodium_compat.php

    function crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)
    {
        try {
            return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key);
        } catch (\TypeError $ex) {
            return false;
        } catch (\SodiumException $ex) {
            return false;
        }
    }

Advertisement

See also See also

Advertisement

Leave a Reply