Understanding MAC with Block Cipher & Initialization Vector

  • Context: Graduate 
  • Thread starter Thread starter ranell
  • Start date Start date
  • Tags Tags
    Mac
Click For Summary

Discussion Overview

The discussion revolves around the concept of Message Authentication Codes (MAC) using block ciphers and initialization vectors (IV). Participants explore the implications of changing message blocks and initialization vectors on the resulting MAC values, seeking clarity on how these elements interact.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant presents a scenario where the MAC remains unchanged if certain message blocks do not change, raising questions about the role of the initialization vector.
  • Another participant asks for clarification on what the message block is XOR'ed with, indicating confusion about the process.
  • A participant clarifies that the message block x1 is XOR'ed with the initialization vector (IV), but acknowledges that the explanation may not be clear.
  • It is suggested that the MAC will depend on both the initialization vector and the specific message blocks being used, leading to different MACs if the blocks differ.
  • One participant asserts that the MACs will be different due to differing values of x1, despite having the same IV and key, correcting an earlier misunderstanding.
  • Another participant expresses confusion about contradictions in their course material and requests additional resources for better understanding.
  • A source is recommended for further reading on the topic, although the availability of quality online resources is questioned.
  • A participant expresses difficulty in understanding why certain message blocks must differ, indicating ongoing confusion about the topic.

Areas of Agreement / Disagreement

Participants demonstrate disagreement regarding whether the MACs will remain the same or differ based on the initialization vector and message blocks. Some believe they will be the same under certain conditions, while others argue they will differ due to changes in the message blocks.

Contextual Notes

There are unresolved questions about the specific conditions under which MACs change, as well as the implications of using different initialization vectors and message blocks. The discussion reflects a lack of consensus on these technical details.

Who May Find This Useful

Students and practitioners interested in cryptography, particularly those studying message authentication codes and their implementation using block ciphers.

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: 464

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 50 ·
2
Replies
50
Views
5K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K