aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-23 18:04:24 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-27 10:15:17 +0100
commita12153ad282b6d939b205191b2ee19671894428c (patch)
tree32314afccdf0814a02ff455b337d9fe73deeb499 /src/model
parentbc50a667e81c09113daee0dedcbd56bdfd20641e (diff)
downloadgarage-a12153ad282b6d939b205191b2ee19671894428c.tar.gz
garage-a12153ad282b6d939b205191b2ee19671894428c.zip
[sse-c] first code to handle encryption parameters and header encdec
Diffstat (limited to 'src/model')
-rw-r--r--src/model/s3/object_table.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/s3/object_table.rs b/src/model/s3/object_table.rs
index 91f83419..20824e8d 100644
--- a/src/model/s3/object_table.rs
+++ b/src/model/s3/object_table.rs
@@ -285,7 +285,8 @@ mod v010 {
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Debug, Serialize, Deserialize)]
pub enum ObjectVersionEncryption {
SseC {
- /// Encrypted serialized ObjectVersionHeaders struct
+ /// Encrypted serialized ObjectVersionHeaders struct.
+ /// This is never compressed, just encrypted using AES256-GCM.
#[serde(with = "serde_bytes")]
headers: Vec<u8>,
/// Whether data blocks are compressed in addition to being encrypted