Thomas Müller
8628d57b2c
Move console command registration to info.xml for encryption as well as files_external
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
10 years ago
Joas Schilling
5e5e5b77d5
Fix encryption app
10 years ago
Arthur Schiwon
14ddf9d923
rename IAdmin to ISettings, the interface is not bound to a specific settings scope
10 years ago
Arthur Schiwon
f3b15a9ab9
fixes, improvements, and another app:
* setupSettings now also triggered on enable
* fixes detection of present admin section or settings in the DB
* add update routine in such cases
* encryption app migrated
10 years ago
Joas Schilling
352e8b3c79
More casing
10 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Morris Jobke
e7e0dc608b
fix strings
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Björn Schießle
0f728b4cd1
don't fail on "bad signature" during login. Most likely this happens because
the login password changed at the user back-end (e.g ldap). Such failures will
be handled after login correctly by allowing the user to adjust the passwords
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
Bjoern Schiessle
d86f8ba5f8
if we don't have a encrypted file key we can return a empty string right away
10 years ago
Bjoern Schiessle
088ffd05d7
don't create a private-/public-key pair for each user if the master key is enabled
10 years ago
Thomas Müller
50e20e531e
Introduce isReadyForUser and verify in file transfer ownership - fixes #23786
10 years ago
Bjoern Schiessle
89223379ad
replaceUserKeys() actually deletes the users keys -> update method name and doc-block
10 years ago
Bjoern Schiessle
5e267589d4
only create and update user specific key if no master key is enabled
10 years ago
Bjoern Schiessle
9de4a8338e
allow group shares, even if not all public keys are available
10 years ago
Lukas Reschke
3a5f58c9b0
Fallback for crappy ancient distributions
Fixes https://github.com/owncloud/core/issues/23181
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Bjoern Schiessle
95ea2ccb53
make decrypt all work with the master key
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
Vincent Petry
45c78476f5
Use cache update instead of put for encryption version
Saves a call to fetch the file id which didn't even work for a reason.
This fix properly sets the version in the database.
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
Lukas Reschke
d5c1596887
Clarify documentation
10 years ago
Lukas Reschke
3b62459c41
Use hash with appended "a" of the original password for the authentication
10 years ago
Björn Schießle
9bb97c714b
fixing unit tests
10 years ago
Lukas Reschke
b9ff16498b
Use random_bytes instead OpenSSL
10 years ago
Björn Schießle
61dd191253
meta data are at the end 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
Lukas Reschke
db8f267647
Add note about the addPadding function
10 years ago
Lukas Reschke
59ebad0b53
Use an actual 16 byte long IV
The previous IV was actually 12 byte extended to 16 byte using base64. As the encrypted file should be fine with containing binary data as well we can simply remove the encoding like that here.
10 years ago
Lukas Reschke
d25b8dacb3
Use AES-256-CTR as default
CTR is recommended over CFB mode.
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Roeland Jago Douma
876fb83ddc
getMediumStrengthGenerator is deprecated and does not do anything anymore
10 years ago
Björn Schießle
46f6c289ca
only use master key ID if a user is logged in. Otherwise keep the public link share key
10 years ago
Lukas Reschke
0654d37da8
Remove undefined variable
10 years ago
Lukas Reschke
00a01a8de2
Fix PHPDoc + Add handling for error cases
Makes static code analyzers happier.
10 years ago
Lukas Reschke
f3360d51c6
Use PHP polyfills
10 years ago
Thomas Müller
eebe2b9c23
User IUser::getEMailAddress() all over the place
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
Robin Appelman
b025f07fb7
Make Cache\Updater per storage
10 years ago