From b42cb376c32ef4182d3e7f405f50dde2641e85b0 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 14 Dec 2016 15:51:43 +0100 Subject: Reworks the protocol to be tag attack resistant. --- libcmix-protobuf/cmix.proto | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'libcmix-protobuf') diff --git a/libcmix-protobuf/cmix.proto b/libcmix-protobuf/cmix.proto index 2af20bc..07e8721 100644 --- a/libcmix-protobuf/cmix.proto +++ b/libcmix-protobuf/cmix.proto @@ -50,6 +50,14 @@ message PreMix { message PrePost { repeated bytes r_EPiRS = 1; repeated bytes m_EPiRS = 2; + repeated bytes decryption_commitments = 3; + bytes ciphertext_commitment = 4; +} + +message Commitments { + repeated bytes m_EPiRS = 1; + repeated bytes decryption_commitments = 2; + bytes ciphertext_commitment = 3; } message RealPre { @@ -61,6 +69,11 @@ message RealMix { repeated bytes m = 2; } +message RealPost { + bytes PiMRS_commitment = 1; + repeated bytes m_epirs = 2; +} + message Payload { bytes payload = 1; } @@ -86,9 +99,11 @@ message CMixMessage { PrePre prepre = 9; PreMix premix = 10; PrePost prepost = 11; - RealPre realpre = 12; - RealMix realmix = 13; - Payload payload = 14; - Performance performance = 15; + Commitments commitments = 12; + RealPre realpre = 13; + RealMix realmix = 14; + RealPost realpost = 15; + Payload payload = 16; + Performance performance = 17; } } -- cgit v1.2.3-70-g09d2