@@ -106,10 +106,10 @@ |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | // Create the cypher text prefix (iv + checksum) |
| 109 | - $prefix = $ivr . self::checksum($msg, $ivr, $key, self::mode()); |
|
| 109 | + $prefix = $ivr.self::checksum($msg, $ivr, $key, self::mode()); |
|
| 110 | 110 | |
| 111 | 111 | // Return prefix + cyphertext |
| 112 | - return $prefix . $msg; |
|
| 112 | + return $prefix.$msg; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | // ... then hash other elements with previous hmac and return |
| 63 | - return \hash_hmac(self::ALGO, $sum . $iv . $mode . self::RIJNDA, $key, true); |
|
| 63 | + return \hash_hmac(self::ALGO, $sum.$iv.$mode.self::RIJNDA, $key, true); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | protected static function key(string $password, string $iv, int $cost, string $mode): string |
| 77 | 77 | { |
| 78 | 78 | // Perform key derivation |
| 79 | - return Hash::ihmac($iv . self::RIJNDA . $mode, $password, $cost, self::ALGO); |
|
| 79 | + return Hash::ihmac($iv.self::RIJNDA.$mode, $password, $cost, self::ALGO); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |