Score:1

Block cipher decryption

jp flag

I have a course work for university.

The question is:

1

My solution to the question is:

    P||R = D(K,C)

However, in the question it doesn't say we are given R so I'm not sure how to get P from P||R.

This could be because my understanding of concatenation is incorrect as I see it as simply adding the nonce to the plaintext.

If what I have done looks correct please let me know, otherwise any help on anything I can read to help me understand this question would be greatly appreciated.

kelalaka avatar
in flag
The size is given, why don't you use it?
Marc Ilunga avatar
tr flag
To me, the question is a bit under specified. My interpretation of it is that $u$ is a fixed value for the nonce length. So what you have to do is to precise what $R||P$ means. Remembering that $D(k,c)$ outpus a n-long bit string (call it $M$ for example).
hasin avatar
jp flag
@kelalaka how is the size relevant for this question?
Score:0
in flag

You'd have to separate the nonce after the decryption, so you need the size of the nonce, or the nonce itself.

However, the size is a configuration parameter, while the nonce is an input parameter. Configuration parameters are considered known in advance, and nothing in the question indicates that you are given the nonce.

So in the end you have to perform the decryption, i.e. $X = D(K,C)$, where $X = R \| P$. Then you need to extract the plaintext, $P = X_u \dots X_{n-1}$.

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.