|
@@ -68,7 +68,7 @@ discard block |
|
|
block discarded – undo |
|
68
|
68
|
$sum = Hash::hmac($data, $key, self::ALGO); |
|
69
|
69
|
|
|
70
|
70
|
// Then add the other input elements together before performing the final hash |
|
71
|
|
- $sum = $sum . $iv . $mode . self::RIJNDA; |
|
|
71
|
+ $sum = $sum.$iv.$mode.self::RIJNDA; |
|
72
|
72
|
|
|
73
|
73
|
// ... then hash other elements with previous hmac and return |
|
74
|
74
|
return Hash::hmac($sum, $key, self::ALGO); |
|
@@ -85,7 +85,7 @@ discard block |
|
|
block discarded – undo |
|
85
|
85
|
*/ |
|
86
|
86
|
protected static function key(string $pass, string $iv, int $cost, string $mode): string |
|
87
|
87
|
{ |
|
88
|
|
- return Hash::ihmac($iv . self::RIJNDA . $mode, $pass, $cost, self::ALGO); |
|
|
88
|
+ return Hash::ihmac($iv.self::RIJNDA.$mode, $pass, $cost, self::ALGO); |
|
89
|
89
|
} |
|
90
|
90
|
|
|
91
|
91
|
/** |
Please login to merge, or discard this patch.