Commit Graph

216 Commits (079f1a6f4146ee181995084e7c4c43a6bbe0082c)

Author SHA1 Message Date
Bjoern Schiessle 4f8ae789ae extend the encryption stream wrapper to handle local files and add a fall back for file size calculation if the storage doesn't support fseek 11 years ago
Bjoern Schiessle 9a94c07553 remove unused method tail() 11 years ago
Bjoern Schiessle c955381d56 fall back to getLocalFile if storage doesn't support fseek 11 years ago
Bjoern Schiessle 69b89454a4 reliable detect encrypted files 11 years ago
Bart Visscher 40f148cc6c Don't try to encrypt a file when the temp file isn't created 11 years ago
Bjoern Schiessle 9ff231590c set unencrypted_size to 0 after decryption... so that the unencrypted_size gets re-calculated if encryption was enabled again 11 years ago
Bjoern Schiessle 9371944e43 fix typo 11 years ago
Bjoern Schiessle 85467b973a add method to check if users private/public key exists 11 years ago
Bjoern Schiessle 060e0ad0cd with the latest changes in master $this-userID is always the correct ID, so we no longer need the extra parameter 11 years ago
Bjoern Schiessle 7f3b178d73 some small changes according to the review comments 11 years ago
Bjoern Schiessle 35a6ad255d fix typo in var name 11 years ago
Bjoern Schiessle d6fb2afa85 show a message at the log-in screen if inital encryption take place 12 years ago
Bjoern Schiessle c7dc6dc2c2 fix getFileKey() call 12 years ago
Bjoern Schiessle 2b361ea085 better distinction between userID and keyId 12 years ago
Bjoern Schiessle b27fc42e1f public upload now also works with encryption enabled 12 years ago
Bjoern Schiessle b9c18d16fe make sure that we always use the correct user id 12 years ago
Bjoern Schiessle e11afd3066 fix some getShareKey() and getFileKey() calls 12 years ago
Bjoern Schiessle c5cb4206f5 [wip] make encryption work with public gallery sharing 12 years ago
Bjoern Schiessle f3e2a63712 check if it is a cached file or a version to resolve the correct path to the file key 12 years ago
Bjoern Schiessle 0c24c7c420 only check if the key file exists to decide if it is an encrypted file or not. 12 years ago
Bjoern Schiessle b823505bd1 make sure that the owners home is mounted correctly 12 years ago
Bjoern Schiessle 77429c28fd rename fixPartialFilePath() to stripPartialFileExtension(), this name describes better what the method actually does 12 years ago
Bjoern Schiessle 894856ce01 make sure that we keep the correct timestamp and etag after encryoption/decryption 12 years ago
Bjoern Schiessle 802213f7ec let encryption app detect transfer id in path and handle it correctly 12 years ago
Vincent Petry e246e2b669 Fixed encryption migration when entry is missing in DB 12 years ago
Markus Goetz af58360434 files_encryption: Fix getFileSize() 12 years ago
Bjoern Schiessle eb348b776c set the init status to "NOT_INITIALIZED" if the encryption app gets enabled 12 years ago
Bjoern Schiessle b2dde14dbc coding style fixes 12 years ago
Bjoern Schiessle 93f4dec798 fix part file handling and real size calculation, this should also solve #4581 12 years ago
Bjoern Schiessle f6830e7462 check shares for the real file and not for the .part file 12 years ago
Bjoern Schiessle 404e36323a first check if a extension exists before comparing it 12 years ago
Bjoern Schiessle 597a3cf1ad handle part files correctly 12 years ago
Bjoern Schiessle fb462e83cc no longer enforce log out, but provide useful errors/warnings instead 12 years ago
Arthur Schiwon c01675de5d more is_resource checks before readdir 12 years ago
Bjoern Schiessle 3d49631b8d make sure that initial encryption also starts for a fresh installation 12 years ago
Bjoern Schiessle bab63c22ee encryption error messages, distinguish between a re-enabled encryption app and a password change from outside 12 years ago
Bjoern Schiessle d7dca966a2 improved error messaging, initial commit 12 years ago
Bjoern Schiessle 1be11bb03d don't change the etags if a file gets encrypted/decrypted to avoid that the sync client downloads all files again 12 years ago
Bjoern Schiessle 7b1067c2a0 change decryptUnknownKeyfile() to decryptKeyfile(), we always use openssl_seal 12 years ago
Bjoern Schiessle 0bab8935c9 preserve mtime if file gets encrypted/decrypted 12 years ago
Bjoern Schiessle b982868c14 fix array declaration 12 years ago
Bjoern Schiessle 5ba8d38b7f remove old comments, TODos, etc. 12 years ago
Bjoern Schiessle 23e9721644 use OC\Files\View to read encrypted file, so that it also works with external storages 12 years ago
Bjoern Schiessle 2549322763 we need to use the path relative to data/ 12 years ago
Bjoern Schiessle 3640c99462 encrypt/decrypt file versions 12 years ago
Bjoern Schiessle a7a7ef2b3a improved error handling 12 years ago
Bjoern Schiessle b6fa0e4eef working decrypt files method 12 years ago
Björn Schießle 15cb8e4efd only check for external mount points if the external storage app is enabled 12 years ago
Björn Schießle af2cd6f541 always return normalized path 12 years ago
Björn Schießle eb2587a08f move isSystemWideMountPoint() to util.php 12 years ago