Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (3 points) Yet Another One Time Pad Consider the following variant of the one-time pad. Let the key space K, message space M, and

2. (3 points) Yet Another One Time Pad Consider the following variant of the one-time pad. Let the key space K, message space M, and ciphertext space C be {0,1,...,25}n. The one-time pad is defined as follows: Setup chooses a uniformly random key K K. Enc(K,M) takes as input a key K Kand a message M M. Let K[i] and M[i] denote the ith component of the key and message respectively. The encryption algorithm computes C[i] = (M[i] + K[i]) mod 26 for all 0 i < n. It outputs C = (C[0],C[1],...,C[n 1]). Dec(K,C) takes as input a key K K and a ciphertext C C. It computes M[i] = (C[i] K[i]) mod 26 and outputs M = (M[0],M[1],...,M[n 1]).

(a) For any c C,m M, compute Pr[Enc(K, M) = c|M = m], where the probability is over the choice of K.

(b) Let C = Enc(K,M) and C = Enc(K,M). Express M in terms of M, C, and C only (not involving K).

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions