CakeFest 2024: The Official CakePHP Conference

mcrypt_module_get_algo_block_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_module_get_algo_block_size指定したアルゴリズムのブロック長を返す

警告

この関数は PHP 7.1.0 で 非推奨となり、PHP 7.2.0 で削除 されました。この関数に頼らないことを強く推奨します。

説明

mcrypt_module_get_algo_block_size(string $algorithm, string $lib_dir = ?): int

指定したアルゴリズムのブロック長を取得します。

パラメータ

algorithm

アルゴリズム名。

lib_dir

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

戻り値

指定したアルゴリズムでサポートされるブロック長をバイト単位で返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top