NERDOLOGY! - Block Ciphers (Week - 2) - Cryptography I
NERDOLOGY! - Block Ciphers (Week - 2) - Cryptography I
NERDOLOGY!
Tuesday, September 3, 2013
What is the order of these events from most likely to least likely?
Your Scor
Explanation
Answer e
3, 2,
5, 4, 1
2, 4,
3, 1, 5
2, 3,
4, 5, 1
The remaining events are all more likely than event (4).
1.00 /
Total
1.00
Question 2
Suppose that using commodity hardware it is possible to build a computer for about $200
that can brute force about 1 billion AES keys per second. Suppose an organization wants to
run an exhaustive search for a single 128-bit AES key and was willing to spend 4 trillion
dollars to buy these machines (this is more than the annual US federal budget). How long
would it take the organization to brute force this single 128-bit AES key with these machines?
Ignore additional costs such as power and maintenance.
Your Answer Score Explanation
More than an hour but less than a
day
The answer is about 540 billion years.
# machines = 4*10^12/200 =
2*10^10
printed-notes.blogspot.com/2013/09/block-ciphers-week-2.html 1/5
3/1/2021 NERDOLOGY!: Block Ciphers (Week - 2) - Cryptography I
or
Coursera (27)
e
C Cryptography I (7)
o
Not a PRF. A distinguisher will query at
r 0. Economics (9)
x=0n and output not random if the
F′(k, x)=F(k,x)when x≠0n0notherwise r 1
response is 0n . This is unlikely to hold Finance.. (1)
e7
for a truly random function.
c Financial Accounting.. (3)
t
C Human Resource Management (2)
o Not a PRF. A distinguisher will query at
r 0. x=0n and x=1n and output not Interactive Python (3)
F′(k, x)=k⨁x r 1 random if the xor of the response is 1n . International Business (17)
e7 This is unlikely to hold for a truly random
c function. M-Commerce (1)
t
C Maps and the Geospatial
o Revolution (5)
r 0.
F′(k,x)=F(k,x)[0,…,n−2] (i.e., Correct. A distinguisher for F′ gives a Marketing (4)
r 1
F′(k,x) drops the last bit of F(k,x) ) e7
distinguisher for F.
Mathematics and Statistics (2)
c
t Penn State (5)
C
Photography.. (2)
F′(k,x)=reverse(F(k,x)) where o
reverse(y) reverses the string y so that the r 0. Project Management (10)
Correct. A distinguisher for F′ gives a
first bit of y is the last bit of reverse(y), the r 1
distinguisher for F.
second bit of y is the second to last bit of e7 Python Programming (16)
reverse(y), and so on. c
t Stanford (7)
C
Strategic Management (1)
o
r 0. Tech Tutorials (14)
F′((k1,k2), x)=F(k1,x) ∥ F(k2,x) Correct. A distinguisher for F′ gives a
r 1
(here ∥ denotes concatenation) distinguisher for F.
e7 Toronto (11)
c
t
C
Not a PRF. A distinguisher will query at
Blog Archive
o
r 0. x=0n and x=1n and output not ► 2017 (1)
F′(k,x)=F(k, x)⨁F(k, x⊕1n) r 1 random whenever the two responses are
e7 equal. This is unlikely to happen for a ► 2016 (1)
c truly random function. ► 2014 (10)
t
▼ 2013 (30)
1.
0 ► October (1)
0 ▼ September (21)
Total /
Learn to Program:
1.
The Fundamentals
0 - Assignment 3
0
Learn to Program:
Question 4 The Fundamentals
Recall that the Luby-Rackoff theorem that applying a three round Feistel network to a secure - Week 6 Exercise
PRF gives a secure block cipher. Let's see what goes wrong if we only use a two round
Learn to Program:
Feistel. Let F:K×{0,1}32→{0,1}32 be a secure PRF. Recall that a 2-round Feistel
The Fundamentals
defines the following PRP F2:K2×{0,1}64→{0,1}64 : - Week 5 Exercise
Learn to Program:
The Fundamentals
- Assignment 2 ...
Learn to Program:
The Fundamentals
- Week 4 Exercise
Learn to Program:
Here R0 is the right 32 bits of the 64-bit input and L0 is the left 32 bits. The Fundamentals
— Week 3
One of the following lines is the output of this PRP F2 using a random key, while the other
Exercise
three are the output of a truly random permutation f:{0,1}64→{0,1}64 . All 64-bit outputs Learn to Program:
are encoded as 16 hex characters. Can you say which is the output of the PRP? Note that The Fundamentals
since you are able to distinguish the output of F2 from random, F2 is not a secure block
- Assignment 1
cipher, which is what we wanted to show. Learn to Program:
The Fundamentals
Hint: First argue that there is a detectable pattern in the xor of F2(⋅,064) and — Week 2
Exercise
F2(⋅,132032) . Then try to detect this pattern in the given outputs.
Learn to Program:
Sc The Fundamentals
- Week 1 Exercise
Your Answer or Explanation
e Cryptography I - Final
C Exam
On input 064 the output is Observe that the two round Feistel has the property
o Public Key
"9f970f4e 932330e4". On 1. that the left half of F(⋅,064)⨁F(⋅,132032) is
rr Encryption from
input 132032 the output is 00 132. The two outputs in this answer are the only
e trapdoor
"6068f0b1 b645c008". ones with this property. permutations (...
ct
printed-notes.blogspot.com/2013/09/block-ciphers-week-2.html 2/5
3/1/2021 NERDOLOGY!: Block Ciphers (Week - 2) - Cryptography I
On input 064 the output is Maps and the
"7c2822eb fdc48bfb". On input Geospatial
132032 the output is "325032a9 Revolution -
c5e2364b".
Feedback — Fi...
1+ℓ/2
Cor Take a look at the CBC decryption circuit. Each ciphertext blocks
2 1.00
rect affects only the current plaintext block and the next.
0
ℓ
1.00 /
Total
1.00
Question 7
Let m be a message consisting of ℓ AES blocks (say ℓ=100 ). Alice encrypts m using
randomized counter mode and transmits the resulting ciphertext to Bob. Due to a network
error, ciphertext block number ℓ/2 is corrupted during transmission. All other ciphertext
blocks are transmitted and received correctly. Once Bob decrypts the received ciphertext,
how many plaintext blocks will be corrupted?
Your
Score Explanation
Answer
3
1+ℓ/2
Corr Take a look at the counter mode decryption circuit. Each ciphertext
1 1.00
ect block affects only the current plaintext block.
printed-notes.blogspot.com/2013/09/block-ciphers-week-2.html 3/5
3/1/2021 NERDOLOGY!: Block Ciphers (Week - 2) - Cryptography I
0
ℓ
1.00 /
Total
1.00
Question 8
Recall that encryption systems do not fully hide the length of transmitted messages. Leaking
the length of web requests has been used to eavesdrop on encrypted HTTPS traffic to a
number of web sites, such as tax preparation sites, Google searches, and healthcare sites.
Suppose an attacker intercepts a packet where he knows that the packet payload is
encrypted using AES in CBC mode with a random IV. The encrypted packet payload is 128
bytes. Which of the following messages is plausibly the decryption of the payload:
Sc
Your Answer or Explanation
e
'If qualified opinions incline to believe in the
exponential conjecture, then I think we cannot
afford not to make use of it.'
'The significance of this general conjecture,
assuming its truth, is easy to see. It means that
it may be feasible to design ciphers that are
effectively unbreakable.'
In
The length of the string is 87 bytes,
'We see immediately that one needs little o
0. which after padding becomes 96
information to begin to break down the rr
00 bytes, and after prepending the IV
process.' e
would become 112 bytes.
ct
'In this letter I make some remarks on a
general principle relevant to enciphering in
general and my machine.'
0.
00
Total /
1.
00
Question 9
Let R:={0,1}4 and consider the following PRF F:R5×R→R defined as follows:
That is, the key is k=(k[0],k[1],k[2],k[3],k[4]) in R5 and the function at, for example,
0101 is defined as F(k,0101)=k[0]⊕k[2]⊕k[4] .
OPEN
printed-notes.blogspot.com/2013/09/block-ciphers-week-2.html 4/5
3/1/2021 NERDOLOGY!: Block Ciphers (Week - 2) - Cryptography I
Changed Quickly
printed-notes.blogspot.com/2013/09/block-ciphers-week-2.html 5/5