Understanding MAC with Block Cipher & Initialization Vector

  • Thread starter Thread starter ranell
  • Start date Start date
  • Tags Tags
    Mac
AI Thread Summary
The discussion revolves around the concept of Message Authentication Codes (MAC) using block ciphers and initialization vectors (IV). It highlights that the MAC remains unchanged if specific portions of the message do not change, particularly focusing on how the MAC is affected by XOR operations with the IV. Two examples are provided, but it is clarified that the MACs will differ due to different values of x1, despite having some identical portions in the messages. The conversation also seeks recommendations for reliable resources on MAC, with a suggestion to refer to Stinson's book. Overall, the key takeaway is the importance of the initialization vector and message portions in determining the MAC.
ranell
Messages
6
Reaction score
0
hello,
i have a part of my courses that i don't understand :(
mac with bloc cipher and initially a vector of initialisation.

"m=x1||x2||...xn
mac k(m) doe's not change if iv xor x1 doe's not change
mac k(m) doe's not change if x2 doe's not change
.
.
.
mac k(m) doe's not change if xn doe's not change

we have two exemple:
m=0011
m=x1||x2
x1=00
x2=11
and

m'=1111
m'=x'1||x'2
x'1=11
x'2=11
if that mean that the two message have the same mac because we have the same portion x2=x'2?
thanks for answering and sorry for my english!
:)
 
Mathematics news on Phys.org
Message block x1 is XOR'ed with what? I can't understand it from your post.
 
x1 xor with iv
iv = vector of initialization
sorry if it's not clear :s
thanks for your attention :)
 
Then the MAC of the two examples will depend of the initialization vector; from your description, they will depend of x1 XOR iv and x'1 XOR iv.
 
they have the same iv and the same key of mac :)
 
because there are at least one same portion in the two message?
 
My apologies: there's a error in my previous post (I misread the first block): the MAC's will be different, because x1 = 00 and x'1 = 11, so when they are both XORed with Iv, this will give different results, resulting in distinct MAC's.
 
thanks, but i have many contradiction in my courses,i have understanded that they will be the same.
please, have you a link from a good document concerning mac?
thank you very much :)
 
  • #10
thank you :)
i have found this in the net in the attatchment.
why x1i must be different of x1j
please help me cannot understand this :((
 

Attachments

  • ss.JPG
    ss.JPG
    78.4 KB · Views: 444
Back
Top