CS-NC-616: Foundations of Cryptography Problem Set II, Session 2015-16

1. Let G : {0, 1}n → {0, 1}`(n) be a PRG. Are the following constructions also a PRG: def

(a) G0 (k) = reverse(G(k)). def

(b) G0 (k) = G(k)||0. 2. Let Π = (Gen, Enc, Dec) be a COA-secure scheme. Determine whether the following modifications of Enc retain COA-security: def

(a) Enc0 k (m) = Enck (m)||k. def

(b) Enc0 k (m) = 0||Enck (m). 3. Consider a PRG G : {0, 1}∗ → {0, 1}∗ . Then prove whether the following construction is a PRG or not: G1 (s, t) = G(s)||t where |s| = |t|. 4. Consider a PRG G and define a function G0 (s) to be the output of G truncated to n bits (where |s| = n). Prove whether the following function is a PRF or not: Fk (x) = G0 (k) ⊕ x. 5. Let F be a length-preserving PRP; define the following fixed-length encryption scheme for encrypting messages of n/2 bits: on input m ∈ {0, 1}n/2 and k ∈ {0, 1}n , the encryption algorithm Enc selects a random string r ∈ {0, 1}n/2 and outputs c ← Fk (r||m). (a) Write down the corresponding decryption algorithm. (b) Prove whether this scheme is CPA-secure or not. 6. Consider a PRP F and a PRG G. For the following encryption schemes, find whether the scheme achieves COAsecurity and whether it is CPA-secure; in all these scheme the key-generation algorithm selects a key randomly from {0, 1}n : (a) To encrypt a message m, compute Fk (0) and output the ciphertext c = m ⊕ Fk (0). (b) To encrypt a message m, choose a random r, compute Fk (r ⊕ m) and output the ciphertext c = (r, Fk (r ⊕ m)).

1

CS-NC-616: Foundations of Cryptography Problem Set ...

CS-NC-616: Foundations of Cryptography. Problem Set II, Session 2015-16. 1. Let G : {0,1}n → {0,1}l(n) be a PRG. Are the following constructions also a PRG: (a) G (k) def. = reverse(G(k)). (b) G (k) def. = G(k)||0. 2. Let Π=(Gen,Enc,Dec) be a COA-secure scheme. Determine whether the following modifications of Enc retain.

87KB Sizes 0 Downloads 85 Views

Recommend Documents

Problem Set 1: C
Sep 17, 2010 - Simply email [email protected] to inquire; be sure to mention your full name, your ..... Now let's add those products' digits (i.e., not the products themselves) .... http://code.google.com/apis/chart/docs/gallery/bar_charts.html.

Problem Set 5: Forensics
on cloud.cs50.net as well as filling out a Web-‐based form (the latter of which will be ..... If you feel like SFTPing that file to your desktop and double-‐ ..... There's nothing hidden in smiley.bmp, but feel free to test your program out on it

Problem Set 0: Scratch
Sep 10, 2010 - appropriateness of some discussion, contact the course's instructor. ... phone at 617-495-9000, in person in Science Center B-14, or via email ...

Problem Set 1: C
Sep 17, 2010 - on cloud.cs50.net as well as filling out a Web-‐based form, which may take a ... virtual terminal room) or lifting material from a book, website, or.

Problem Set 1: C
Problem Set 1: C due by 7:00pm on Fri 9/17. Per the directions at this document's end, submitting this problem set involves submitting source code.

Problem Set 6: Mispellings
Oct 22, 2010 - summary: This is Problem Set 6's distribution code. Notice that the log is sorted, from top to bottom, in reverse chronological order. And notice that the earliest commit (i.e., changeset) is identified labeled with 0:13d2516423d8. Tha

Problem Set 5: Forensics
on cloud.cs50.net as well as filling out a Web-‐based form (the latter of which will be available after lecture on Wed 10/20), which may ... As this output implies, most of your work for this problem set will be organized within two subdirectories.

Problem Set 0: Scratch
Sep 10, 2010 - phone at 617-495-9000, in person in Science Center B-14, or via email ... If you're running Windows (particularly a 64-bit version thereof) and ...

Problem Set 1: C
Sep 17, 2010 - Nor may you provide or make available solutions to problem sets to individuals who .... Simply email [email protected] to inquire; be sure to mention your full name, your ..... 21 http://www.nist.gov/dads/HTML/greedyalgo.html .... Anyhow,

Problem Set 6: Mispellings
Oct 22, 2010 - -rw-r--r-- 1 jharvard students 990 Oct 22 18:59 dictionary.h. -rw-r--r-- 1 jharvard students 0 Oct 22 18:59 questions.txt. -r--r--r-- 1 jharvard students 5205 Oct 22 18:59 speller.c lrwxrwxrwx 1 jharvard students 32 Oct 22 18:59 texts

Problem Set 0: Scratch
Sep 10, 2010 - appropriateness of some discussion, contact the course's instructor. ... phone at 617-‐495-‐9000, in person in Science Center B-‐14, or via ...

Problem Set 0: Scratch
Sep 10, 2010 - form that may take a few minutes, so best not to wait until the very last ... you with an email address of the form [email protected], ...

Problem Set 0: Scratch
Sep 10, 2010 - dishonesty: you may not submit the same or similar work to this course that you have submitted or will submit to another. Nor may you provide or make available solutions to problem sets to individuals who .... a bit simpler than we exp

Problem Set 0: Scratch
Sep 10, 2010 - All work that you do toward fulfillment of this course's expectations .... For clues on a Mac, select About This Mac from your Apple menu and ...

Problem Set 04
also has the absolute advantage in the production of the good. E) cannot have an absolute advantage in the production of the good. Table 1. Tobacco. Sugar. Razil. 20. 40 ... Table 1 shows Razil's and Uba's production costs in terms of labor-hours per

Problem Set 8: CS50 Shuttle
Nov 12, 2010 - Then cd to ~/public_html/pset8/. (Remember how?) Then run ls. You should see the below. buildings.js math3d.js passengers.js service.js index.html passengers service.css shuttle.js. All of the work that you do for this problem set will

Problem Set 4.
1.2.4 Part 4. Sunlight. With atmospheric pressure at 101.3kPa, and the pressure from the light at 1300W/3x108m/s, we have roughly 4x10−5Pa of pressure from the sunlight being only ∼ 10−10 of the total atmo- spheric pressure. Wow. Very tiny! Wou

Problem Set 3
Oct 6, 2008 - Suppose the period-t utility function, ut, is ut = lnct + b(1 − lt)1−γ/(1 − γ), b > 0, ... What is the inter-temporal elasticity of substitution of leisure.

Problem Set 0: Scratch - CS50 CDN
Sep 10, 2010 - Academic Honesty. All work that you do toward fulfillment of this course's expectations must be your own unless collaboration is explicitly allowed in writing by the course's instructor. Collaboration in the completion of problem sets

Problem Set 0: Scratch - CS50 CDN
Sep 10, 2010 - For clues on a Mac, select About This Mac from your Apple menu and ... other than a cat. iii. Your project must have at least three scripts total ...

Problem Solving Strategies – set of problems - ACM International ...
Sample output. Case 1. C 7. B 22. A 37. Case 2. E 0. A 1. D 1. C 10. B 50. 5 .... Figure 2: Illustration for the antennas and coverage. Write a program that finds the ...

Problem Set 5: Forensics - CS50 CDN
21 Actual credit for photos goes to ACM, Dan Armendariz, Eliza Grinnell, Harvard Crimson, Harvard Gazette, NVIDIA, SEAS, Titus. Zhang, et al. 22 This one's ...