crypto_aead_aes256gcm_decrypt

The timeline below displays how wordpress function crypto_aead_aes256gcm_decrypt has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 2.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt()
 * @param string $message
 * @param string $assocData
 * @param string $nonce
 * @param string $key
 * @return string|bool
 */
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;
    }
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt()
 * @param string $message
 * @param string $assocData
 * @param string $nonce
 * @param string $key
 * @return string|bool
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)
{
    try {
        return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key);
    } catch (Error $ex) {
        return false;
    } catch (Exception $ex) {
        return false;
    }
}