aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/Crypto/Encryption.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Autodetect legacy filekey instead of trusting the header for legacy headerCôme Chilliet2024-06-041-16/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-30/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Migrate away from ILogger in encryptionCôme Chilliet2023-08-081-61/+15
| | | | | | And modernize code a bit Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix sharing of encrypted filesCôme Chilliet2023-07-181-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Log failures to delete legacy file keyCôme Chilliet2023-05-041-1/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix encryption file key managementCôme Chilliet2023-03-171-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Adapt code to new encryption systemCôme Chilliet2023-03-171-12/+16
| | | | | | | | | fileKey gets deleted upon save as it’s stored in shareKeys instead now. We use presence of a fileKey to detect if a file is using the legacy system or the new one, because we do not always have access to header data. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Getting rid of openssl_seal and rc4 in server side encryptionCôme Chilliet2023-03-171-10/+19
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Save encrypted files in binary formatplumbeo2022-05-041-15/+35
| | | | | | | | | | | | | Default to the more space-efficient binary encoding for newly encrypted files instead of the traditional base64 encoding, eliminating the 33% overhead. The new option 'encryption.use_legacy_encoding' allows to force the legacy encoding format if needed. Files encoded in the old format remain readable. Based on https://github.com/owncloud/encryption/pull/224 and https://github.com/owncloud/core/pull/38249 by karakayasemi. Signed-off-by: plumbeo <plumbeo@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Unify spellingValdnet2021-05-201-3/+3
| | | Spelling unification in Nextcloud applications.
* getStorage can also return nullRobin Appelman2021-03-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* The encryption decrypt position can be int or stringChristoph Wurst2020-10-131-1/+1
| | | | | | | The public API said string, internally we treated it as int. In reality both are used. Let's reflect that in the documented argument type. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Encryption is ready if master key is enabledJulius Härtl2020-07-211-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-10/+2
| | | | | | | | | | | | | | | 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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* make file cache updates more robustBjoern Schiessle2018-07-311-1/+0
| | | | | | only update the encrypted version after the write operation is finished and the stream is closed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix comparisons in encryption appJoas Schilling2017-08-011-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* make sure that we always have a ownerBjoern Schiessle2017-07-201-4/+17
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add recovery key on public uploadBjoern Schiessle2017-07-201-2/+8
| | | | | | | | 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>
* only collect detailed access list if it is really neededBjoern Schiessle2017-07-061-0/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update comments to NextcloudMorris Jobke2017-04-111-1/+1
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check if session is initializedBjoern Schiessle2016-11-231-0/+8
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Move Encryption app to PSR-4 (#24524)Joas Schilling2016-05-121-0/+563
* Move Encryption to PSR-4 * Move encryption tests to PSR-4 * Fix the tests