Skip to content
Snippets Groups Projects
Unverified Commit b3037dee authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

FIXME use default RC4 method


* We should pick better default method!

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent b668850a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment