CSIT 5710 Problem Set 1Python

Java Python CSIT 5710 Problem Set 1

Problem 2 (4pts)

PRF security game. We recall the definition of a secure PRF. Let F:KxX→y be a function with key-space K, input space X and output space y. The PRF security game is played between an adversary A and a challenger C, defined as follow:

1. C picks a bit b {0,1}

2. If b= 0, then C samples k K and sets f ← F(k,.). If b=1, C samples a uniformly random function f: X → y.

3. PRFQuery: A chooses z ∈ X and sends z to C, who replies with f(x).

4. A can repeatedly make PRFQueries to the challenger (repeats step 3).

5. A outputs bit b' ∈ {0,1} and wins if b' = b

For a secure PRF, the probability of any probabilistic polynomial-time adversary winning the abovegame is at most 1/2 +e(n), for some negligible function e of security parameter n.

(a) (1pt): Let F: {0,1}n× {0,1}n → {0,1}n be a secure PRF. Let F' : {0,1}n × {0,1}n → {0,1}n be the function

Is F' a sdai 写CSIT 5710 Problem Set 1Python ecure PRF? If so, provide a proof for its security; otherwise, describe an attack that adversary A can use to break its security and explain why the attack works.

(b) (1pt): Let F: {0,1}n x {0,1}n → {0,1}n be a secure PRF. Let F' : {0,1}n× {0,1}n → {0,1}n be the function

Is F' a secure PRF?  If so, provide a proof for its security;  otherwise, describe an attack that adversary A can use to break its security and explain why the attack works.

(c) (2pts): Let F be a secure PRF defined over (K,X,y), where K= X=y= {0,1)".  Let Ki = {0,1}n+1.  Construct a new PRF Fi over (K1,X,y), with the following property: the PRF Fi is secure;  however, if the adversary learns the last bit of the key then the PRF is no longer secure.  This shows that leaking even a single bit of the secret key can destroy the PRF security property.  You need to provide the construction of Fi, prove it is a secure PRF, and show that if the adversary learns the last bit of the key, then the PRF is no longer secure         

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值