From bc0d48cd18baacefa949e15b5b9562b6c75b320d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 9 Feb 2021 19:33:05 +0100 Subject: [PATCH] fixup! Move to AES-256-GCM for openssl_seal/open Signed-off-by: Roeland Jago Douma --- apps/encryption/lib/Crypto/Crypt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php index 3f700e8073fce..313acfa9ffe92 100644 --- a/apps/encryption/lib/Crypto/Crypt.php +++ b/apps/encryption/lib/Crypto/Crypt.php @@ -719,8 +719,8 @@ public function multiKeyEncrypt($plainContent, array $keyFiles) { } return [ - 'keys' => $mappedShareKeys . $iv, - 'data' => $sealed + 'keys' => $mappedShareKeys, + 'data' => $sealed . $iv, ]; } throw new MultiKeyEncryptException('multikeyencryption failed ' . openssl_error_string());