Documentation TYPO3 par Ameos

Horde_Cipher_blowfish Class Reference

List of all members.

Public Member Functions

 Cipher_blowfish ($params=null)
 setKey ($key)
 getBlockSize ()
 encryptBlock ($block, $key=null)
 _encryptBlock ($L, $R)
 decryptBlock ($block, $key=null)
 _formatKey ($key)

Public Attributes

 $p
 $s1
 $s2
 $s3
 $s4
 $_rounds = 16

Detailed Description

Definition at line 22 of file blowfish.php.


Member Function Documentation

Horde_Cipher_blowfish::_encryptBlock L,
R
 

Encrypt a block on data.

Parameters:
String $L The data to encrypt.
String $R The data to encrypt.
Returns:
String The encrypted output.

Definition at line 398 of file blowfish.php.

Horde_Cipher_blowfish::_formatKey key  ) 
 

Converts a text key into an array.

Returns:
array The key.

Definition at line 465 of file blowfish.php.

Referenced by setKey().

Horde_Cipher_blowfish::decryptBlock block,
key = null
 

Decrypt a block on data.

Parameters:
String $block The data to decrypt
optional String $key The key to use
Returns:
String the decrypted output

Definition at line 430 of file blowfish.php.

Horde_Cipher_blowfish::encryptBlock block,
key = null
 

Encrypt a block on data.

Parameters:
String $block The data to encrypt
optional String $key The key to use
Returns:
String the encrypted output

Definition at line 379 of file blowfish.php.

Horde_Cipher_blowfish::getBlockSize  ) 
 

Return the size of the blocks that this cipher needs

Returns:
Integer The number of characters per block

Definition at line 366 of file blowfish.php.

Horde_Cipher_blowfish::setKey key  ) 
 

Set the key to be used for en/decryption

Parameters:
String $key The key to use

Definition at line 307 of file blowfish.php.

References _formatKey().


Member Data Documentation

Horde_Cipher_blowfish::$p
 

Initial value:

 array(
            0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,
            0xA4093822, 0x299F31D0, 0x082EFA98, 0xEC4E6C89,
            0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6C,
            0xC0AC29B7, 0xC97C50DD, 0x3F84D5B5, 0xB5470917,
            0x9216D5D9, 0x8979FB1B)

Definition at line 25 of file blowfish.php.


The documentation for this class was generated from the following file:


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6