mcrypt_module_get_supported_key_sizes

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns an array with the supported keysizes of the opened algorithm array mcrypt_module_get_supported_key_sizes ( string $algorithm [, string $lib_dir ] ) Returns an array with the key sizes supported by the specified algorithm. If it returns an empty array then all key sizes between 1 and mcrypt_module_get_algo_key_size() are supported by the algorithm. Parameters:

mcrypt_module_is_block_mode

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns if the specified mode outputs blocks or not bool mcrypt_module_is_block_mode ( string $mode [, string $lib_dir ] ) This function returns TRUE if the mode outputs blocks of bytes or FALSE if it outputs just bytes. (e.g. TRUE for cbc and ecb, and FALSE for cfb and stream). Parameters: mode One of the MCRYPT_MODE_modename constants, o

mcrypt_module_get_algo_block_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the blocksize of the specified algorithm int mcrypt_module_get_algo_block_size ( string $algorithm [, string $lib_dir ] ) Gets the blocksize of the specified algorithm. Parameters: algorithm The algorithm name. lib_dir This optional parameter can contain the location where the mode module is on

mcrypt_list_modes

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Gets an array of all supported modes array mcrypt_list_modes ([ string $lib_dir = ini_get("mcrypt.modes_dir") ] ) Gets the list of all supported modes in the lib_dir parameter. Parameters: lib_dir Specifies the directory where all modes are located. If not specified, the value of the mcrypt.modes_dir php.ini directive is used.

mcrypt_get_key_size

(PHP 4, PHP 5, PHP 7) Gets the key size of the specified cipher int mcrypt_get_key_size ( int $cipher ) int mcrypt_get_key_size ( string $cipher , string $mode ) The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or 2.5.x. mcrypt_get_key_size() is used to get the size of a key of the specified cipher (in combination with an encryption mode). It is more useful to us

mcrypt_list_algorithms

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Gets an array of all supported ciphers array mcrypt_list_algorithms ([ string $lib_dir = ini_get("mcrypt.algorithms_dir") ] ) Gets the list of all supported algorithms in the lib_dir parameter. Parameters: lib_dir Specifies the directory where all algorithms are located. If not specified, the value of the mcrypt.algorithms_dir php.ini di

mcrypt_module_close

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Closes the mcrypt module bool mcrypt_module_close ( resource $td ) Closes the specified encryption handle. Parameters: td The encryption descriptor. Returns: Returns TRUE on success or FALSE on failure. See also: mcrypt_module_

mcrypt_get_iv_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the size of the IV belonging to a specific cipher/mode combination int mcrypt_get_iv_size ( string $cipher, string $mode ) Gets the size of the IV belonging to a specific cipher/mode combination. It is more useful to use the mcrypt_enc_get_iv_size() function as this uses the resource returned by mcrypt_module_open(). Parameters: cipher

mcrypt_generic_init

(PHP 4 >= 4.0.2, PHP 5, PHP 7) This function initializes all buffers needed for encryption int mcrypt_generic_init ( resource $td, string $key, string $iv ) You need to call this function before every call to mcrypt_generic() or mdecrypt_generic(). Parameters: td The encryption descriptor. key The maximum length of the key should be

mcrypt_get_block_size

(PHP 4, PHP 5, PHP 7) Gets the block size of the specified cipher int mcrypt_get_block_size ( int $cipher ) int mcrypt_get_block_size ( string $cipher , string $mode ) The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or 2.5.x. mcrypt_get_block_size() is used to get the size of a block of the specified cipher (in combination with an encryption mode). It is more us