Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 лет назад
Roeland Jago Douma
8928bbe969
Make legacy cipher opt in
* Systems that upgrade have this enabled by default
* New systems disable it
* We'll have to add some wargning in the setup checks if this is enabled
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 лет назад
Morris Jobke
234b510652
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 лет назад
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>
4 лет назад
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Roeland Jago Douma
3a7cf40aaa
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 лет назад
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 лет назад
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>
4 лет назад
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 лет назад
Morris Jobke
c733cdaa65
Use ::class in test mocks of encryption app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 лет назад
Morris Jobke
43e498844e
Use ::class in test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 лет назад
Bjoern Schiessle
9ce32d9941
always throw a encryption exception
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 лет назад
Roeland Jago Douma
0c154c1ed7
Fix getMock encryption
7 лет назад
Joas Schilling
813f0a0f40
Fix apps/
7 лет назад
Lukas Reschke
aba539703c
Update license headers
8 лет назад
Joas Schilling
4a3311f430
Move Encryption app to PSR-4 (#24524)
* Move Encryption to PSR-4
* Move encryption tests to PSR-4
* Fix the tests
8 лет назад
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
8 лет назад
Björn Schießle
9bb97c714b
fixing unit tests
8 лет назад
Björn Schießle
40a5ba72fc
sign all encrypted blocks and check signature on decrypt
8 лет назад
Lukas Reschke
d25b8dacb3
Use AES-256-CTR as default
CTR is recommended over CFB mode.
8 лет назад
Thomas Müller
682821c71e
Happy new year!
8 лет назад
Morris Jobke
b945d71384
update licence headers via script
8 лет назад
Bjoern Schiessle
166e57cf61
return false if private key is not valid
8 лет назад
Bjoern Schiessle
62bc0e5264
use password hash instead of the plain password to encrypt the private key
8 лет назад
Morris Jobke
f63915d0c8
update license headers and authors
9 лет назад
Joas Schilling
d3e3a84cae
Move the helpful method to the TestCase class
9 лет назад
Joas Schilling
4a6808a0f4
Simplify the test
9 лет назад
Bjoern Schiessle
d1fa3c6b32
add unit test for crypt.php
9 лет назад