Score:0

Can attacker create encryption of message m XOR 1^n given the ciphertext c, in nonce-based counter mode?

vi flag

The following question is from Stanford cryptography course final exam paper.

Suppose an attacker intercepts a ciphertext c which is the encryption of a message m ε {0, 1}^n under nonce-based counter mode. Can the attacker create the encryption of m XOR 1^n just given c? If so, explain how. If not, explain why not.

I cannot prove why that wouldn't be possible, although intuitively given it is a counter mode, I feel the attacker cannot create the encryption.

Score:0
hk flag

Yes, the ciphertext is plaintext xor pad. Since in case we want a ciphertext for a changed plaintext, the pad will not be altered since its not text-dependent. Therefore, consider how would the ciphertext change if You add 1^n to the plaintext

Knightoforous avatar
vi flag
It is still unclear to me. Could you elaborate please?
Sezzart avatar
hk flag
Which part is unclear?
Knightoforous avatar
vi flag
Everything that you said. I understand that in CTR mode, we have ciphertext C = M XOR E(Nonce||Counter), where E is the encryption function. Now we have been given C and then how do we find out E(M XOR 1^n) or is it asking us to find E(M) XOR 1^n?
Sezzart avatar
hk flag
You get C=Enc(M)=AES(Nonce||Counter) + M. You want to find C' = Enc(M+1^n) which will be....?
Knightoforous avatar
vi flag
C'= Enc(M + 1^n) = AES(Nonce||Counter) + M + 1^n?
Sezzart avatar
hk flag
yes, which means what for Your task of trying to predict what the cipher of M + 1^n will be?
Knightoforous avatar
vi flag
Yes, so the cipher of M + 1^n will be C' = C + 1^n
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.