MWCryptRand already has some useful utility functions wrapping PHP's hash() and hash_hmac(). Let's make them public so we can use them from other code. But since "MWCryptRand" isn't really a good place for hashing functions, let's move them to "MWCryptHash" instead. Change-Id: I7542c719ac72beba7b0f6aa170bdb4c69fa6beab |
||
|---|---|---|
| .. | ||
| iterators | ||
| AutoloadGenerator.php | ||
| AvroValidator.php | ||
| BatchRowIterator.php | ||
| BatchRowUpdate.php | ||
| BatchRowWriter.php | ||
| FileContentsHasher.php | ||
| IP.php | ||
| MWCryptHash.php | ||
| MWCryptHKDF.php | ||
| MWCryptRand.php | ||
| README | ||
| RowUpdateGenerator.php | ||
| UIDGenerator.php | ||
| ZipDirectoryReader.php | ||
The classes in this directory are general utilities for use by any part of MediaWiki. They do not favour any particular user interface and are not constrained to serve any particular feature. This is similar to includes/libs, except that some dependency on the MediaWiki framework (such as the use of MWException, Status or wfDebug()) disqualifies them from use outside of MediaWiki without modification. Utilities should not use global configuration variables, rather they should rely on the caller to configure their behaviour.