MediaWiki REL1_33
|
Implements Argon2, a modern key derivation algorithm designed to resist GPU cracking and side-channel attacks. More...
Public Member Functions | |
crypt ( $password) | |
@inheritDoc | |
equals ( $other) | |
@inheritDoc | |
needsUpdate () | |
@inheritDoc | |
toString () | |
@inheritDoc | |
verify ( $password) | |
@inheritDoc | |
Public Member Functions inherited from Password | |
__construct (PasswordFactory $factory, array $config, $hash=null) | |
Construct the Password object using a string hash. | |
getType () | |
Get the type name of the password. | |
Protected Member Functions | |
isSupported () | |
@inheritDoc | |
Protected Member Functions inherited from Password | |
assertIsSafeSize ( $hash) | |
Assert that hash will fit in a tinyblob field. | |
parseHash ( $hash) | |
Perform any parsing necessary on the hash to see if the hash is valid and/or to perform logic for seeing if the hash needs updating. | |
Private Member Functions | |
prepareParams () | |
Static Private Attributes | |
static null[] | $knownOptions |
Array with known password_hash() option names as keys. | |
Additional Inherited Members | |
Public Attributes inherited from Password | |
const | MAX_HASH_SIZE = 255 |
Hash must fit in user_password, which is a tinyblob. | |
Protected Attributes inherited from Password | |
array | $config |
Array of configuration variables injected from the constructor. | |
PasswordFactory | $factory |
Factory that created the object. | |
string | $hash |
String representation of the hash without the type. | |
Implements Argon2, a modern key derivation algorithm designed to resist GPU cracking and side-channel attacks.
Definition at line 30 of file Argon2Password.php.
Argon2Password::crypt | ( | $password | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 75 of file Argon2Password.php.
References $params, list, and prepareParams().
Argon2Password::equals | ( | $other | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 83 of file Argon2Password.php.
References verify().
|
protected |
Argon2Password::needsUpdate | ( | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 113 of file Argon2Password.php.
References $params, list, and prepareParams().
|
private |
Definition at line 51 of file Argon2Password.php.
References $params.
Referenced by crypt(), and needsUpdate().
Argon2Password::toString | ( | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 104 of file Argon2Password.php.
References $res, and Password\assertIsSafeSize().
Argon2Password::verify | ( | $password | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 95 of file Argon2Password.php.
Referenced by equals().
|
staticprivate |
Array with known password_hash() option names as keys.
Definition at line 34 of file Argon2Password.php.