Mcrypt 関数
PHP Manual

mcrypt_module_is_block_algorithm

(PHP 4 >= 4.0.2, PHP 5, PHP 7)

mcrypt_module_is_block_algorithm指定したアルゴリズムがブロックアルゴリズムであるかを調べる

警告

This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.

説明

bool mcrypt_module_is_block_algorithm ( string $algorithm [, string $lib_dir ] )

この関数は、指定したアルゴリズムがブロックアルゴリズムの場合に TRUE、ストリームアルゴリズムの場合に FALSE を返します。

パラメータ

algorithm

調べたいアルゴリズム。

lib_dir

オプションのパラメータ lib_dir により、 システム上での algorithm モジュールの位置を指定することが可能です。

返り値

この関数は、指定したアルゴリズムがブロックアルゴリズムの場合に TRUE、ストリームアルゴリズムの場合に FALSE を返します。


Mcrypt 関数
PHP Manual