pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($iv, $key) | |
![]() | |
__construct ($iv, $key) | |
decrypt ($seqno, $data) | |
encrypt ($seqno, $data) | |
Static Public Member Functions | |
static | getAlgorithm () |
static | getKeySize () |
static | getName () |
Return the name of the algorithm. | |
![]() | |
static | getAlgorithm () |
static | getBlockSize () |
static | getIVSize () |
static | getMode () |
static | getName () |
Return the name of the algorithm. | |
static | isAvailable () |
Additional Inherited Members | |
![]() | |
$mcrypt | |
mcrypt handle for the cipher. | |
Arcfour cipher in stream mode with a 256-bit key and 1536 discarded bytes (defined in RFC 4345).
Definition at line 18 of file Arcfour256.php.
fpoirotte\Pssht\Encryption\Stream\Arcfour256::__construct | ( | $iv, | |
$key | |||
) |
Construct an encryption/decryption algorithm.
string | $iv | Initialization vector for the algorithm. |
string | $key | Encryption/decrytion key. |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 20 of file Arcfour256.php.
References fpoirotte\Pssht\Encryption\Base\encrypt().
|
static |
Get the name of the algorithm to use.
string | Name of the mcrypt constant representing the algorithm to use for encryption/decryption. |
Implements fpoirotte\Pssht\Encryption\BaseInterface.
Definition at line 27 of file Arcfour256.php.
|
static |
Get the algorithm's key size.
int | Key size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 37 of file Arcfour256.php.