Julius Härtl
fc1596fada
Encryption is ready if master key is enabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6 years ago
Christoph Wurst
28f8eb5dba
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Bjoern Schiessle
a9e22c5f1c
make file cache updates more robust
only update the encrypted version after the write operation is finished and the stream is closed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Joas Schilling
0ebdf871e0
Fix comparisons in encryption app
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Bjoern Schiessle
473824fa06
make sure that we always have a owner
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
20a6b22db6
Add recovery key on public upload
In order to decide if a recovery key needs to be added we always
need to check the files owner settings and not the settings of
the currently logged in user.
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
da51ec38f4
only collect detailed access list if it is really needed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Morris Jobke
1729e4471f
Update comments to Nextcloud
* based on PR by @Ardinis
* see #4311
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Bjoern Schiessle
8a401ee156
check if session is initialized
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
4a3311f430
Move Encryption app to PSR-4 ( #24524 )
* Move Encryption to PSR-4
* Move encryption tests to PSR-4
* Fix the tests
10 years ago
Thomas Müller
50e20e531e
Introduce isReadyForUser and verify in file transfer ownership - fixes #23786
10 years ago
Bjoern Schiessle
9de4a8338e
allow group shares, even if not all public keys are available
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Bjoern Schiessle
9dc759b4dc
remember signature version and only set it on update to make sure that other
apps like files_versions still get the old signature version
10 years ago
Bjoern Schiessle
43ed86313c
use the version of the original file if we write the part file to have a proper version if we move the file over to the original location
10 years ago
Lukas Reschke
6724f76573
Use cache and add tests
10 years ago
Bjoern Schiessle
377d7fb8a8
don't decrease ->version for part files but only a local variable, otherwise it can happen that we decrease it twice and end up with the wrong value
10 years ago
Bjoern Schiessle
966eb4b084
realPath should contain the path to the file we want to read, e.g. the version and not the original file
10 years ago
Lukas Reschke
5ccb9dfa7e
Use database for keeping track of the version
10 years ago
Lukas Reschke
3badf5caf5
Use number of chunk for HMAC as well
Prevents switching single blocks within the encrypted file.
10 years ago
Lukas Reschke
b5824f024a
Keep track of file version
This way it is not possible anymore for an external storage admin to put up old versions of the file.
10 years ago
Björn Schießle
e7ff84df5c
always use default cipher for write operations, no matter how the file was encrypted before
10 years ago
Björn Schießle
cf3a8f274f
make it backward compatible to work with signed and un-signed files
10 years ago
Björn Schießle
40a5ba72fc
sign all encrypted blocks and check signature on decrypt
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Scrutinizer Auto-Fixer
be4c3a8b56
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
10 years ago
Bjoern Schiessle
5fad45b230
make encryption configurable for home storage
11 years ago
Morris Jobke
b945d71384
update licence headers via script
11 years ago
Bjoern Schiessle
9bd4f2d41e
occ script to disable encryption and to decrypt all files again
11 years ago
Lukas Reschke
7953cc9494
Function does return void
This function does return void and not a bool.
11 years ago
Bjoern Schiessle
acfc7d7c4d
enable usage of a master key
11 years ago
Bjoern Schiessle
8c08dd0ac2
occ tool to encrypt all files
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Bjoern Schiessle
d743d6d356
add hint to exception
11 years ago
Bjoern Schiessle
5549641f1f
improve error messages displayed to the user
11 years ago
Joas Schilling
30d165ebf2
Add missing import for the exception
11 years ago
Bjoern Schiessle
7676166254
add l10n to constructor
11 years ago
Bjoern Schiessle
7d492fefae
also encrypt files in trash bin
11 years ago
Bjoern Schiessle
887be709f5
a new approach to display the error message
11 years ago
Jan-Christoph Borchardt
35292eb66c
rename to 'Default encryption module'
11 years ago
Joas Schilling
4a6808a0f4
Simplify the test
11 years ago