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_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_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_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_module_get_algo_key_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns the maximum supported keysize of the opened mode int mcrypt_module_get_algo_key_size ( string $algorithm [, string $lib_dir ] ) Gets the maximum supported keysize of the opened mode. Parameters: algorithm The algorithm name. lib_dir This optional parameter can contain the location where the mode

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_algorithm_mode

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Returns if the specified module is a block algorithm or not bool mcrypt_module_is_block_algorithm_mode ( string $mode [, string $lib_dir ] ) This function returns TRUE if the mode is for use with block algorithms, otherwise it returns FALSE. (e.g. FALSE for stream, and TRUE for cbc, cfb, ofb). Parameters: mode The mode to check.

mcrypt_module_is_block_algorithm

(PHP 4 >= 4.0.2, PHP 5, PHP 7) This function checks whether the specified algorithm is a block algorithm bool mcrypt_module_is_block_algorithm ( string $algorithm [, string $lib_dir ] ) This function returns TRUE if the specified algorithm is a block algorithm, or FALSE if it is a stream one. Parameters: algorithm The algorithm to check. lib_dir

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