Number theory for Public key Cryptography Flashcards
What is the chinese remainder theorem?
Pairwise relatively prime: d1, d2,…,dr
n = d1d2…*dr
Given any integer ci there exist a unique integer x (0 <= x < n) such that
x ≡ c1 (mod d1)
x ≡ c2 (mod d2)
…
x ≡ cr (mod dr)
x ≡Sum(n/di) yi ci (mod n)
yi ≡ (n/di)^-1 (mod di)
What does it mean to be pairwise relatively prime?
When two integers have gcd = 1
Define the Euler function
Euler function Q(n) denotes the number of positive integers less than n and relatively prime to n
What is the residue clss Z_n^*
Set of positive integers less than n and relatively prime to n
What are some properties of the Euler function?
- Ø(p) = p-1 for a prime p
- Ø(pq) = (p-1)(q-1), for distinct primes
- See notebook: way to find Ø(n) when prime factoring a number
What is Fermat theorem?
a^(p-1) mod p = 1
p: prime
a: integer 1 < a < p-1
What is Eulers theorem?
a^Ø(n) mod n = 1,
if gcd(a,n) = 1
What is the Fermat primality test?
if p is prime: a^(p-1) mod p = 1
for all a with gcd(a,p) = 1
If we examine a number n and find that a^n-1 mod n is not 1 -> a is not a prime
Fermat primality test: Check if a number satisfies Fermat’s equation
What are the inputs of Fermat primality test?
n: value to test for primality
k: parameter that determines number of times to test for primality
What are the outputs of Fermat primality test?
Composite: If n is composity
Otherwise, probably prime
What is the Fermat primality test algorithm?
Repeat k times:
- pick a value of a randomly in the range 1 < a < n-1
- If a^n-1 mod n is not 1, return composite, if = 1 return probable prime
What does it mean when n is a pseudoprime?
When fermat test output probable prime when n is actually a composite
What are Carmichael numbers?
Compmosite numbers that satisfies:
b^n-1 ≡ 1 mod n
Composite numbers that will always output probable prime from the fermat test.
For every b with gcd(b,n) = 1
What is the Miller-Rabin test?
Can guarantee to detect composites if run sufficiently many times.
Widely used to generate large primes
What is a modular square root of 1?
x^2 mod n = 1