• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Cryptography in World War II
Jefferson Institute for Lifelong Learning at UVa
Spring 2006David Evans
Class 4:ModernCryptography
http://www.cs.virginia.edu/jillcrypto
2
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Menu
Some loose ends on WWIIMaurice BurnettModern Cryptography
Modern symmetric ciphersPublic-key cryptosystems
3
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
British Cipher Machine
Design based oncommercial Enigma5 rotor wheels (insteadof 3 in Enigma)Multiple rings per rotorLast 2 rotor wheelsdidn’t rotateBritish attempted tobreak it (withoutsuccess)
TypexMachine
4
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
German Code-Breaking Efforts
About 6,000 people (compare to 12,000working at Bletchley Park)Decentralized: each military branch hadtheir own, didn’t share what they learnedEffective against manual codes: brokeabout 50% of manually coded messagesDidn’t attempt to break rotor-basedciphers –so confident Enigma wasunbreakable, didn’t try to Typexandsimilar machines
5
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
6
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
From http://www.codesandciphers.org.uk/lorenz/fish.htm
Lorenz Cipher
 
7
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Modern Symmetric Ciphers
 A billion billion is a large number, but it's not that large a number.
Whitfield Diffie
Same idea but:
–Use digital logic instead of mechanical rotors–Larger keys (random bits, not rotoralignments)
•Lorenz
5
12
< 10
9
•Modern
128 bits > 10
37
–Encrypt blocks of letters at a time
8
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Modern Ciphers
AES (Rijndael) successor to DESselected 2001128-bit keys, encrypt 128-bit blocksBrute force attack (around 10
30
timesharder than Lorenz)
Try 1 Trillion keys per secondWould take 10790283070806000000 yearsto try all keys!If that’s not enough, can use 256-bit key
No known techniques that do betterthan brute force search
9
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Login: alyssaPassword: fido
TerminalTrusted SubsystemEve
Login Process
login sends<“alyssa”, “fido”>
10
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Sending Passwords
EncryptUserServerThe InternetThe Internet
 
11
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
EncryptDecryptPlaintextCiphertextPlaintextUserServer
C = Encrypt
(P)P = Decrypt
(C)
K
The InternetThe Internet
12
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Key Agreement Demo
(Animated version atend of slides.)
 
13
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Asymmetric Cryptosystems
Need a hard problem (like symmetriccryptosystems)With a trap door: if you know asecret, the hard problem becomeseasy
14
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
One-Way Functions
Easy to compute, hard to invertTrap-door one way function:
 – 
 D
(
 E 
(
)) =
 – 
 E 
and
 D
are easy to compute.Revealing
 E 
doesn’t reveal an easy wayto compute
 D
.Hence, anyone who knows
 E 
can encrypt,but only someone who knows
 D
candecrypt
15
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
RSA
[Rivest, Shamir, Adelman78]
One-way function:multiplication is easy, factoring is hardTrap-door: number theory (Euler and Fermat)
16
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Security of RSA
n
is public, but not
 p
and
q
where
n = pq
How much work is factoring
n
?
n
~200 digits –would take quintillions of years
Number Field Sieve (fastest known factoringalgorithm) is:
O
(e
1.9223((ln (n))
1/3
(ln(ln(n)))
2/3
)
17
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Asymmetric Cryptosystems
Encryption and Decryption are donewith different keysKeep one of the keys secret, revealthe other
E
KRA 
(E
KUA 
(
)) =
 Alice’s Public Key: KUA  Alice’s Private Key: KRA 
Only KRA can decrypta message encryptedusing KUA.
18
JILL WWII Crypto Spring 2006 -Class 4: Modern Cryptography
Public-Key Applications:Privacy
Alice encrypts message to Bob usingBob’s
Public 
KeyOnly Bob knows Bob’s
Private
Key
only Bob can decrypt message
EncryptDecryptPlaintextCiphertextPlaintext AliceBobBob’s Public KeyBob’s Private Key
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...