Score:2

Calculating statistical distance for simple addition cipher?

fr flag

I'm looking at the solutions to this problem set for self study.

One of the questions is to calculate the statistical distance for the following scheme:

enter image description here

  • The message space is equal to the key space, which is all positive integers $\leq 2^\lambda$
  • Encryption/decryption is just addition & subtraction

and statistical distance is defined as:

enter image description here

The solution for calculating the statistical distance is:

enter image description here

This solution roughly makes sense.

  • The probability of any given cipher text being generated by the encryption scheme is either:
    • 0 if the cipher text is smaller than the message
    • $\frac{1}{2^\lambda}$ if the cipher text is larger than the message (that's the probability that we generate the right key)

Thus, the difference between the 2 messages is the number of cipher texts that can be generated for 1 message but not the other and each of those has a probability of $\frac{1}{2^\lambda}$, so we get $\frac{|m_0 - m_1|}{2^\lambda}$.

What I don't understand is why there is a 2 in the numerator of the fraction that the summation reduces to.

Does anyone know?

Score:2
in flag

It should be $$\frac{1}{2} \sum_{i =2}^{\color{red}{2^{\lambda+1}}} |\Pr[k_0 \gets \text{Gen}(1^\lambda):k_0+m_0=i] - \Pr[k_1 \gets \text{Gen}(1^\lambda):k_1+m_1=i]| $$

Since the definition of the $\mathcal{M}$ and $\mathcal{K}$

$$ \mathcal{M = K} = \{ i \in \mathbb{Z}^+ | i \leq 2^\lambda\}$$

since $c = k + m$ then $$\mathcal{C} = \{ \in \mathbb{Z}^+ | 2 \leq i \leq 2^{\color{red}{\lambda\ +1}}\}$$

And this explains where the $2$ comes from.

kelalaka avatar
in flag
I should wrote as `2^\lambda + 1` vs `2^{\lambda + 1} `
Foobar avatar
fr flag
Apologies, is 2^(lambda + 1) not already in the image I provided?
kelalaka avatar
in flag
It is $2^{\lambda} + 1$ not $2^{\lambda + 1}$. A small but common typo in $\LaTeX$ `2^{\lambda} + 1` vs `2^{\lambda + 1}`
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.