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 | getName () |
Return the name of the algorithm. | |
Interface for a MAC algorithm.
Definition at line 17 of file MACInterface.php.
fpoirotte\Pssht\MAC\MACInterface::__construct | ( | $key | ) |
Construct a new MAC algorithm.
string | $key | Key for the MAC algorithm. |
Implemented in fpoirotte\Pssht\MAC\Base96, fpoirotte\Pssht\MAC\Base, fpoirotte\Pssht\MAC\None, fpoirotte\Pssht\MAC\OpensshCom\UMAC\Len128, and fpoirotte\Pssht\MAC\OpensshCom\UMAC\Len64.
fpoirotte\Pssht\MAC\MACInterface::compute | ( | $seqno, | |
$data | |||
) |
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. |
Implemented in fpoirotte\Pssht\MAC\Base96, fpoirotte\Pssht\MAC\Base, fpoirotte\Pssht\MAC\None, and fpoirotte\Pssht\MAC\OpensshCom\UMAC\Base.
|
static |
Get the size of a key compatible with this MAC algorithm.
int | MAC key size in bytes. |
Implemented in fpoirotte\Pssht\MAC\Base96, fpoirotte\Pssht\MAC\Base, fpoirotte\Pssht\MAC\None, fpoirotte\Pssht\MAC\OpensshCom\UMAC\Len128, and fpoirotte\Pssht\MAC\OpensshCom\UMAC\Len64.
|
static |
Get the size of a MAC signature generated with this algorithm.
int | MAC size in bytes. |
Implemented in fpoirotte\Pssht\MAC\Base96, fpoirotte\Pssht\MAC\Base, fpoirotte\Pssht\MAC\None, fpoirotte\Pssht\MAC\OpensshCom\UMAC\Len128, and fpoirotte\Pssht\MAC\OpensshCom\UMAC\Len64.