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 () |
static | isAvailable () |
Protected Attributes | |
$gcm | |
Underlying GCM implementation. | |
$iv | |
Initialization vector. | |
AES-GCM with a 128-bit key.
Definition at line 17 of file AES128GCM.php.
fpoirotte\Pssht\Encryption\OpensshCom\AES128GCM::__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 27 of file AES128GCM.php.
References fpoirotte\Pssht\Encryption\OpensshCom\AES128GCM\$iv.
fpoirotte\Pssht\Encryption\OpensshCom\AES128GCM::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 72 of file AES128GCM.php.
References fpoirotte\Pssht\Encryption\OpensshCom\AES128GCM\$iv.
fpoirotte\Pssht\Encryption\OpensshCom\AES128GCM::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 62 of file AES128GCM.php.
References fpoirotte\Pssht\Encryption\OpensshCom\AES128GCM\$iv.
|
static |
Get the algorithm's block size.
int | Block size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 52 of file AES128GCM.php.
|
static |
Get the algorithm's IV size.
int | Initialization vector size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 47 of file AES128GCM.php.
|
static |
Get the algorithm's key size.
int | Key size (in bytes). |
Implements fpoirotte\Pssht\Encryption\EncryptionInterface.
Definition at line 42 of file AES128GCM.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 57 of file AES128GCM.php.
|
staticfinal |
Determine whether the algorithm is available.
bool | true if the algorithm is available, false otherwise. |
Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.
Definition at line 87 of file AES128GCM.php.