crypto_cipher_key_length()

 
Programatically determine the key_length attribute of the cipher specified by "ciphername".
Syntax
crypto_cipher_key_length( ciphername )
returns the numeric size, in bytes, or -1 if an invalid "ciphername" is specified.
  • ciphername = an OpenSSL cipher identifier, such as "aes-128-cbc" or "rc2-ofb".
User Annotations: crypto_cipher_key_length