authenticated?()
Indicated whether this Cipher instance uses an Authenticated Encryption mode.
static VALUE ossl_cipher_is_authenticated(VALUE self) { EVP_CIPHER_CTX *ctx; int nid; GetCipher(self, ctx); nid = EVP_CIPHER_CTX_nid(ctx); if (ossl_is_gcm(nid)) { return Qtrue; } else { return Qfalse; } }