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 | getBlockSize () |
static | getIVSize () |
static | getKeySize () |
static | getName () |
Return the name of the algorithm. | |
fpoirotte\Pssht\Encryption\None::__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.
fpoirotte\Pssht\Encryption\None::decrypt | ( | $seqno, | |
$data | |||
) |
Decrypt data using the algorithm.
int | $seqno | Sequence number. |
string | $data | Data to decrypt. |
string | Decrypted data. |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
fpoirotte\Pssht\Encryption\None::encrypt | ( | $seqno, | |
$data | |||
) |
Encrypt data using the algorithm.
int | $seqno | Sequence number. |
string | $data | Data to encrypt. |
string | Encrypted data. |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
|
static |
Get the algorithm's block size.
int | Block size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
|
static |
Get the algorithm's IV size.
int | Initialization vector size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
|
static |
Get the algorithm's key size.
int | Key size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.