aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/CryptHKDF.php
diff options
context:
space:
mode:
authorBartosz Dziewoński <matma.rex@gmail.com>2017-02-25 22:53:36 +0100
committerBartosz Dziewoński <matma.rex@gmail.com>2017-02-27 19:23:54 +0100
commitecdef925bb0da8cfefbe2a72413a680edf732d31 (patch)
tree227dea08701efd8962e9f005c55f2f2a759863a5 /includes/libs/CryptHKDF.php
parent0da3d2ff2b78ef0cf3385e6e9e626ce1a7f4d3d6 (diff)
downloadmediawikicore-ecdef925bb0da8cfefbe2a72413a680edf732d31.tar.gz
mediawikicore-ecdef925bb0da8cfefbe2a72413a680edf732d31.zip
Miscellaneous indentation tweaks
I was bored. What? Don't look at me that way. I mostly targetted mixed tabs and spaces, but others were not spared. Note that some of the whitespace changes are inside HTML output, extended regexps or SQL snippets. Change-Id: Ie206cc946459f6befcfc2d520e35ad3ea3c0f1e0
Diffstat (limited to 'includes/libs/CryptHKDF.php')
-rw-r--r--includes/libs/CryptHKDF.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/libs/CryptHKDF.php b/includes/libs/CryptHKDF.php
index 4c867574182d..6b3e4a7acacd 100644
--- a/includes/libs/CryptHKDF.php
+++ b/includes/libs/CryptHKDF.php
@@ -197,11 +197,11 @@ class CryptHKDF {
* From http://eprint.iacr.org/2010/264.pdf:
*
* The scheme HKDF is specifed as:
- * HKDF(XTS, SKM, CTXinfo, L) = K(1) || K(2) || ... || K(t)
+ * HKDF(XTS, SKM, CTXinfo, L) = K(1) || K(2) || ... || K(t)
* where the values K(i) are defined as follows:
- * PRK = HMAC(XTS, SKM)
- * K(1) = HMAC(PRK, CTXinfo || 0);
- * K(i+1) = HMAC(PRK, K(i) || CTXinfo || i), 1 <= i < t;
+ * PRK = HMAC(XTS, SKM)
+ * K(1) = HMAC(PRK, CTXinfo || 0);
+ * K(i+1) = HMAC(PRK, K(i) || CTXinfo || i), 1 <= i < t;
* where t = [L/k] and the value K(t) is truncated to its first d = L mod k bits;
* the counter i is non-wrapping and of a given fixed size, e.g., a single byte.
* Note that the length of the HMAC output is the same as its key length and therefore