pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($key) | |
compute ($seqno, $data) | |
Static Public Member Functions | |
static | getKeySize () |
static | getName () |
Return the name of the algorithm. | |
static | getSize () |
static | isAvailable () |
![]() | |
static | getBaseClass () |
Protected Attributes | |
$subhash | |
Subhash performing the real MAC operation. | |
Abstract base class for a MAC truncated after 96 bits.
Definition at line 22 of file Base96.php.
|
final |
Construct a new MAC algorithm.
string | $key | Key for the MAC algorithm. |
Implements fpoirotte\Pssht\MAC\MACInterface.
Definition at line 30 of file Base96.php.
|
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.
Definition at line 42 of file Base96.php.
References fpoirotte\Pssht\MAC\Base96\getSize().
|
staticfinal |
Get the size of a key compatible with this MAC algorithm.
int | MAC key size in bytes. |
Implements fpoirotte\Pssht\MAC\MACInterface.
Definition at line 51 of file Base96.php.
|
staticfinal |
Get the size of a MAC signature generated with this algorithm.
int | MAC size in bytes. |
Implements fpoirotte\Pssht\MAC\MACInterface.
Definition at line 57 of file Base96.php.
Referenced by fpoirotte\Pssht\MAC\Base96\compute().
|
staticfinal |
Determine whether the algorithm is available.
bool | true if the algorithm is available, false otherwise. |
Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.
Definition at line 62 of file Base96.php.