Completed
Push — master ( a692f9...9a95bc )
by Michael
01:48
created
src/Aes.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,6 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.