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

Public Member Functions

 compute ($seqno, $data)
 
- Public Member Functions inherited from fpoirotte\Pssht\MAC\MACInterface
 __construct ($key)
 

Static Public Member Functions

static isAvailable ()
 
- Static Public Member Functions inherited from fpoirotte\Pssht\MAC\MACInterface
static getKeySize ()
 
static getSize ()
 
- Static Public Member Functions inherited from fpoirotte\Pssht\Algorithms\AlgorithmInterface
static getName ()
 Return the name of the algorithm.
 

Protected Attributes

 $key
 Integrity key.
 
 $umac
 Underlying UMAC implementation.
 

Detailed Description

Abstract class for the UMAC algorithm.

Definition at line 17 of file Base.php.

Member Function Documentation

fpoirotte\Pssht\MAC\OpensshCom\UMAC\Base::compute (   $seqno,
  $data 
)
final

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 27 of file Base.php.

static fpoirotte\Pssht\MAC\OpensshCom\UMAC\Base::isAvailable ( )
staticfinal

Determine whether the algorithm is available.

Return values
booltrue if the algorithm is available, false otherwise.

Implements fpoirotte\Pssht\Algorithms\AvailabilityInterface.

Definition at line 35 of file Base.php.


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