Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 452

Cipher Block Chaining MAC (CBC-MAC) is a method of building a message authentication code from a block-cipher.

5 votes
Accepted

Is XCBC where k2 and k3 might be the identical, secure?

If key 2 and key 3 has a nonnegligible chance to be the same, then the attacker has a nonnegligible chance of being able to generate a valid (Message, MAC) pair. Here's how it works, if the message i …
poncho's user avatar
  • 151k
0 votes
Accepted

First block as initialization vector in the CBC-MAC

My question is, if the first block is used as IV, then is it secure (unforgeable), and why? Suppose with this scheme, you have the MAC for the message $[m_1, m_2, m_3]$. Could someone without th …
poncho's user avatar
  • 151k
1 vote

Given the CBC-MAC for a message M and the key K, How could I forge a new message M' so that ...

Can I create a new message M' which would have the same CBC-MAC? Sure can. On the other hand, you're learning, and I believe you learn better by figuring out it yourself, and so I'll just give a hin …
poncho's user avatar
  • 151k
7 votes
Accepted

What block cipher is used for CBC-MAC?

Well, yes, it does matter; however the terminology 'CBC-MAC' does not specify which. CBC-MAC is a generic construction that takes an arbitrary block cipher, and turns it into an object that acts like …
poncho's user avatar
  • 151k
1 vote
Accepted

Forge CBC-MAC by creating a new message, given the MAC of two messages

That doesn't look likely. Given $\text{CBC-MAC}(d||e) = y$, we know that, saying at the initial IV state of $0$, then processing the blocks $d$ and $e$ gives us $y$; that doesn't say where we end up …
poncho's user avatar
  • 151k
4 votes

Cipher based message authentication (CMAC) and block reordering

No, CMAC is not susceptible to block reordering. Unlike CBC, the attacker does not see the values of the intermediate encryptions (and because of the tweak applied to the last block, he can't find th …
poncho's user avatar
  • 151k
1 vote

changing messages for authentication without the tag changed. (CBC-MAC)

Actually, even if the IV is fixed (say, to the all-zero value), then it is still possible to find a second message that has the same CBC-MAC, even if you don't know the key. Suppose you have a message …
poncho's user avatar
  • 151k
1 vote

What is the use of Additional data or associated data in AESGcm. How it is used while encryp...

Can anybody explain these different fields in both the algorithms and their usage. Both these fields are designed to detect it if someone in the middle tries to play games with the encrypted data. …
poncho's user avatar
  • 151k
5 votes
Accepted

encryption of digest of unkeyed hash function is susceptible to forgery?

An attacker can trivial forge the MAC of any message, given one valid MAC of a known message, in either CBC mode or CTR mode. Let us assume that the attacker knows a message $m$ and its MAC $E(k, H(m …
poncho's user avatar
  • 151k
3 votes
Accepted

CBC-MAC for Arbitrary Length Messages

That is, why is the scheme insecure if we compute the output tag $t'$ using $F_{k_1}$? Computing $F_{k_1}( \text{CBCMAC}_{k_1}(M))$ is precisely equivalent to taking the padded message $M$, appen …
poncho's user avatar
  • 151k
2 votes
Accepted

Putty PPK Encryption Questions (or AES-CBC)

Actually, PuTTY derives both the AES key and the IV (and the HMAC key) from the passphrase; because the decryptor also knows the passphrase, he can recover the IV along with the AES/HMAC keys. This is …
poncho's user avatar
  • 151k
2 votes
Accepted

Is it safe to use the CBC-MAC as a Initial Vector and Key Check Value in deterministic encry...

Am I thinking correctly and will an malicious user (which has access to encryption keys) not (or very hard) be able to generate a collision in my IV-ciphertext combination so that the server is group …
poncho's user avatar
  • 151k
4 votes
Accepted

CBC-MAC key can be added to ciphertext?

From the sound of your questions, it almost appears that you have some confusion between the CBC-MAC key and the CBC-MAC tag. The CBC-MAC algorithm takes the message (in this case, most likely the ci …
poncho's user avatar
  • 151k
1 vote
Accepted

The attacker model of the Lucky13 attack in TLS

Can a passive adversary perform Lucky13? No. The attacker must have the capability to inject chosen ciphertexts into the stream. A passive adversary (who listens into the encrypted traffic but …
poncho's user avatar
  • 151k