Skip to content

Commit

Permalink
Read in base64 encoded keys
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Oct 21, 2022
1 parent 52b0eee commit fabfa26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/private/Files/ObjectStore/S3ConnectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,11 @@ protected function getSSECParameters(): array {
return [];
}

$rawKey = base64_decode($key);
return [
'SSECustomerAlgorithm' => 'AES256',
'SSECustomerKey' => $key,
'SSECustomerKeyMD5' => md5($key, true)
'SSECustomerKey' => $rawKey,
'SSECustomerKeyMD5' => md5($rawKey, true)
];
}
}

0 comments on commit fabfa26

Please sign in to comment.