[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Cipher/ -> blowfish.php (sommaire)

(pas de description)

Poids: 495 lignes (24 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_Cipher_blowfish:: (6 méthodes):
  setKey()
  getBlockSize()
  encryptBlock()
  _encryptBlock()
  decryptBlock()
  _formatKey()


Classe: Horde_Cipher_blowfish  - X-Ref

The Cipher_blowfish:: class implements the Cipher interface encryption data
using the Blowfish algorithm.

$Horde: framework/Cipher/Cipher/blowfish.php,v 1.14.12.9 2006/01/01 21:28:10 jan Exp $

Copyright 2002-2006 Mike Cochrane <mike@graftonhall.co.nz>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

setKey($key)   X-Ref
Set the key to be used for en/decryption.

param: string $key  The key to use.

getBlockSize()   X-Ref
Return the size of the blocks that this cipher needs.

return: integer  The number of characters per block.

encryptBlock($block, $key = null)   X-Ref
Encrypt a block of data.

param: string $block      The data to encrypt.
param: string $key        The key to use.
return: string  The encrypted output.

_encryptBlock($L, $R)   X-Ref
Encrypt left and right halves of a block of data.

param: integer $L  Left half of the data.
param: integer $R  Right half of the data.
return: array  A hash, with keys 'L' and 'R', and the encrypted data as

decryptBlock($block, $key = null)   X-Ref
Decrypt a block of data.

param: string $block  The data to decrypt.
param: string $key    The key to use.
return: string  The decrypted output.

_formatKey($key)   X-Ref
Converts a text key into an array.

param: string $key  Key in text format.
return: array  The key in array format.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7