diffie hellman Flashcards

(7 cards)

1
Q

what type of encryption is diffie hellman

A

symmetric key encryption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what does diffie hellman do

A

it generate a symmetric key for both alice and bob so they cn communicate publicly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how does it generate the key

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are the constraints for g and P

A

g < p
gcd(g , p-1) = 1
p is a prime number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what attack is diffie hellman susceptible to

A

man in the middle attack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

decribe the man in the middle attack

A

this is so long right now , just check your notes in the black book

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are the weaknesses of diffie hellman

A

susceptible to man in the middle attacks
computational complexity
key size has to always be large

How well did you know this?
1
Not at all
2
3
4
5
Perfectly