diffie hellman Flashcards
(7 cards)
what type of encryption is diffie hellman
symmetric key encryption
what does diffie hellman do
it generate a symmetric key for both alice and bob so they cn communicate publicly
how does it generate the key
a -> alice private key
b -> bob private key
g^a mod p -> alice public key
g^b mod p -> bob public key
alice sends the result of g^a mod p to bob
bob sends the result of g^b mod p
then
then alice and bob both calculate g^(ab) mod p (or g^(ba) mod p) which is basically their shared key for communication
what are the constraints for g and P
g < p
gcd(g , p-1) = 1
p is a prime number
what attack is diffie hellman susceptible to
man in the middle attack
decribe the man in the middle attack
this is so long right now , just check your notes in the black book
what are the weaknesses of diffie hellman
susceptible to man in the middle attacks
computational complexity
key size has to always be large