mcrypt_get_iv_size(PHP 4 >= 4.0.2, PHP 5) mcrypt_get_iv_size -- Returns the size of the IV belonging to a specific cipher/mode combinationDescriptionint mcrypt_get_iv_size ( string cipher, string mode )mcrypt_get_iv_size() returns the size of the Initialisation Vector (IV) in bytes. On error the function returns FALSE. If the IV is ignored in the specified cipher/mode combination zero is returned.
It is more useful to use the mcrypt_enc_get_iv_size() function as this uses the resource returned by mcrypt_module_open().
See also mcrypt_get_block_size(), mcrypt_enc_get_iv_size() and mcrypt_create_iv(). | |||