pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($key) | |
compute ($nonce, $data) | |
Static Public Member Functions | |
static | getKeySize () |
static | getName () |
Return the name of the algorithm. | |
static | getSize () |
fpoirotte\Pssht\MAC\None::__construct | ( | $key | ) |
Construct a new MAC algorithm.
string | $key | Key for the MAC algorithm. |
Implements fpoirotte\Pssht\MAC\MACInterface.
fpoirotte\Pssht\MAC\None::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. |
Implements fpoirotte\Pssht\MAC\MACInterface.
|
static |
Get the size of a key compatible with this MAC algorithm.
int | MAC key size in bytes. |
Implements fpoirotte\Pssht\MAC\MACInterface.
|
static |
Get the size of a MAC signature generated with this algorithm.
int | MAC size in bytes. |
Implements fpoirotte\Pssht\MAC\MACInterface.