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