[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

Horde_Cipher_des:: (8 méthodes):
  setKey()
  getBlockSize()
  encryptBlock()
  decryptBlock()
  _initialPerm()
  _finalPerm()
  _f()
  _keySchedule()


Classe: Horde_Cipher_des  - X-Ref

The Cipher_des:: class implements the Cipher interface encryption data
using the Data Encryption Standard (DES) algorithm as define in FIPS46-3.

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

Copyright 2003-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.

_initialPerm($input)   X-Ref
Put an input string through an initial permutation

param: string $input  Input string.
return: string  Permutated string.

_finalPerm($input)   X-Ref
Put an input string through a final permutation.

param: string $input  Input string.
return: string  Permutated string.

_f($input, $round)   X-Ref
f() The permutation function.

param: string $input  Input string.
param: integer $round  The round.
return: string  The output string.

_keySchedule($key)   X-Ref
Create the complete key shedule.

param: string $key  The key to use.
return: array Key schedule.



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