3 ms·
What is g here?
by andyjohnson0 6y ago
What is g here?
- a_imho 6y agoUnfortunately I had to check it as well, and g seems to be a generating element of a finite cyclic group G https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange#Generalization_to_finite_cyclic_groups https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exc...
- libeclipse 6y agoDiffie Hellman Key Exchange is performed over a cyclic group. That's just a large set of elements that wrap back around to each other. So for example the integers mod 7 is {0, 1, 2, 3, 4, 5, 6}. A generator for this group is any element that you can continuously add to generate the whole group, for example: 1. In the case of DH, g is some such element.