aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/stream
Commit message (Collapse)AuthorAgeFilesLines
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-246-1163/+0
|
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-012-2/+0
|
* Update author informationLukas Reschke2016-03-012-0/+3
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2016-02-191-1/+1
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Use number of chunk for HMAC as wellLukas Reschke2016-02-091-5/+13
| | | | Prevents switching single blocks within the encrypted file.
* fixing unit testsBjörn Schießle2016-02-091-0/+3
|
* make it backward compatible to work with signed and un-signed filesBjörn Schießle2016-02-091-3/+7
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2016-02-051-0/+1
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Happy new year!Thomas Müller2016-01-126-7/+8
|
* Fix overriding function from 3rdparty warningRoeland Jago Douma2015-11-241-2/+2
| | | | Fixes #20648
* Follow the interface againRoeland Jago Douma2015-11-191-0/+9
|
* update licence headers via scriptMorris Jobke2015-10-051-1/+0
|
* Merge pull request #16406 from owncloud/enc-strlenperffixMorris Jobke2015-07-011-1/+1
|\ | | | | Small perf tweak in strlen loop
| * Small perf tweak in strlen loopVincent Petry2015-05-181-1/+1
| |
* | update license headers and authorsMorris Jobke2015-06-251-1/+3
| |
* | flush() comments + perf optjknockaert2015-05-261-5/+7
| |
* | fix calculation of $count, $count is always 8129 so we need to check thisjknockaert2015-05-211-1/+1
| | | | | | | | against the unencrypted file size
* | test to simulate a non-seekable stream wrapperBjoern Schiessle2015-05-211-6/+18
| |
* | encrypted filesize calculation in flush()jknockaert2015-05-211-1/+8
| |
* | fix #16356jknockaert2015-05-181-1/+1
| |
* | fix #15973jknockaert2015-04-301-9/+7
|/ | | Rework of stream_seek handling; there where basically two bugs: 1. seeking to the end of the current file would fail (with SEEK_SET); and 2. if seeking to an undefined position (outside 0,unencryptedSize) then newPosition was not defined. I used the opportunity to simplify the code.
* fall back to the ownCloud default encryption module and aes128 if we read a ↵Bjoern Schiessle2015-04-271-8/+16
| | | | encrypted file without a header
* fix unit testsBjoern Schiessle2015-04-241-4/+10
|
* Update encryption.phpjknockaert2015-04-241-1/+2
|
* fixed namejknockaert2015-04-241-1/+1
|
* Update encryption.phpjknockaert2015-04-241-8/+8
|
* fix encryption header errorjknockaert2015-04-241-13/+16
| | | When moving back the pointer to position 0 (using stream_seek), the pointer on the encrypted stream will be moved to the position immediately after the header. Reading the header again (invoked by stream_read) will cause an error, writing the header again (invoked by stream_write) will corrupt the file. Reading/writing the header should therefore happen when opening the file rather than upon read or write. Note that a side-effect of this PR is that empty files will still get an encryption header; I think that is OK, but it is different from how it was originally implemented.
* Merge pull request #15757 from owncloud/enc-fixfeofforlastblockBjörn Schießle2015-04-221-0/+4
|\ | | | | Fix encryption feof to not return too early
| * Fix encryption feof to not return too earlyVincent Petry2015-04-201-0/+4
| | | | | | | | | | | | | | | | | | | | This is because stream_read will pre-cache the next block which causes feof($this->source) to return true prematurely. So we cannot rely on it. Fixed encryption stream wrapper unit tests to actually simulate 6k/8k blocks to make sure we cover the matching logic. Added two data files with 8192 and 8193 bytes.
* | get dirname from sharePathBjoern Schiessle2015-04-211-1/+1
| |
* | Merge pull request #15636 from owncloud/enc2_performance_improvementBjörn Schießle2015-04-211-3/+2
|\ \ | |/ |/| [encryption2] set size and unencrypted size to zero at the beginning of a write operation
| * set size and unencrypted size to zero on fopenBjoern Schiessle2015-04-201-3/+2
| |
* | if we start writing a file from the beginning, size should start by zero; ↵Bjoern Schiessle2015-04-161-2/+2
|/ | | | result of floor needs to be casted to int in order to compare it with ->size
* fixing license headers - encryption code relatedThomas Müller2015-04-071-14/+14
|
* comment change as it broke unit testsThomas Müller2015-04-071-1/+1
|
* Adjusting count on readjknockaert2015-04-071-1/+2
|
* Fixing encryption stream wrapper seek - thanks @jknockaertjknockaert2015-04-071-0/+3
|
* fixing unit tests for stream wrapperThomas Müller2015-04-071-1/+1
|
* Finally fixing encryption with public shareThomas Müller2015-04-071-1/+1
|
* add helper class accessible for encryption modules to ask for a list of ↵Bjoern Schiessle2015-04-071-1/+8
| | | | users with access to a file, needed to apply the recovery key to all files
* remove unencrypted_size from the cache, size will contain the unencrypted sizeBjoern Schiessle2015-04-071-1/+2
|
* initializing some variables + update size after writing the headersThomas Müller2015-04-071-3/+3
|
* https://github.com/owncloud/core/pull/15305#discussion_r27382305Thomas Müller2015-04-071-0/+2
| | | | | Conflicts: lib/private/files/stream/encryption.php
* initializing some variablesThomas Müller2015-04-071-0/+1
|
* call end() before closing the fileBjoern Schiessle2015-04-071-1/+7
|
* adding unit tests for stream wrapperThomas Müller2015-04-071-13/+18
|
* Applying diff as of https://github.com/owncloud/core/pull/15303jknockaert2015-04-071-24/+46
|
* Merge pull request #15234 from owncloud/encryption2_coreThomas Müller2015-03-261-0/+385
|\ | | | | core part of encryption 2.0
| * implement basic encryption functionallity in core to enable multiple ↵Bjoern Schiessle2015-03-261-0/+385
| | | | | | | | encryption modules
* | Update license headersJenkins for ownCloud2015-03-265-20/+96
|/