WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available() public WP 1.0

Is AES-256-GCM even available to use?

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

No Hooks.

Return

true|false. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available();

Code of ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available() WP 5.7.1

<?php
public static function crypto_aead_aes256gcm_is_available()
{
    if (self::useNewSodiumAPI()) {
        return sodium_crypto_aead_aes256gcm_is_available();
    }
    if (self::use_fallback('crypto_aead_aes256gcm_is_available')) {
        return call_user_func('\\Sodium\\crypto_aead_aes256gcm_is_available');
    }
    if (PHP_VERSION_ID < 70100) {
        // OpenSSL doesn't support AEAD before 7.1.0
        return false;
    }
    if (!is_callable('openssl_encrypt') || !is_callable('openssl_decrypt')) {
        // OpenSSL isn't installed
        return false;
    }
    return (bool) in_array('aes-256-gcm', openssl_get_cipher_methods());
}