@@ -36,11 +36,11 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | private static function _hmac(string $crypto, string $keyBytes, string $text) : string |
| 38 | 38 | { |
| 39 | - $hash = hash_hmac($crypto, $text, $keyBytes); |
|
| 40 | - if (false === $hash) { |
|
| 41 | - throw new Exception("calculating hash_hmac failed"); |
|
| 42 | - } |
|
| 43 | - return $hash; |
|
| 39 | + $hash = hash_hmac($crypto, $text, $keyBytes); |
|
| 40 | + if (false === $hash) { |
|
| 41 | + throw new Exception("calculating hash_hmac failed"); |
|
| 42 | + } |
|
| 43 | + return $hash; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -99,12 +99,12 @@ discard block |
||
| 99 | 99 | * alternative to "-S064" |
| 100 | 100 | */ |
| 101 | 101 | static function generateOCRA(string $ocraSuite, |
| 102 | - string $key, |
|
| 103 | - string $counter, |
|
| 104 | - string $question, |
|
| 105 | - string $password, |
|
| 106 | - string $sessionInformation, |
|
| 107 | - string $timeStamp) : string |
|
| 102 | + string $key, |
|
| 103 | + string $counter, |
|
| 104 | + string $question, |
|
| 105 | + string $password, |
|
| 106 | + string $sessionInformation, |
|
| 107 | + string $timeStamp) : string |
|
| 108 | 108 | { |
| 109 | 109 | $codeDigits = 0; |
| 110 | 110 | $crypto = ""; |