@@ -55,7 +55,6 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * Create a message authentication checksum. |
| 57 | 57 | * |
| 58 | - * @param string $cyphertext Ciphertext that needs a checksum. |
|
| 59 | 58 | * @param string $iv Initialization vector. |
| 60 | 59 | * @param string $key HMAC key |
| 61 | 60 | * @param string $mode Cipher mode (cbc, ctr) |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $sum = Hash::hmac($data, $key, self::ALGO); |
| 69 | 69 | |
| 70 | 70 | // Add the other 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); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | protected static function key(string $password, string $iv, int $cost, string $mode): string |
| 87 | 87 | { |
| 88 | 88 | // Perform key derivation |
| 89 | - return Hash::ihmac($iv . self::RIJNDA . $mode, $password, $cost, self::ALGO); |
|
| 89 | + return Hash::ihmac($iv.self::RIJNDA.$mode, $password, $cost, self::ALGO); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |