Bjoern Schiessle
eb29b2984c
use oc_preferences instead of oc_encryption to store encyption settings
12 years ago
Thomas Müller
17cbfc714a
use phpseclib from 3rdparty
rename class Crypt_Blowfish to Legacy_Crypt_Blowfish
12 years ago
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
12 years ago
Robin McCorkell
c4f1de63a8
Fix PHPDoc in /apps
12 years ago
Thomas Müller
58857b8df5
@returns -> @return
12 years ago
Scott Arciszewski
09cc020535
Update crypt.php
Use a 256-bit random value
12 years ago
Scott Arciszewski
36da3bc359
Update crypt.php
A 1024 kilobyte key would be obnoxiously slow to operate on. I'm assuming you meant 1024-bit?
Also, 183 bytes = 1464 bits.
Here's a safe alternative: 2048 bits, with comment-code sanity
12 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
12 years ago
Bjoern Schiessle
39d710e737
block file access if share keys are missing
12 years ago
Owen Winkler
9a263a500a
Employ config option for OpenSSL config file, if provided.
This should help make OpenSSL configuration on Windows servers easier by allowing the openssl.cnf file to be set directly in the ownCloud config, rather than in SetEnv commands that don't exist and are hard to replicate in IIS.
12 years ago
Owen Winkler
fb34f49913
Start a branch for easier OpenSSL configuration.
12 years ago
Andreas Fischer
83afb46205
Use __DIR__ instead of dirname(__FILE__).
This is possible because we require PHP 5.3 or higher.
12 years ago
Andreas Fischer
9753e44ac2
Do not use realpath() on includes.
If the file does not exist, realpath() returns false and "include false;"
produces "Failed opening '' for inclusion" which is a useless error message.
'include' works just fine with symlinks, "./" and "../".
12 years ago
Bjoern Schiessle
7adfc27caf
remove whitespaces and some leftover code from testing
12 years ago
Thomas Müller
c458e785a1
fixing typos and PHPDoc
12 years ago
Bjoern Schiessle
512f98cac9
remove todo item
12 years ago
Bjoern Schiessle
b39d2d1938
more error messages which might be useful for the user to debug his server config
13 years ago
Bjoern Schiessle
97e910e087
make methods private which are not used from outside
12 years ago
Bjoern Schiessle
a6ced6b53f
remove unused method, the right one is in util.php
13 years ago
Björn Schießle
e15e394fcc
add ajax call to decrypt all files
Conflicts:
apps/files_encryption/lib/crypt.php
13 years ago
Björn Schießle
5a20c8b66f
add openssl_error_string() output to the owncloud.log
13 years ago
Björn Schießle
fe61230cc1
always have a defined return value
13 years ago
Björn Schießle
e2e370f199
some more error messages
13 years ago
Björn Schießle
83d98e2d8b
add some more error messages, in case something went wrong
13 years ago
Florin Peter
35da408222
fix memory problems as reported at #3620
13 years ago
Florin Peter
dc8bcf0688
reformat code
13 years ago
Björn Schießle
471d2b732c
introduce decryptPrivateKey() method which also checks if the result is a valid private key to avoid additional checks on various places
13 years ago
Florin Peter
46e5e9bd73
cleanup unused method legacyKeyRecryptKeyfile
13 years ago
Florin Peter
986e9dd362
use legacyDecrypt to decrypt key file like the previous files_encryption
13 years ago
Florin Peter
e1e1c58969
changed to public log api
13 years ago
Florin Peter
7224fc98b2
replace == with === and replace != with !==
13 years ago
Björn Schießle
4c05259ccf
legacyBlockDecryprt() needs to be public
13 years ago
Björn Schießle
df22a7c495
make legacyDecrypt() private als always call legacyBlockDecrypt() from other classes
13 years ago
Björn Schießle
8b35578833
fix migration from old to new encryption
13 years ago
Florin Peter
5d32e214b7
reformat code
13 years ago
Björn Schießle
1a3f7891ea
remove unused varaibles
13 years ago
Florin Peter
6c8de5ae6d
fixes after review from @DeepDiver1975
13 years ago
Björn Schießle
9d324db054
fix path to 3rdparty apps
13 years ago
Björn Schießle
64591cf754
move 3rdparty dependencies to app
13 years ago
Florin Peter
3b850a2524
reformat code added and changed phpdoc
13 years ago
Florin Peter
3aa48616a6
remove unused code
13 years ago
Florin Peter
cea9208cec
fix broken legacy tests
13 years ago
Björn Schießle
eaa61b8539
fix migration to new encryption
13 years ago
Björn Schießle
93771f735b
gremove unused code
13 years ago
Björn Schießle
ca6a77d39b
upgrade from old encryption to the new one needs to generate share keys too
13 years ago
Björn Schießle
5b160edebb
check if the user knows the correct recovery password before changing the recovery key settings
13 years ago
Sam Tuke
c1f1fbda08
Fixed stream wrapper bugs
Switched encryptAll() to use stream-based instead of file-at-a-time encryption
Development snapshot
13 years ago
Björn Schießle
e65e6a12f1
define key size in constructor, otherwise the key size will depend on the servers openssl conf
13 years ago
Sam Tuke
69bc42f920
Deleting encrypted files with missing keyfiles/shareKeys now succeeds
13 years ago
Sam Tuke
4550ae6a69
Shared encrypted files now readable by both sharer and sharee
13 years ago