From f132feca53461d235aed6c5947b906f58ba9a80f Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Fri, 3 Nov 2023 13:00:42 +0000 Subject: [PATCH] Fix xor --- cw/cw.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cw/cw.tex b/cw/cw.tex index d3042f4..05bfc69 100644 --- a/cw/cw.tex +++ b/cw/cw.tex @@ -53,8 +53,8 @@ if the message is only one block long: $$H=E$$ $$m\ne m'$$ - $$H(m)=E(K, IV \xor m) = C_1$$ - $$H(m')=E(K, IV \xor m') = C_2$$ + $$H(m)=E(K, IV \oplus m) = C_1$$ + $$H(m')=E(K, IV \oplus m') = C_2$$ And if there the hashing function was not collision resistant that would imply $$C_1=C_2\implies D(C_1)=D(C_2) \impies m=m'$$ and since $m !=m'$ the hash function is collision resistant, for messages with 1 block.