6 - Number THeory Part 2 Flashcards
Discrete Logarithm:
Computing it and is there an efficient algorithm to crack it?
Given n, g,h compute log g (h) mod n
No efficient algorithm for this
Diffie Hellman Key Exchange basis
It is easy to compute the exponent of something but difficult to comput the discrete logarithm.
Quantum Computers, can they compute discrete logarithm efficiently (in polynomial time)
Yes
Fermat’s Little Theorem to find/verify primitive element
p is a prime and g is an integer in {1,2,…,p-1} which is a primitive element:
we have g^(p-1) mod p = 1
Direct definition: a^p mod p = a mod p
Primitive Root/element
g is a primitive root mod p if g^0,g^1,..,g^(p-2) are all different
Also:
- log g h exists for all h except 0
- the seq only repeats after p-1 elements and not earlier
Is 2 a primtive modulo 7?
No, log2(3) does not exist in Z7
2^0=1
2^1=2
2^2= 4
2^3 = 1
2^4 =2
For any prime p, there are _____ elements modulo p
primitive
Why does normal logarithm work easily but the discrete logarithm is hard?
Normal is always increasing so you can easily approxmiate the upper and lower bound and then trial within that
Discrete does not necessarily have any order