summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/crypto/crypt.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-04-24 13:02:06 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-27 13:01:18 +0200
commit27683f944289e7b37f20ec7d877ed295d5ca66a3 (patch)
tree83c7f72931cbdc6549816030bf8333a0ca9eef2d /apps/encryption/lib/crypto/crypt.php
parente58029f8ad9ed4ddb1a68ea91e76e6a8d749fe27 (diff)
downloadnextcloud-server-27683f944289e7b37f20ec7d877ed295d5ca66a3.tar.gz
nextcloud-server-27683f944289e7b37f20ec7d877ed295d5ca66a3.zip
fall back to the ownCloud default encryption module and aes128 if we read a encrypted file without a header
Diffstat (limited to 'apps/encryption/lib/crypto/crypt.php')
-rw-r--r--apps/encryption/lib/crypto/crypt.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/encryption/lib/crypto/crypt.php b/apps/encryption/lib/crypto/crypt.php
index 9ada9200551..782dbbe5a35 100644
--- a/apps/encryption/lib/crypto/crypt.php
+++ b/apps/encryption/lib/crypto/crypt.php
@@ -210,6 +210,15 @@ class Crypt {
}
/**
+ * get legacy cipher
+ *
+ * @return string
+ */
+ public function getLegacyCipher() {
+ return self::LEGACY_CIPHER;
+ }
+
+ /**
* @param string $encryptedContent
* @param string $iv
* @return string