Class Horde_Cipher_BlockMode

Description

The Horde_Cipher_BlockMode:: class provides a common abstracted interface to various block mode handlers for ciphers.

$Horde: framework/Cipher/Cipher/BlockMode.php,v 1.14.12.13 2009/01/06 15:22:57 jan Exp $

Copyright 2002-2009 The Horde Project (http://www.horde.org/)

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

Located in /Cipher/Cipher/BlockMode.php (line 17)


	
			
Direct descendents
Class Description
 class Horde_Cipher_BlockMode_cbc The Horde_Cipher_BlockMode_cbc:: This class implements the Horde_Cipher_BlockMode using the Cipher Block Chaining method of encrypting blocks of data.
 class Horde_Cipher_BlockMode_cfb64 The Horde_Cipher_BlockMode_cfb64:: This class implements the Horde_Cipher_BlockMode using a 64 bit cipher feedback.
 class Horde_Cipher_BlockMode_ecb The Horde_Cipher_BlockMode_ecb:: This class implements the Horde_Cipher_BlockMode using the Electronic Code Book method of encrypting blocks of data.
 class Horde_Cipher_BlockMode_ofb64 The Horde_Cipher_BlockMode_ofb64:: This class implements the Horde_Cipher_BlockMode using a 64 bit output feedback.
Variable Summary
 string $_iv
Method Summary
 Horde_Cipher_BlockMode &factory (string $mode, [array $params = null])
 void setIV (string $iv)
Variables
string $_iv = "\0\0\0\0\0\0\0\0" (line 24)

The initialization vector.

Methods
factory (line 39)

Attempts to return a concrete Horde_Cipher_BlockMode instance based on $mode.

  • return: The newly created concrete CipherBlockMode instance, or PEAR_Error on error.
Horde_Cipher_BlockMode &factory (string $mode, [array $params = null])
  • string $mode: The type of concrete Horde_Cipher_BlockMode subclass to return.
  • array $params: A hash containing any additional parameters a subclass might need.
setIV (line 61)

Set the IV

void setIV (string $iv)
  • string $iv: The new IV.

Documentation generated on Sun, 30 Jan 2011 05:15:33 +0000 by phpDocumentor 1.4.3