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