mpi_subm use in elgamal.c:sign

Werner Koch
Mon, 25 Oct 1999 19:26:52 +0200

"D. Hugh Redelmeier" <> writes:

> In gnupg-1.0.0/cipher/elgamal.c:sign, the following sequence occurs:
> mpi_subm(t, input, t, p_1 );
> while( mpi_is_neg(t) )
> mpi_add(t, t, p_1);
I can't rememeber. I checked that it has been in v0.0.0 so it might left over code from some experiments :-(. ElGamal signatures are not anymore used very much, but this should not been there - I'll better throw a bug() here. The code is out for nearly 2 years and nobody has noticed it - hmmm ... Please go ahead and check more code. Werner -- Werner Koch at keyid 621CC013