Symmetric Key Encryption Flashcards
(3 cards)
1
Q
How does Diffie-Hellman work?
A
Both parties agree on two public parameters, generator (g) and a prime number (p).
Both parties pick random numbers (N)
Both parties calculate g^N mod p.
Both parties exchange their calculations.
The key is g^(Na * Nb) mod p
2
Q
How does elliptic curve diffie-hellman work?
A
Both parties agree on a curve
They agree on a point p
Alice picks random n and sends np to Bob
Bob picks random m and sends mp to Alice
Both can then calculate mnp
3
Q
What’s the difference in results between diffe-hellman and eliptic-curve diffe-hellman?
A
Diffe-hellman produces long keys slowly.
Eliptic-curve diffe-hellman produces short keys quickly