WordPress at a glance
function is not described

Sodium

crypto_aead_aes256gcm_decrypt() WP 1.0

No Hooks.

Return

String|true|false. Null. Nothing.

Usage

crypto_aead_aes256gcm_decrypt( $message, $assocData, $nonce, $key );
$message(string) (required)
-
$assocData(string) (required)
-
$nonce(string) (required)
-
$key(string) (required)
-

Notes

  • See: ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt()

Code of crypto_aead_aes256gcm_decrypt() WP 5.7

<?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;
    }
}