instance method
OpenSSL::Cipher#key_len
() -> ::Integer
cipher.key_len → integer
ext/openssl/ossl_cipher.c
View on GitHub ↗
static VALUE
ossl_cipher_key_length(VALUE self)
{
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
return INT2NUM(EVP_CIPHER_CTX_key_length(ctx));
}
Returns the key length in bytes of the Cipher.