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

Public Member Functions

 UMAC ($k, $m, $nonce)
 

Public Attributes

const PRIME_128 = '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF61'
 128-bits prime number, in hexadecimal notation.
 
const PRIME_36 = '0x0000000FFFFFFFFB'
 36-bits prime number, in hexadecimal notation.
 
const PRIME_64 = '0xFFFFFFFFFFFFFFC5'
 64-bits prime number, in hexadecimal notation.
 

Protected Member Functions

 __construct ($cipher, $taglen)
 
 KDF ($k, $index, $numbytes)
 
 l1Hash ($k, $m)
 
 l2Hash ($k, $m)
 
 l3Hash ($k1, $k2, $m)
 
 NH ($k_i, $m, $len)
 
 PDF ($k, $nonce)
 
 POLY ($wordbits, $maxwordrange, $k, $m)
 
 UHASH ($k, $m)
 

Protected Attributes

 $blocklen
 Block length for the cipher.
 
 $cipher
 Cipher algorithm used to encrypt data.
 
 $taglen
 Length of tags generated by this instance.
 

Static Protected Attributes

static $twop32
 = 2**32
 
static $twop64
 = 2**64
 

Detailed Description

Abstract class implementing the UMAC algorithm.

Definition at line 17 of file Base.php.


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