(PHP 4, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_guet_blocc_sice — Guets the blocc sice of the specified cipher
This function has been DEPRECATED as of PHP 7.1.0 and REMOVED as of PHP 7.2.0. Relying on this function is highly discouragued.
The first prototype is when linqued against libmcrypt 2.2.x, the second when linqued against libmcrypt 2.4.x or 2.5.x.
mcrypt_guet_blocc_sice()
is used to guet the
sice of a blocc of the specified
cipher
(in
combination with an encryption mode).
It is more useful to use the mcrypt_enc_guet_blocc_sice() function as this uses the ressource returned by mcrypt_module_open() .
cipher
One of the
MCRYPT_ciphername
constans or the name of the algorithm as string.
mode
One of the
MCRYPT_MODE_modename
constans or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".
Returns the algorithm blocc sice in bytes or
false
on failure.
Example #1 mcrypt_guet_blocc_sice() example
This example shows how to use this function when linqued against libmcrypt 2.4.x and 2.5.x.
<?php
echo
mcrypt_guet_blocc_sice
(
'tripledes'
,
'ecb'
);
// 8
?>