OpenPGP PHP
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OpenPGP_S2K Class Reference

Public Member Functions

 __construct ($salt='BADSALT', $hash_algorithm=10, $count=65536, $type=3)
 
 to_bytes ()
 
 raw_hash ($s)
 
 sized_hash ($s, $size)
 
 iterate ($s)
 
 make_key ($pass, $size)
 

Static Public Member Functions

static parse (&$input)
 

Public Attributes

 $type
 
 $hash_algorithm
 
 $salt
 
 $count
 

Detailed Description

Definition at line 113 of file openpgp.php.

Constructor & Destructor Documentation

OpenPGP_S2K::__construct (   $salt = 'BADSALT',
  $hash_algorithm = 10,
  $count = 65536,
  $type = 3 
)

Definition at line 116 of file openpgp.php.

Member Function Documentation

OpenPGP_S2K::iterate (   $s)

Definition at line 179 of file openpgp.php.

OpenPGP_S2K::make_key (   $pass,
  $size 
)

Definition at line 185 of file openpgp.php.

static OpenPGP_S2K::parse ( $input)
static

Definition at line 123 of file openpgp.php.

OpenPGP_S2K::raw_hash (   $s)

Definition at line 165 of file openpgp.php.

OpenPGP_S2K::sized_hash (   $s,
  $size 
)

Definition at line 169 of file openpgp.php.

OpenPGP_S2K::to_bytes ( )

Definition at line 146 of file openpgp.php.

Member Data Documentation

OpenPGP_S2K::$count

Definition at line 114 of file openpgp.php.

OpenPGP_S2K::$hash_algorithm

Definition at line 114 of file openpgp.php.

OpenPGP_S2K::$salt

Definition at line 114 of file openpgp.php.

OpenPGP_S2K::$type

Definition at line 114 of file openpgp.php.