summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/crypt.php
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-31 22:49:32 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-31 22:49:32 +0200
commit46e5e9bd73a68f7b50bb79f883a8bc6efacaca97 (patch)
tree76e7c2f8c2a6a7aa6bf4467c9686f77559f70a80 /apps/files_encryption/lib/crypt.php
parent8761242f5240319e234c9fa3020141e9791cdcfb (diff)
downloadnextcloud-server-46e5e9bd73a68f7b50bb79f883a8bc6efacaca97.tar.gz
nextcloud-server-46e5e9bd73a68f7b50bb79f883a8bc6efacaca97.zip
cleanup unused method legacyKeyRecryptKeyfile
Diffstat (limited to 'apps/files_encryption/lib/crypt.php')
-rwxr-xr-xapps/files_encryption/lib/crypt.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php
index d84a4d4e3c1..ced9ab7c676 100755
--- a/apps/files_encryption/lib/crypt.php
+++ b/apps/files_encryption/lib/crypt.php
@@ -637,28 +637,4 @@ class Crypt {
}
}
- /**
- * @param $legacyEncryptedContent
- * @param $legacyPassphrase
- * @param $publicKeys
- * @return array
- */
- public static function legacyKeyRecryptKeyfile($legacyEncryptedContent, $legacyPassphrase, $publicKeys) {
-
- $decrypted = self::legacyBlockDecrypt($legacyEncryptedContent, $legacyPassphrase);
-
- // Encrypt plain data, generate keyfile & encrypted file
- $cryptedData = self::symmetricEncryptFileContentKeyfile($decrypted);
-
- // Encrypt plain keyfile to multiple sharefiles
- $multiEncrypted = Crypt::multiKeyEncrypt($cryptedData['key'], $publicKeys);
-
- return array(
- 'data' => $cryptedData['encrypted'],
- 'filekey' => $multiEncrypted['data'],
- 'sharekeys' => $multiEncrypted['keys']
- );
-
- }
-
} \ No newline at end of file