El Gamal ======== .. warning:: Even though ElGamal algorithms are in theory reasonably secure, in practice there are no real good reasons to prefer them to :doc:`rsa` instead. Signature algorithm ------------------- The security of the ElGamal signature scheme is based (like DSA) on the discrete logarithm problem (DLP_). Given a cyclic group, a generator *g*, and an element *h*, it is hard to find an integer *x* such that :math:`g^x = h`. The group is the largest multiplicative sub-group of the integers modulo *p*, with *p* prime. The signer holds a value *x* (*0