instance method
OpenSSL::Cipher#authenticated?
() -> bool
cipher.authenticated? → true | false
ext/openssl/ossl_cipher.c
View on GitHub ↗
static VALUE
ossl_cipher_is_authenticated(VALUE self)
{
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
return (EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER) ? Qtrue : Qfalse;
}
Indicates whether this Cipher instance uses an AEAD mode.