@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | $msg = OpensslWrapper::encrypt($data, static::CIPHER, $key, $ivr); |
| 78 | 78 | |
| 79 | 79 | // Create the cypher text prefix (iv + checksum) |
| 80 | - $pre = $ivr . self::checksum($msg, $ivr, $key); |
|
| 80 | + $pre = $ivr.self::checksum($msg, $ivr, $key); |
|
| 81 | 81 | |
| 82 | 82 | // Return prefix + cyphertext |
| 83 | - return $pre . $msg; |
|
| 83 | + return $pre.$msg; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $sum = Hash::hmac($data, $key, static::CHKSUM); |
| 99 | 99 | |
| 100 | 100 | // Then add the other input elements together before performing the final hash |
| 101 | - $sum = $sum . $iv . static::CIPHER; |
|
| 101 | + $sum = $sum.$iv.static::CIPHER; |
|
| 102 | 102 | |
| 103 | 103 | // ... then hash other elements with previous hmac and return |
| 104 | 104 | return Hash::hmac($sum, $key, static::CHKSUM); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | private static function key(string $pass, string $iv, int $cost): string |
| 116 | 116 | { |
| 117 | 117 | // Create the authentication string to be hashed |
| 118 | - $data = $iv . self::RIJNDA . static::CIPHER; |
|
| 118 | + $data = $iv.self::RIJNDA.static::CIPHER; |
|
| 119 | 119 | |
| 120 | 120 | return Hash::ihmac($data, $pass, $cost, static::CHKSUM); |
| 121 | 121 | } |