FIXME use default RC4 method
* We should pick better default method! Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b668850aa1
commit
b3037dee6a
|
@ -677,7 +677,7 @@ class Crypt {
|
||||||
throw new MultiKeyDecryptException('Cannot multikey decrypt empty plain content');
|
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;
|
return $plainContent;
|
||||||
} else {
|
} else {
|
||||||
throw new MultiKeyDecryptException('multikeydecrypt with share key failed:' . openssl_error_string());
|
throw new MultiKeyDecryptException('multikeydecrypt with share key failed:' . openssl_error_string());
|
||||||
|
@ -702,7 +702,7 @@ class Crypt {
|
||||||
$shareKeys = [];
|
$shareKeys = [];
|
||||||
$mappedShareKeys = [];
|
$mappedShareKeys = [];
|
||||||
|
|
||||||
if (openssl_seal($plainContent, $sealed, $shareKeys, $keyFiles)) {
|
if (openssl_seal($plainContent, $sealed, $shareKeys, $keyFiles, 'RC4')) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
// Ensure each shareKey is labelled with its corresponding key id
|
// Ensure each shareKey is labelled with its corresponding key id
|
||||||
|
|
Loading…
Reference in New Issue