Score:1

AES-CBC-MAC forgery attack

cx flag

I have a CBC-MAC scheme using AES as the block cipher (T=H_K1(M)), which gives me a tag and a stream cipher using another key and a nonce, which gives me a cryptotext (C=E_K2(N,M)). So my question is based on a known-plaintext attack to create a valid (ciphertext, nonce, tag)-tuple. I already figured out how I can create a new message to get the same tag with a given pair (M,T):

M1 = M xor T => T = H_K1(M) = H_K1(M||M1)

Then I already figured out that I can get the keystream of a given (message, nonce, ciphertext, tag)-tuple:

KS = M xor C

But now I don't get it, how I can create another valid (nonce, ciphertext, tag)-tuple with these information.

Thanks for any ideas in advance.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.