| 1 | <?php |
||
| 11 | class HaliteEncryptor implements EncryptorInterface |
||
| 12 | { |
||
| 13 | const IDENTITY = 'halite'; |
||
| 14 | |||
| 15 | 6 | public function encrypt($data, Key $key) |
|
| 19 | |||
| 20 | 3 | public function decrypt($data, Key $key) |
|
| 24 | |||
| 25 | 7 | public function getIdentifier(): IdentityInterface |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return Symmetric\EncryptionKey |
||
| 32 | * @throws \ParagonIE\Halite\Alerts\CannotPerformOperation |
||
| 33 | */ |
||
| 34 | 6 | private function loadKey(Key $key) |
|
| 38 | } |