/** * @inheritdoc */ public function decrypt($encrypted) { $decrypted = ''; $this->signature = $this->gpg->decryptverify($encrypted, false, $decrypted); if (!$decrypted || !$this->signature) { throw EncryptionException::notDecryptedAndVerified($this->gpg->geterror()); } return $decrypted; }