Browse Source

Protobufs for optimizing encryption of multiple form fields

Miti Mazmudar 4 years ago
parent
commit
8e9ae8c965
2 changed files with 19 additions and 22 deletions
  1. 19 0
      PostLAMessages.proto
  2. 0 22
      ProtobufLAMessages.proto

+ 19 - 0
PostLAMessages.proto

@@ -0,0 +1,19 @@
+syntax = "proto3";
+option optimize_for = LITE_RUNTIME;
+
+message ciphertext_client_data_field {
+    repeated bytes bytes = 1 [packed=true];
+}
+
+message extension_to_decryptor_enclosed_msg {
+    repeated bytes ciphertext_client_public_key = 1 [packed=true];
+    repeated ciphertext_client_data_field ciphertext_fields = 2;
+}
+
+message extension_to_decryptor_ciphertext_msg {
+    repeated bytes byte = 1 [packed=true];
+}
+
+message decryptor_to_extension_msg_t {
+    repeated ciphertext_client_data_field ciphertext_fields= 1;
+}

+ 0 - 22
ProtobufLAMessages.proto

@@ -16,28 +16,6 @@ option optimize_for = LITE_RUNTIME;
 
 // Only have base classes for those structs in the composite structs that have more than 1 element - this causes a significant reduction in the size of the generated .cc and .h files.
 
-/*
-message protobuf_sgx_cpu_svn_t {
-  repeated uint32 svn = 1 [packed=true];
-}
-
-message protobuf_sgx_report_data_t {
-  repeated uint32 d = 1 [packed=true];
-}
-
-message protobuf_sgx_key_id_t {
-  repeated uint32 id = 1 [packed=true];
-}
-
-message protobuf_sgx_mac_t {
-  repeated uint32 mac = 1 [packed=true];
-}
-
-message protobuf_sgx_measurement_t {
-  repeated uint32 m = 1 [packed=true];
-}
-*/
-
 message  protobuf_sgx_attributes_t {
   required uint64 flags = 1;
   required uint64 xfrm = 2;