Most Referenced Functions
  » google_pagerank()
  » preg_replace()
  » site_pageranks()
  » imagecreatefrompng()
  » htmlentities()
  » imagepng()
  » imagestring()
  » imagedestroy()
  » preg_match()
  » imagecolorallocate()
  » header()
  » fopen()
  » getimagesize()
  » session_start()
  » strstr()
  » preg_match_all()
  » strpos()
  » ob_start()
  » ob_flush()
  » flush()
  » str_replace()
  » array2vars()
  » nl2br()
  » htmlspecialchars()
  » setcookie()
  » urlencode()
  » preg_split()
  » ereg()
  » ereg_replace()
  » var_dump()

Our Sponsors
 » Powerpointing
 » Rock Music Community - meet fans
 » Business Strategy

Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m.

Local search Connecticut furniture stores can be found at FurnitureCatch: Furniture Stores Norwalk, Furniture Stores Stamford, Furniture Stores Greenwich, Furniture Stores New Canaan, Furniture Stores Darien
PHP Functions

Function: mcrypt_get_key_size

(PHP 3 >= 3.0.8, PHP 4, PHP 5)

mcrypt_get_key_size -- Get the key size of the specified cipher

Description

int mcrypt_get_key_size ( int cipher ) int mcrypt_get_key_size ( string cipher, string module )

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

mcrypt_get_key_size() is used to get the size of a key of the specified cipher (in combination with an encryption mode).

This example shows how to use this function when linked against libmcrypt 2.4.x and 2.5.x. It is more useful to use the mcrypt_enc_get_key_size() function as this uses the resource returned by mcrypt_module_open() .

Example 1. mcrypt_get_block_size() example

<?php
    echo mcrypt_get_key_size('tripledes', 'ecb');
?>

Prints:
24

Related Function(s)

  • mcrypt_enc_get_key_size()
  • mcrypt_module_open()
  • mcrypt_get_block_size()
  • mcrypt_encrypt()
  • Icemelon -- PHP, CSS, Javascript Tutorials, & More!
      © 2005-2010 Icemelon.com   Email: dave[AT]icemelon[D0T]c0m