 Each side's public component can be defined as gx mod p, where x is the private component.In this system, g is the generator and p is a prime number that is used as the modulus (mod).g and p are fixed values known to both parties.