PHP 클래스 phpseclib\Crypt\Blowfish

저자: Jim Wigginton ([email protected])
저자: Hans-Juergen Petrich ([email protected])
상속: extends phpseclib\Crypt\Base
파일 보기 프로젝트 열기: phpseclib/phpseclib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$bctx array Holds the expanded key [p] and the key-depended s-boxes [sb]
$block_size integer Block Length of the cipher
$cfb_init_len integer Optimizing value while CFB-encrypting
$cipher_name_mcrypt string The mcrypt specific name of the cipher
$key_length integer The Key Length (in bytes)
$kl array Holds the last used key
$parray array P-Array consists of 18 32-bit subkeys
$sbox0 array S-Box 0
$sbox1 array S-Box 1
$sbox2 array S-Box 2
$sbox3 array S-Box 3

공개 메소드들

메소드 설명
__construct ( integer $mode ) Default Constructor.
_decryptBlock ( string $in ) : string Decrypts a block
_encryptBlock ( string $in ) : string Encrypts a block
_setupInlineCrypt ( ) Setup the performance-optimized function for de/encrypt()
_setupKey ( ) Setup the key (expansion)
isValidEngine ( integer $engine ) : boolean Test for engine validity
setKeyLength ( integer $length ) Sets the key length.

메소드 상세

__construct() 공개 메소드

Default Constructor.
public __construct ( integer $mode )
$mode integer

_decryptBlock() 공개 메소드

Decrypts a block
public _decryptBlock ( string $in ) : string
$in string
리턴 string

_encryptBlock() 공개 메소드

Encrypts a block
public _encryptBlock ( string $in ) : string
$in string
리턴 string

_setupInlineCrypt() 공개 메소드

Setup the performance-optimized function for de/encrypt()
또한 보기: phpseclib\Crypt\Common\SymmetricKey::_setupInlineCrypt()
public _setupInlineCrypt ( )

_setupKey() 공개 메소드

Setup the key (expansion)
또한 보기: phpseclib\Crypt\Common\SymmetricKey::_setupKey()
public _setupKey ( )

isValidEngine() 공개 메소드

This is mainly just a wrapper to set things up for \phpseclib\Crypt\Common\SymmetricKey::isValidEngine()
또한 보기: phpseclib\Crypt\Common\SymmetricKey::isValidEngine()
public isValidEngine ( integer $engine ) : boolean
$engine integer
리턴 boolean

setKeyLength() 공개 메소드

Key lengths can be between 32 and 448 bits.
public setKeyLength ( integer $length )
$length integer

프로퍼티 상세

$bctx 공개적으로 프로퍼티

Holds the expanded key [p] and the key-depended s-boxes [sb]
public array $bctx
리턴 array

$block_size 공개적으로 프로퍼티

Block Length of the cipher
또한 보기: phpseclib\Crypt\Common\SymmetricKey::block_size
public int $block_size
리턴 integer

$cfb_init_len 공개적으로 프로퍼티

Optimizing value while CFB-encrypting
또한 보기: phpseclib\Crypt\Common\SymmetricKey::cfb_init_len
public int $cfb_init_len
리턴 integer

$cipher_name_mcrypt 공개적으로 프로퍼티

The mcrypt specific name of the cipher
또한 보기: phpseclib\Crypt\Common\SymmetricKey::cipher_name_mcrypt
public string $cipher_name_mcrypt
리턴 string

$key_length 공개적으로 프로퍼티

The Key Length (in bytes)
또한 보기: phpseclib\Crypt\Common\SymmetricKey::setKeyLength()
public int $key_length
리턴 integer

$kl 공개적으로 프로퍼티

Holds the last used key
public array $kl
리턴 array

$parray 공개적으로 프로퍼티

P-Array consists of 18 32-bit subkeys
public array $parray
리턴 array

$sbox0 공개적으로 프로퍼티

S-Box 0
public array $sbox0
리턴 array

$sbox1 공개적으로 프로퍼티

S-Box 1
public array $sbox1
리턴 array

$sbox2 공개적으로 프로퍼티

S-Box 2
public array $sbox2
리턴 array

$sbox3 공개적으로 프로퍼티

S-Box 3
public array $sbox3
리턴 array