removed manditory encryption header

This commit is contained in:
Jazz Turner-Baggs 2025-06-25 15:12:50 -07:00
parent d51c500ce4
commit 5fd32881e4
No known key found for this signature in database
2 changed files with 25 additions and 26 deletions

View File

@ -24,35 +24,10 @@ message ReliabilityInfo {
///////////////////////////////////////////////////////////////////////////////
// TODO: This also encompasses plaintexts, is there a better name?
// Alternatives: ???
message EncryptedBytes {
oneof encryption {
bytes encrypted_bytes=1;
Plaintext plaintext = 2;
Ecies ecies = 3;
}
message Ecies {
bytes encrypted_bytes=1;
bytes ephemeral_pubkey = 2;
bytes tag = 3;
}
message Plaintext {
bytes payload=1;
}
}
message UmbraEnvelopeV1 {
string conversation_hint = 1;
uint32 nonce = 2;
EncryptedBytes encrypted_bytes = 100;
bytes encrypted_bytes = 100;
}

View File

@ -0,0 +1,24 @@
syntax = "proto3";
package umbra.encryption;
message Plaintext {
bytes payload=1;
}
message Ecies {
bytes encrypted_bytes=1;
bytes ephemeral_pubkey = 2;
bytes tag = 3;
}
// TODO: This also encompasses plaintexts, is there a better name?
// Alternatives: ???
message EncryptedBytes {
oneof encryption {
Plaintext plaintext = 1;
Ecies ecies = 2;
}
}