Zend Framework
3.0
|
Scrypt key derivation function. More...
Static Public Member Functions | |
static | calc ($password, $salt, $n, $r, $p, $length) |
Execute the scrypt algorithm. | |
Static Protected Member Functions | |
static | scryptROMix ($b, $n, $r) |
scryptROMix | |
static | scryptBlockMix ($b, $r) |
scryptBlockMix | |
static | salsa208Core32 ($b) |
Salsa 20/8 core (32 bit version) | |
static | salsa208Core64 ($b) |
Salsa 20/8 core (64 bit version) | |
static | integerify ($b) |
Integerify. | |
Scrypt key derivation function.
|
static |
Execute the scrypt algorithm.
string | $password | |
string | $salt | |
int | $n | CPU cost |
int | $r | Memory cost |
int | $p | parallelization cost |
int | $length | size of the output key |
|
staticprotected |
Integerify.
Integerify (B[0] ... B[2 * r - 1]) is defined as the result of interpreting B[2 * r - 1] as a little-endian integer. Each block B is a string of 64 bytes.
string | $b |
|
staticprotected |
Salsa 20/8 core (32 bit version)
string | $b |
|
staticprotected |
Salsa 20/8 core (64 bit version)
string | $b |
|
staticprotected |
scryptBlockMix
string | $b | |
int | $r |
|
staticprotected |
scryptROMix
string | $b | |
int | $n | |
int | $r |