aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/KeyManager.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-03-17 10:33:18 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-03-17 11:08:59 +0100
commit24e762c59f2875098359db0fb23eb5a3ebe40d18 (patch)
treeac9bdd5ddd985b96a3418d7aedc5b7d557805113 /apps/encryption/lib/KeyManager.php
parent0750481bb72344dd5576866da119fadecf5f62d8 (diff)
downloadnextcloud-server-24e762c59f2875098359db0fb23eb5a3ebe40d18.tar.gz
nextcloud-server-24e762c59f2875098359db0fb23eb5a3ebe40d18.zip
Fix encryption file key management
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/encryption/lib/KeyManager.php')
-rw-r--r--apps/encryption/lib/KeyManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php
index 5c933b5f8b2..f0005b45761 100644
--- a/apps/encryption/lib/KeyManager.php
+++ b/apps/encryption/lib/KeyManager.php
@@ -485,7 +485,7 @@ class KeyManager {
$privateKey);
}
}
- if ($useLegacyFileKey ?? false) {
+ if (!($useLegacyFileKey ?? false)) {
if ($shareKey && $privateKey) {
return $this->crypt->multiKeyDecrypt($shareKey, $privateKey);
}