Title: EECS 395-0-21 Introduction to Cryptography
1EECS 395-0-21Introduction to Cryptography
2Basic Info
- Webpage Off http//lance.fortnow.com
- Text Intro to Cryptography with Coding Theory by
Trappe and Washington - Topics Crypto past, current and future
- Grading on mostly weekly assignments and take-off
exams. - Math Background A little probability, a little
more number theory. Will teach.
3The Players
Bob
Alice
Eve
4Lock and Key
Safe Impossible to open or view inside without
key Cheap and easy to transport
Key Can be used to open safe Easily copied
5Puzzle 1
6Puzzle 1 Solution
7Puzzle 2
8Puzzle 2 Solution
9Flipping a coin
10Flipping a coin
If coins same declare Heads If coins differ
declare Tails
11Poker
12Sudoku
I cant solve it.
I know solution.
13Sudoku
I cant solve it.
I know solution.
14Sudoku
I cant solve it.
I know solution.
15Sudoku
I cant solve it.
- Choose either
- Row
- Column
- 3x3 square
- Original
I know solution.
16Sudoku
I cant solve it.
4th Row
I know solution.
17Sudoku
I cant solve it.
Left Center Box
I know solution.
18Sudoku
I cant solve it.
Original
I know solution.
19Other Cryptography Uses
- Identification
- Digital Signatures
- Secret Sharing
- Electronic Voting
- Electronic Cash
20Data Encryption Standard
- DES approved by NBS (now NIST) in 1977.
- Uses key of 56 bits to encrypt and decrypt.
- Very efficient in time and memory.
Plaintext
DES Encoder
Key
Codeword
Codeword
DES Decoder
Plaintext
Key
21DES
22Data Encryption Standard
- DES approved by NBS (now NIST) in 1977.
- Uses key of 56 bits to encrypt and decrypt.
- Very efficient in time and memory.
- Problem 56 bits not very big by todays
standards - Idea Use DES multiple times
- 2 times doesnt help Meet in the middle attack
- 3 times gives 112 bits of security (Triple DES)
23Meet in the Middle
Plaintext
DES Encoder
Key1
Codeword1
Key2
DES Encoder
Final Codeword
24Advanced Encryption Standard
- Also known as Rijndael
- Approved in 1997 by NIST
- Allows key lengths of 128, 192 or 256 bits.
Plaintext
AES Encoder
Key
Codeword
Codeword
AES Decoder
Plaintext
Key
25Safe and Key
- In AES, key k describes function fk(x) that is
hard to invert without k. - fk(x)
- k
- Same key to encrypt and decrypt
26Password System
- System has secret key k
- Password file has (users, fk(pass))
- Can check password
- Making password file public is safe
- Dictionary attack/Salt
27Public-Key Cryptography
28Public-Key Cryptography
Public Key e Private Key d
29Public-Key Cryptography
Public Key e Private Key d
Use key e to encrypt and key d to decrypt.
30Public-Key Cryptography
Public Key e Private Key d
Key e
31Public-Key Cryptography
e
Public Key e Private Key d
Key e
32Public-Key Cryptography
Public Key e Private Key d
Key e
33Public-Key Cryptography
d
Public Key e Private Key d
Key e
34RSA Algorithm
- Rivest-Shamir-Adelman
- Bob chooses secret primes p and q
- Bob chooses random e, gcd(e,(p-1)(q-1)) 1
- Bob computes d with de ? 1 (mod (p-1)(q-1))
- Public Key n,e
- Private Key p,q,d
- Encoding message m cme (mod n)
- Decoding code c mcd (mod n)