mcrypt_enc_is_block_algorithm_mode

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

mcrypt_enc_is_block_algorithm_mode检测打开的模式是否支持分组加密

Warning

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

说明

mcrypt_enc_is_block_algorithm_mode ( resource $td ) : bool

打开的模式的算法是否支持分组加密 (例如: 如果是流模式,则返回 FALSE, cbc,cfb,ofb 模式则返回 TRUE)。

参数

td

加密描述符。

返回值

如果算法支持分组模式,返回 TRUE, 反之返回 FALSE