Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 5 Points ) There is nothing exclusively special about strings and XOR in one - time pad. We can get the same properties

(15 Points) There is nothing exclusively special about strings and XOR in one-time pad. We
can get the same properties using integers modn and addition modn. This problem considers
a variant of one-time pad, in which the keys, plaintexts, and ciphertexts are all elements of
Zn instead of {0,1}n.
(a) What is the decryption algorithm that corresponds to the following encryption algo-
rithm?
Enc(k,m):c=(k+m)modn
Show that the resulting scheme satisfies correctness
(b) Show that the above scheme satisfies one-time uniform ciphertext security
(c) It's not just the distribution of keys that is important. The way that the key is combined
with the plaintext is also important. Show that a scheme with the following encryption
algorithm does not satisfy one-time uniform ciphertext security
Enc(k,m):c=(k*m)modn
(10 Points) Alice is using one-time pad and notices that when her key is the all-zeroes string
k=0n, then Enc(k,m)=m and her message is sent in the clear! To avoid this problem,
she decides to modify KeyGen to exclude the all-zeroes key. She modifies KeyGen to choose
a key uniformly from {0,1}n??{0n}, the set of all n-bit strings except 0n. In this way, she
guarantees that her plaintext is never sent in the clear.
(a) Describe an attack demonstrating that the modified scheme does not satisfy one-time
uniform ciphertext security(15 Points) There is nothing exclusively special about strings and XOR in one-time pad. We
can get the same properties using integers modn and addition modn. This problem considers
a variant of one-time pad, in which the keys, plaintexts, and ciphertexts are all elements of
Zn instead of {0,1}n.
(a) What is the decryption algorithm that corresponds to the following encryption algo-
rithm?
Enc(k,m):c=(k+m)modn
Show that the resulting scheme satisfies correctness
(b) Show that the above scheme satisfies one-time uniform ciphertext security
(c) It's not just the distribution of keys that is important. The way that the key is combined
with the plaintext is also important. Show that a scheme with the following encryption
algorithm does not satisfy one-time uniform ciphertext security
Enc(k,m):c=(k*m)modn
(10 Points) Alice is using one-time pad and notices that when her key is the all-zeroes string
k=0n, then Enc(k,m)=m and her message is sent in the clear! To avoid this problem,
she decides to modify KeyGen to exclude the all-zeroes key. She modifies KeyGen to choose
a key uniformly from {0,1}n??{0n}, the set of all n-bit strings except 0n. In this way, she
guarantees that her plaintext is never sent in the clear.
(a) Describe an attack demonstrating that the modified scheme does not satisfy one-time
uniform ciphertext security
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

5. If yes, then why?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago