Today’s Agenda
- Wrap up of Number Theory (Sec. 3.7)
- Fermat’s Little Theorem
- Public Key Cryptography (RSA)
- Strings and Languages (Chap. 12)
1 Based on Rosen and slides by K. Busch
Todays Agenda Wrap up of Number Theory (Sec. 3.7) Fermats Little - - PowerPoint PPT Presentation
Todays Agenda Wrap up of Number Theory (Sec. 3.7) Fermats Little Theorem Public Key Cryptography (RSA) Strings and Languages (Chap. 12) Based on Rosen and slides by K. Busch 1 Fermats little theorem: For any prime and
1 Based on Rosen and slides by K. Busch
2
Pierre de Fermat (1601-1665)
(We will use FLT in the RSA cryptosystem)
3
e mod
d mod
1
(with the condition that )
4
5
6
13
e
13
13
7
e
encrypt
8
by definition of congruent
) 1 )( 1 mod( 1 i.e., ) 1 )( 1 ( 1 )) 1 )( 1 ( , gcd( q p se q p t se q p e
9
e
d e d
) 1 )( 1 ( 1
q p k de d
) 1 )( 1 ( 1 q p k de
10
1
11
1
) 1 ( ) 1 ( 1
q k q k p
) 1 ( 1
q k p
) (mod p M M
) 1 )( 1 ( 1
q p k
Multiply under mod
12
) 1 )( 1 ( 1
q p k
) 1 )( 1 ( 1
q p k
) 1 )( 1 ( 1
q p k
13
) 1 )( 1 ( 1
q p k d
) 1 )( 1 ( 1
q p k
d mod
14
d mod
1819 2537 mod 2081937 1415 2537 mod 2182937