pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
compute ($seqno, $data) | |
![]() | |
__construct ($key) | |
Static Public Member Functions | |
static | isAvailable () |
![]() | |
static | getKeySize () |
static | getSize () |
![]() | |
static | getName () |
Return the name of the algorithm. | |
Protected Attributes | |
$key | |
Integrity key. | |
$umac | |
Underlying UMAC implementation. | |
|
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 |
Determine whether the algorithm is available.
bool | true if the algorithm is available, false otherwise. |
Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.