@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | foreach ($chunks as $i => &$chunk) { |
46 | 46 | // Create the info key based on counter |
47 | - $info = $length . $i; |
|
47 | + $info = $length.$i; |
|
48 | 48 | |
49 | 49 | // Xor the derived key with the data chunk |
50 | 50 | $chunk = $chunk ^ $key->deriveKey($info); |
@@ -121,6 +121,6 @@ |
||
121 | 121 | $chk = $key->messageChecksum($msg); |
122 | 122 | |
123 | 123 | // Return concatenation of iv + checksum + tag + ciphertext |
124 | - return $ivr . $chk . $tag . $msg; |
|
124 | + return $ivr.$chk.$tag.$msg; |
|
125 | 125 | } |
126 | 126 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function authenticationKey(): string |
66 | 66 | { |
67 | - return $this->deriveKey(__FUNCTION__ . '|' . $this->cipher); |
|
67 | + return $this->deriveKey(__FUNCTION__.'|'.$this->cipher); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function encryptionKey(): string |
76 | 76 | { |
77 | - return $this->deriveKey(__FUNCTION__ . '|' . $this->cipher); |
|
77 | + return $this->deriveKey(__FUNCTION__.'|'.$this->cipher); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -25,8 +25,7 @@ |
||
25 | 25 | private string $algo, |
26 | 26 | private string $cipher, |
27 | 27 | private string $iv |
28 | - ) |
|
29 | - { |
|
28 | + ) { |
|
30 | 29 | // Store the key as what was supplied |
31 | 30 | $this->key = self::decode($key); |
32 | 31 | } |