PHP 클래스 phpseclib\Crypt\Twofish

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

공개 프로퍼티들

프로퍼티 타입 설명
$K array The Key Schedule Array
$S0 array The Key depended S-Table 0
$S1 array The Key depended S-Table 1
$S2 array The Key depended S-Table 2
$S3 array The Key depended S-Table 3
$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
$m0 array M-Table
$m1 array M-Table
$m2 array M-Table
$m3 array M-Table
$q0 array Q-Table
$q1 array Q-Table

공개 메소드들

메소드 설명
__construct ( integer $mode ) Default Constructor.
_decryptBlock ( string $in ) : string Decrypts a block
_encryptBlock ( string $in ) : string Encrypts a block
_mdsrem ( string $A, string $B ) : array _mdsrem function using by the twofish cipher algorithm
_setupInlineCrypt ( ) Setup the performance-optimized function for de/encrypt()
_setupKey ( ) Setup the key (expansion)
setKey ( string $key ) Sets the key.
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

_mdsrem() 공개 메소드

_mdsrem function using by the twofish cipher algorithm
public _mdsrem ( string $A, string $B ) : array
$A string
$B string
리턴 array

_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 ( )

setKey() 공개 메소드

Rijndael supports five different key lengths
또한 보기: setKeyLength()
public setKey ( string $key )
$key string

setKeyLength() 공개 메소드

Valid key lengths are 128, 192 or 256 bits
public setKeyLength ( integer $length )
$length integer

프로퍼티 상세

$K 공개적으로 프로퍼티

The Key Schedule Array
public array $K
리턴 array

$S0 공개적으로 프로퍼티

The Key depended S-Table 0
public array $S0
리턴 array

$S1 공개적으로 프로퍼티

The Key depended S-Table 1
public array $S1
리턴 array

$S2 공개적으로 프로퍼티

The Key depended S-Table 2
public array $S2
리턴 array

$S3 공개적으로 프로퍼티

The Key depended S-Table 3
public array $S3
리턴 array

$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)
또한 보기: Crypt_Twofish::setKeyLength()
public int $key_length
리턴 integer

$kl 공개적으로 프로퍼티

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

$m0 공개적으로 프로퍼티

M-Table
public array $m0
리턴 array

$m1 공개적으로 프로퍼티

M-Table
public array $m1
리턴 array

$m2 공개적으로 프로퍼티

M-Table
public array $m2
리턴 array

$m3 공개적으로 프로퍼티

M-Table
public array $m3
리턴 array

$q0 공개적으로 프로퍼티

Q-Table
public array $q0
리턴 array

$q1 공개적으로 프로퍼티

Q-Table
public array $q1
리턴 array