|
|
@@ -130,6 +130,11 @@ class KeyManager { |
|
|
|
$this->config->setAppValue('encryption', 'publicShareKeyId', $this->publicShareKeyId); |
|
|
|
} |
|
|
|
|
|
|
|
$this->keyId = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false; |
|
|
|
$this->log = $log; |
|
|
|
} |
|
|
|
|
|
|
|
public function validateShareKey() { |
|
|
|
$shareKey = $this->getPublicShareKey(); |
|
|
|
if (empty($shareKey)) { |
|
|
|
$keyPair = $this->crypt->createKeyPair(); |
|
|
@@ -143,9 +148,6 @@ class KeyManager { |
|
|
|
$header = $this->crypt->generateHeader(); |
|
|
|
$this->setSystemPrivateKey($this->publicShareKeyId, $header . $encryptedKey); |
|
|
|
} |
|
|
|
|
|
|
|
$this->keyId = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false; |
|
|
|
$this->log = $log; |
|
|
|
} |
|
|
|
|
|
|
|
/** |