summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-14 12:23:25 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-14 12:23:25 +0200
commitf816acde271342ef20de612e6b6deca90dbffb67 (patch)
treeb9d08ed2dd67e405af390853ed3b7c2c3296abe3 /apps/encryption/lib
parentffa115b51725c4774b49c2419f88cb91d726386b (diff)
downloadnextcloud-server-f816acde271342ef20de612e6b6deca90dbffb67.tar.gz
nextcloud-server-f816acde271342ef20de612e6b6deca90dbffb67.zip
fix reading of private key
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r--apps/encryption/lib/crypto/crypt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/crypto/crypt.php b/apps/encryption/lib/crypto/crypt.php
index 91f986611be..c026aa6a90a 100644
--- a/apps/encryption/lib/crypto/crypt.php
+++ b/apps/encryption/lib/crypto/crypt.php
@@ -245,7 +245,7 @@ class Crypt {
if (!empty($header)) {
$privateKey = substr($privateKey,
strpos($privateKey,
- self::HEADER_END) + strlen(self::HEADER_START));
+ self::HEADER_END) + strlen(self::HEADER_END));
}
$plainKey = $this->symmetricDecryptFileContent($privateKey,