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-key-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-key-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-key-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-key-size.html on line 46



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

mcrypt_get_key_size

(PHP 3>= 3.0.8, PHP 4)

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

Описание

int mcrypt_get_key_size (int cipher)

int mcrypt_get_key_size (string cipher, string module)

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

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

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

Печатает:
24

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


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


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-key-size.html on line 147

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-key-size.html on line 147

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-key-size.html on line 273

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-key-size.html on line 273