Some Necessary Math Backgrounds
Before getting to RSA, let's make sure to visit some quic Math concepts that are necessary to understand the protocol.
Greatest Common Divisor (GCD)
GCD is the largest positive integer that divides two or more integers without leaving a remainder.
Example
GCD(4, 8) = 4 because 4 is the largest number that divides both 4 and 8
GCD(34, 51) = 17 because 17 is the largest number that divides both 34 and 51
What is GCD(97, 31)
Co-Prime
We called two integers co-prime to each other when GCD(a,b) = 1
Eulerβs Totient Function
Euler Totient Function is the function that counts the integers less than that are co-prime to .
Given ,
Eulerβs Theorem
For any co-prime . This statement is true:
Integer Factorization Problem (IFP)
The Integer Factorization Problem asserts that:
Given: A large integer (e.g. 2048 bits)., where are large prime number.
Assumption: It is computationally infeasible to factor into in polynomial time with classical computers.