Completed
Pull Request — master (#14)
by Michael
02:18 queued 46s
created
src/OpensslBridge.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
         $msg = OpensslWrapper::encrypt($data, static::CIPHER, $key, $ivr);
86 86
 
87 87
         // Create the cypher text prefix (iv + checksum)
88
-        $pre = $ivr . self::checksum($msg, $ivr, $key);
88
+        $pre = $ivr.self::checksum($msg, $ivr, $key);
89 89
 
90 90
         // Return prefix + cyphertext
91
-        return $pre . $msg;
91
+        return $pre.$msg;
92 92
     }
93 93
 
94 94
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $sum = Hash::hmac($data, $key, static::CHKSUM);
108 108
 
109 109
         // Then add the other input elements together before performing the final hash
110
-        $sum = $sum . $iv . self::mode() . self::RIJNDA;
110
+        $sum = $sum.$iv.self::mode().self::RIJNDA;
111 111
 
112 112
         // ... then hash other elements with previous hmac and return
113 113
         return Hash::hmac($sum, $key, static::CHKSUM);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private static function key(string $pass, string $iv, int $cost): string
125 125
     {
126
-        $data = $iv . self::RIJNDA . self::mode();
126
+        $data = $iv.self::RIJNDA.self::mode();
127 127
 
128 128
         return Hash::ihmac($data, $pass, $cost, static::CHKSUM);
129 129
     }
Please login to merge, or discard this patch.