Warning: include(../lntop.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 19

Warning: include() [function.include]: Failed opening '../lntop.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 19

Warning: include(../levoe_menu.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 46

Warning: include() [function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 46



Учебник РНР
НазадВперёд

mcrypt_get_block_size

(PHP 3>= 3.0.8, PHP 4)

mcrypt_get_block_size - получает размер блока специфицированного шифра.

Описание

int mcrypt_get_block_size (int cipher)

int mcrypt_get_block_size (string cipher, string module)

Первый прототип - когда связка относительно libmcrypt 2.2.x, второй - когда связка относительно libmcrypt 2.4.x или 2.5.x.

mcrypt_get_block_size() используется для получения размера блока специфицированного шифра cipher (в комбинации с режимом шифрования).

В примере показано, как использовать эту функцию при связывании относительно 2.4.x и 2.5.x.
Пример 1. mcrypt_get_block_size()
<?php
    echo mcrypt_get_block_size ('tripledes', 'ecb');
?>

Печатает:
8

См. также mcrypt_get_key_size() и mcrypt_encrypt().


Назад Оглавление Вперёд
mcrypt_generic Вверхmcrypt_get_cipher_name


Warning: include(../pravoe_menu.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 148

Warning: include() [function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 148

Rambler's Top100
© 2009 Тест скорости интернета |  Boont.Ru

Warning: include(../lnbottom.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 274

Warning: include() [function.include]: Failed opening '../lnbottom.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mcrypt-get-block-size.html on line 274