Zend Framework  1.12
Static Public Member Functions | Public Attributes | Static Protected Member Functions | Static Protected Attributes | List of all members
Zend_Crypt Class Reference

Static Public Member Functions

static hash ($algorithm, $data, $binaryOutput=false)
 

Public Attributes

const TYPE_OPENSSL = 'openssl'
 
const TYPE_HASH = 'hash'
 
const TYPE_MHASH = 'mhash'
 

Static Protected Member Functions

static _detectHashSupport ($algorithm)
 
static _digestHash ($algorithm, $data, $binaryOutput)
 
static _digestMhash ($algorithm, $data, $binaryOutput)
 
static _digestOpenssl ($algorithm, $data, $binaryOutput)
 

Static Protected Attributes

static $_type = null
 
static $_supportedAlgosOpenssl
 
static $_supportedAlgosMhash
 

Member Function Documentation

static _detectHashSupport (   $algorithm)
staticprotected
Parameters
string$algorithm
Exceptions
Zend_Crypt_Exception
See Also
Zend_Crypt_Exception
static _digestHash (   $algorithm,
  $data,
  $binaryOutput 
)
staticprotected
Parameters
string$algorithm
string$data
bool$binaryOutput
Returns
string
static _digestMhash (   $algorithm,
  $data,
  $binaryOutput 
)
staticprotected
Parameters
string$algorithm
string$data
bool$binaryOutput
Returns
string
static _digestOpenssl (   $algorithm,
  $data,
  $binaryOutput 
)
staticprotected
Parameters
string$algorithm
string$data
bool$binaryOutput
Returns
string
static hash (   $algorithm,
  $data,
  $binaryOutput = false 
)
static
Parameters
string$algorithm
string$data
bool$binaryOutput
Returns
unknown

Member Data Documentation

$_supportedAlgosMhash
staticprotected
Initial value:
= array(
'adler32',
'crc32',
'crc32b',
'gost',
'haval128',
'haval160',
'haval192',
'haval256',
'md4',
'md5',
'ripemd160',
'sha1',
'sha256',
'tiger',
'tiger128',
'tiger160'
)
$_supportedAlgosOpenssl
staticprotected
Initial value:
= array(
'md2',
'md4',
'mdc2',
'rmd160',
'sha',
'sha1',
'sha224',
'sha256',
'sha384',
'sha512'
)
$_type = null
staticprotected
const TYPE_HASH = 'hash'
const TYPE_MHASH = 'mhash'
const TYPE_OPENSSL = 'openssl'