pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($iv, $key) | |
decrypt ($seqno, $data) | |
encrypt ($seqno, $data) | |
Static Public Member Functions | |
static | getAlgorithm () |
static | getBlockSize () |
static | getIVSize () |
static | getMode () |
static | getName () |
Return the name of the algorithm. | |
static | isAvailable () |
![]() | |
static | getKeySize () |
Protected Attributes | |
$mcrypt | |
mcrypt handle for the cipher. | |
fpoirotte\Pssht\Encryption\Base::__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.
|
final |
Decrypt data using the algorithm.
int | $seqno | Sequence number. |
string | $data | Data to decrypt. |
string | Decrypted data. |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
|
final |
Encrypt data using the algorithm.
int | $seqno | Sequence number. |
string | $data | Data to encrypt. |
string | Encrypted data. |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 83 of file Base.php.
Referenced by fpoirotte\Pssht\Encryption\Stream\Arcfour256\__construct().
|
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.
|
staticfinal |
Get the algorithm's block size.
int | Block size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
|
staticfinal |
Get the algorithm's IV size.
int | Initialization vector size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
|
static |
Get the encryption/decryption mode.
string | Name of the cipher encryption/decryption mode to use. |
Implements fpoirotte\Pssht\Encryption\BaseInterface.
|
staticfinal |
Determine whether the algorithm is available.
bool | true if the algorithm is available, false otherwise. |
Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.