X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Futils%2FMWCryptHKDF.php;h=cc136793c9412f8e3222c76df754cfff4a808f5e;hb=48d433b102e636644d833e408ba028880f90f62a;hp=8610386cfc9522a2c4e118ccc674c24c715f387a;hpb=d7079ce27e7ad7b859f99aa6ecabe546fb581b6c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/MWCryptHKDF.php b/includes/utils/MWCryptHKDF.php index 8610386cfc..cc136793c9 100644 --- a/includes/utils/MWCryptHKDF.php +++ b/includes/utils/MWCryptHKDF.php @@ -99,7 +99,8 @@ class MWCryptHKDF { /** - * @param string $hash Name of hashing algorithm + * @param string $secretKeyMaterial + * @param string $algorithm Name of hashing algorithm * @param BagOStuff $cache * @param string|array $context Context to mix into HKDF context */ @@ -257,8 +258,8 @@ class MWCryptHKDF { * and the SKM (source key material) is the "data". * * @param string $hash The hashing function to use (e.g., sha256) - * @param string $ikm The input keying material * @param string $salt The salt to add to the ikm, to get the prk + * @param string $ikm The input keying material * @return string Binary string (pseudorandm key) used as input to HKDFExpand */ private static function HKDFExtract( $hash, $salt, $ikm ) {