aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Stream/Encryption.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix psalm errors related to filesizesCôme Chilliet2023-02-071-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-201-3/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Also update the unencrypted size of files when creating them with empty contentJulius Härtl2022-12-071-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the unencrypted file size when closing streamsJulius Härtl2022-12-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Save encrypted files in binary formatplumbeo2022-05-041-1/+1
| | | | | | | | | | | | | 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>
* Unregister enc stream wrapper for any exceptionVincent Petry2021-08-261-1/+1
| | | | | | | This prevents side effects in tests by properly cleaning up even with expected exceptions. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* [3rdparty] streams-0.7.4Robin Appelman2021-06-101-1/+1
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump icewind/streams from 0.7.1 to 0.7.2Christoph Wurst2020-12-291-8/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cast float to int to avoid invalid scalar argument warningMorris Jobke2020-08-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-12/+4
| | | | | | | | | | | | | | | 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>
* 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-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update Encryption.phpmartink-p2019-06-171-7/+9
| | | | Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
* Update Encryption.phpmartink-p2019-06-171-1/+7
| | | | Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
* Apply suggestions from code reviewmartink-p2019-06-171-5/+5
| | | | | Co-Authored-By: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
* Update Encryption.phpmartink-p2019-06-171-2/+19
| | | | Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
* make file cache updates more robustBjoern Schiessle2018-07-311-2/+17
| | | | | | only update the encrypted version after the write operation is finished and the stream is closed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use better way to determine stream type in encryption stream wrapperRobin Appelman2018-05-011-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use ::class statement instead of stringMorris Jobke2018-01-291-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* only collect detailed access list if it is really neededBjoern Schiessle2017-07-061-1/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+500