|
@@ -75,8 +75,7 @@ |
|
|
block discarded – undo |
|
75
|
75
|
* if the HMAC attached to $message doesn't match what we expect |
|
76
|
76
|
* (strongly suggests $message has been tampered with) |
|
77
|
77
|
*/ |
|
78
|
|
- public static function for(string $message, $expectedHmac, string $hashAlgo, string $key) |
|
79
|
|
- { |
|
|
78
|
+ public static function for(string $message, $expectedHmac, string $hashAlgo, string $key) { |
|
80
|
79
|
// has the message been tampered with? |
|
81
|
80
|
$actualHmac = CalculateHmac::for($message, $hashAlgo, $key); |
|
82
|
81
|
if ($expectedHmac !== $actualHmac) { |
Please login to merge, or discard this patch.