pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($key) | |
compute ($seqno, $data) | |
Static Public Member Functions | |
static | getKeySize () |
static | getSize () |
static | isAvailable () |
![]() | |
static | getName () |
Return the name of the algorithm. | |
![]() | |
static | getHash () |
Protected Attributes | |
$key | |
Secret key for MAC operations. | |
|
final |
Construct a new MAC algorithm.
string | $key | Key for the MAC algorithm. |
Implements fpoirotte\Pssht\MAC\MACInterface.
Definition at line 29 of file Base.php.
References fpoirotte\Pssht\MAC\Base\$key.
|
final |
Compute the MAC for some data.
int | $seqno | Sequence number of the message for which the MAC applies. |
string | $data | Data whose MAC must be computed. |
string | MAC for the given data. |
Implements fpoirotte\Pssht\MAC\MACInterface.
|
staticfinal |
Get the size of a key compatible with this MAC algorithm.
int | MAC key size in bytes. |
Implements fpoirotte\Pssht\MAC\MACInterface.
|
staticfinal |
Get the size of a MAC signature generated with this algorithm.
int | MAC size in bytes. |
Implements fpoirotte\Pssht\MAC\MACInterface.
|
staticfinal |
Determine whether the algorithm is available.
bool | true if the algorithm is available, false otherwise. |
Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.