Abstract Algebra and Number Theory
Abstract Algebra and Number Theory
Number Theory
Abstract Algebra and Number
Theory
Modern cryptography
Abstract Algebra
2 is a prime number
3 is a prime number
5 is a prime number
7 is a prime number
9 is not a prime number
9 is composite number
33 is a composite number
33 11 3 1
1 33 3 33 11 33 33 33
33 33 33 33
0 0 0
0
Why prime numbers in
cryptography ?
Many encryption algorithms are based on prime numbers
0
Congruence 12 10
0
10
In cryptography , congruence (≡) instead of equality (=) (-2)
Examples :
1 3
15 ≡ 3 ( mod 26 ) 12 15 10 33
12 30
33 ≡ 3 (mod 10) 3 3
10 ≡ -2 ( mod 12 )
a ≡ b (mod m)
a = km + b
k
m a
Valid or invalid
38 ≡ 2 ( mod 12 )
38 ≡ 14 ( mod 12 )
5 ≡ 0 ( mod 5 )
10 ≡ 2 ( mod 6 )
13 ≡ 3 ( mod 13 )
2 ≡ -3 ( mod 5 )
-8 ≡ 7 ( mod 5 )
One more analogy
Circumference : 10 Length : 35
Example :
Property Expression
12 33
Divisors 1,2,3,4,6,12 1,3,11,33
Common Divisors 1,3
Greatest Common 3
Divisors
GCD ( 12 , 33 ) = 3
25 150
Divisors 1,5,25 1,2,3,5,6,10,15,25,30
50,75,150
Common Divisors
Greatest Common
Divisors
GCD (25,150) = 25
13 31
Divisors
Common Divisors
Greatest Common
Divisors
GCD (13,31) = 1
Find GCD 12,33
Euclid's Algorithm for finding GCD
GCD (12,33) = 3
Q A B R
33 12
Prerequisite : a > b
Euclid_GCD (a,b):
if b = 0 then
return a ;
else
Solution :
GCD (4 , 13 ) = 1
Are 4 and 13 relatively prime ? Yes , 4 and 13 are relatively prime numbers.
4 13
Divisors 1,2,4 1,13
Common Divisors 1
Greatest Common 1
Divisors
Are 15 and 21 relatively prime ?
15 21
Divisors
Common Divisors
Greatest Common
Divisors
Euler's Totient
Function
(Phi Function)
Euler's Totient Function
Denoted as φ(n)
φ(n) = Number of positive integers less than “n” that are relatively prime to n.
Example :
Find φ(5)
φ(5) = 4
Find φ(11)
Solution
Here n = 11
If “p” is a prime number and “a” is a positive integer not divisible by “p” then
ap-1 ≡ 1 ( mod p )
Example 1 :
Solution : Given p = 5 a = 2
ap-1 ≡ 1 (mod p)
25-1 ≡ 1 (mod 5)
24 ≡ 1 (mod 5 )
16 ≡ 1 (mod 5)