Skip to content

crypto_cipher_mode()#

Syntax
crypto_cipher_mode( ciphername )

Returns#

Returns the mode of the specified cipher as a string (e.g., "cbc", "ecb", "stream"), or an empty string if an invalid ciphername is specified.

Parameters#

Parameter Description
ciphername an OpenSSL cipher identifier, such as "aes-128-cbc" or "rc2-ofb".