diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-03 16:31:02 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-07 15:44:04 +0100 |
commit | b3037dee6a578254161fa96766d77bf8d007b55c (patch) | |
tree | 7850b080d7df324065154222a7f80a2daa642775 /apps/encryption/lib | |
parent | b668850aa16a73a1c93e9caab46627ef25e9369c (diff) | |
download | nextcloud-server-b3037dee6a578254161fa96766d77bf8d007b55c.tar.gz nextcloud-server-b3037dee6a578254161fa96766d77bf8d007b55c.zip |
FIXME use default RC4 method
* We should pick better default method!
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r-- | apps/encryption/lib/Crypto/Crypt.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php index 94979bde866..2ba30425c7f 100644 --- a/apps/encryption/lib/Crypto/Crypt.php +++ b/apps/encryption/lib/Crypto/Crypt.php @@ -677,7 +677,7 @@ class Crypt { throw new MultiKeyDecryptException('Cannot multikey decrypt empty plain content'); } - if (openssl_open($encKeyFile, $plainContent, $shareKey, $privateKey)) { + if (openssl_open($encKeyFile, $plainContent, $shareKey, $privateKey, 'RC4')) { return $plainContent; } else { throw new MultiKeyDecryptException('multikeydecrypt with share key failed:' . openssl_error_string()); @@ -702,7 +702,7 @@ class Crypt { $shareKeys = []; $mappedShareKeys = []; - if (openssl_seal($plainContent, $sealed, $shareKeys, $keyFiles)) { + if (openssl_seal($plainContent, $sealed, $shareKeys, $keyFiles, 'RC4')) { $i = 0; // Ensure each shareKey is labelled with its corresponding key id |