| @@ -87,7 +87,7 @@ | ||
| 87 | 87 | * | 
| 88 | 88 | * @param $data - The encrypted-and-signed message as base64 ASCII | 
| 89 | 89 | * | 
| 90 | - * @return bool|string - The decrypted cleartext or false if signature failed | |
| 90 | + * @return string|false - The decrypted cleartext or false if signature failed | |
| 91 | 91 | */ | 
| 92 | 92 | public function decrypt($data) | 
| 93 | 93 |      { | 
| @@ -75,7 +75,7 @@ | ||
| 75 | 75 | * | 
| 76 | 76 | * @param string $data - The encrypted-and-signed message as base64 ASCII | 
| 77 | 77 | * | 
| 78 | - * @return bool|string - The decrypted cleartext or false if signature failed | |
| 78 | + * @return string|false - The decrypted cleartext or false if signature failed | |
| 79 | 79 | */ | 
| 80 | 80 | public function decrypt($data) | 
| 81 | 81 |      { | 
| @@ -38,6 +38,7 @@ | ||
| 38 | 38 | |
| 39 | 39 | /** | 
| 40 | 40 | * @param string | 
| 41 | + * @param string $key | |
| 41 | 42 | * | 
| 42 | 43 | * @return $this | 
| 43 | 44 | */ | 
| @@ -4,7 +4,6 @@ | ||
| 4 | 4 | |
| 5 | 5 | use SilverStripe\Control\Cookie; | 
| 6 | 6 | use SilverStripe\HybridSessions\Crypto\CryptoHandler; | 
| 7 | -use SilverStripe\Core\Config\Config; | |
| 8 | 7 | use SilverStripe\Core\Injector\Injector; | 
| 9 | 8 | |
| 10 | 9 | /** |