PHP Class Horde_Crypt_Blowfish_Php_Base, horde

Author: Matthew Fonda ([email protected])
Author: Michael Slusarz ([email protected])
ファイルを表示 Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$md5 string MD5 sum of the key used.

Protected Properties

Property Type Description
$_P array P-Array contains 18 32-bit subkeys.
$_S array Array of four S-Blocks each containing 256 32-bit entries.

Public Methods

Method Description
__construct ( string $key ) Constructor.
decrypt ( $text, $iv )
encrypt ( $text, $iv )

Protected Methods

Method Description
_binxor ( integer | float $l, integer | float $r ) : float Workaround for XOR on certain systems.
_decipher ( &$Xl, &$Xr ) Deciphers a single 64-bit block.
_encipher ( &$Xl, &$Xr ) Enciphers a single 64-bit block.

Method Details

__construct() public method

Constructor.
public __construct ( string $key )
$key string Encrpytion key.

_binxor() protected method

Workaround for XOR on certain systems.
protected _binxor ( integer | float $l, integer | float $r ) : float
$l integer | float
$r integer | float
return float

_decipher() protected method

Deciphers a single 64-bit block.
protected _decipher ( &$Xl, &$Xr )

_encipher() protected method

Enciphers a single 64-bit block.
protected _encipher ( &$Xl, &$Xr )

decrypt() abstract public method

abstract public decrypt ( $text, $iv )

encrypt() abstract public method

abstract public encrypt ( $text, $iv )

Property Details

$_P protected_oe property

P-Array contains 18 32-bit subkeys.
protected array $_P
return array

$_S protected_oe property

Array of four S-Blocks each containing 256 32-bit entries.
protected array $_S
return array

$md5 public_oe property

MD5 sum of the key used.
public string $md5
return string