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. | |
static | getSize () |
Protected Attributes | |
$aead | |
Underlying implementation for Authenticated Encryption with Additional Data. | |
ChaCha20 & Poly1305 combined to achieve AEAD.
Definition at line 17 of file ChaCha20Poly1305.php.
fpoirotte\Pssht\Encryption\OpensshCom\ChaCha20Poly1305::__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 22 of file ChaCha20Poly1305.php.
fpoirotte\Pssht\Encryption\OpensshCom\ChaCha20Poly1305::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.
Definition at line 60 of file ChaCha20Poly1305.php.
fpoirotte\Pssht\Encryption\OpensshCom\ChaCha20Poly1305::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.
Definition at line 52 of file ChaCha20Poly1305.php.
|
static |
Get the algorithm's block size.
int | Block size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 42 of file ChaCha20Poly1305.php.
|
static |
Get the algorithm's IV size.
int | Initialization vector size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 37 of file ChaCha20Poly1305.php.
|
static |
Get the algorithm's key size.
int | Key size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 32 of file ChaCha20Poly1305.php.
|
static |
Get the size of an Authentication Tag generated with this algorithm.
int | AT size in bytes. |
Implements fpoirotte\Pssht\Algorithms\AEAD\AEADInterface.
Definition at line 47 of file ChaCha20Poly1305.php.