[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

Horde_Cipher_rc2:: (4 méthodes):
  setKey()
  getBlockSize()
  encryptBlock()
  decryptBlock()


Classe: Horde_Cipher_rc2  - X-Ref

The Cipher_rc2:: class implements the Cipher interface encryption data
using the RC2 algorithm as described in RFC2268.

Based on the notes by Peter Gutmann <pgut01@cs.auckland.ac.nz>
http://www.mirrors.wiretapped.net/security/cryptography/
algorithms/rc2/comments/gutman-960211

$Horde: framework/Cipher/Cipher/rc2.php,v 1.9.12.7 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.

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.



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