Zend Framework  3.0
Static Public Member Functions | Static Protected Attributes | List of all members
SaltedS2k Class Reference

Salted S2K key generation (OpenPGP document, RFC 2440) More...

Static Public Member Functions

static static calc ($hash, $password, $salt, $bytes)
 Generate the new key.
 

Static Protected Attributes

static $supportedMhashAlgos
 

Detailed Description

Salted S2K key generation (OpenPGP document, RFC 2440)

Member Function Documentation

static static calc (   $hash,
  $password,
  $salt,
  $bytes 
)
static

Generate the new key.

Parameters
string$hashThe hash algorithm to be used by HMAC
string$passwordThe source password/key
int$bytesThe output size in bytes
string$saltThe salt of the algorithm
Exceptions
Exception\InvalidArgumentException
Returns
string

Member Data Documentation

$supportedMhashAlgos
staticprotected
Initial value:
= [
'adler32' => MHASH_ADLER32