Home > PHP > Function > Mcrypt > mcrypt_get_block_size()

mcrypt_get_block_size()

mcrypt_get_block_size - Get the block size of the specified cipher

Syntax

int mcrypt_get_block_size (int $cipher, string $cipher, string $module, int $cipher, string $cipher, string $module)

Arguments

  • cipher - One of the MCRYPT_ciphernameconstants or the name of the algorithm as string.
  • cipher - The module.
  • module
  • cipher - One of the MCRYPT_ciphernameconstants or the name of the algorithm as string.
  • cipher - The module.
  • module

Description

The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or 2.5.x.

Version

PHP 4, 5

Return value

Gets the block size, as an integer.