diff options
author | Brett McLarnon <bmclarnon@google.com> | 2024-04-03 10:33:21 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-04-03 10:34:20 -0700 |
commit | a101dcc684fec2776cc3036d51230508ca50760f (patch) | |
tree | 9dce01ea8bfc9c8c735bd47ea2d3b50933dfc64c | |
parent | f0e5b565040fb6542bc3c952a840ac53fd72868f (diff) | |
download | federated-compute-a101dcc684fec2776cc3036d51230508ca50760f.tar.gz |
Add compression information to fcp.confidentialcompute.Record.
This matches the compression information in
fcp.confidentialcompute.AggregationClientPayloadHeader, but uses a separate
enum to ensure that the client->server and PipelineTransform interfaces can
evolve independently if needed.
PiperOrigin-RevId: 621568697
-rw-r--r-- | fcp/protos/confidentialcompute/pipeline_transform.proto | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fcp/protos/confidentialcompute/pipeline_transform.proto b/fcp/protos/confidentialcompute/pipeline_transform.proto index 4c4b64a..a40b19f 100644 --- a/fcp/protos/confidentialcompute/pipeline_transform.proto +++ b/fcp/protos/confidentialcompute/pipeline_transform.proto @@ -121,6 +121,18 @@ message Record { HpkePlusAeadData hpke_plus_aead_data = 2; } + // Describes the type of data-unaware compression that has been applied prior + // to any encryption. + enum CompressionType { + COMPRESSION_TYPE_UNSPECIFIED = 0; + // No compression was applied. + COMPRESSION_TYPE_NONE = 1; + // GZIP compression was applied. + COMPRESSION_TYPE_GZIP = 2; + } + + CompressionType compression_type = 3; + // Information about plaintext encrypted with AEAD, with the symmetric key // then encrypted with HPKE. message HpkePlusAeadData { |