pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\MAC\None Class Reference
+ Inheritance diagram for fpoirotte\Pssht\MAC\None:

Public Member Functions

 __construct ($key)
 
 compute ($nonce, $data)
 

Static Public Member Functions

static getKeySize ()
 
static getName ()
 Return the name of the algorithm.
 
static getSize ()
 

Detailed Description

Null MAC generation (= no MAC).

Definition at line 17 of file None.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\MAC\None::__construct (   $key)

Construct a new MAC algorithm.

Parameters
string$keyKey for the MAC algorithm.

Implements fpoirotte\Pssht\MAC\MACInterface.

Definition at line 19 of file None.php.

Member Function Documentation

fpoirotte\Pssht\MAC\None::compute (   $seqno,
  $data 
)

Compute the MAC for some data.

Parameters
int$seqnoSequence number of the message for which the MAC applies.
string$dataData whose MAC must be computed.
Return values
stringMAC for the given data.

Implements fpoirotte\Pssht\MAC\MACInterface.

Definition at line 28 of file None.php.

static fpoirotte\Pssht\MAC\None::getKeySize ( )
static

Get the size of a key compatible with this MAC algorithm.

Return values
intMAC key size in bytes.

Implements fpoirotte\Pssht\MAC\MACInterface.

Definition at line 38 of file None.php.

static fpoirotte\Pssht\MAC\None::getSize ( )
static

Get the size of a MAC signature generated with this algorithm.

Return values
intMAC size in bytes.

Implements fpoirotte\Pssht\MAC\MACInterface.

Definition at line 33 of file None.php.


The documentation for this class was generated from the following file: