diff options
Diffstat (limited to 'cipher/elgamal.c')
-rw-r--r-- | cipher/elgamal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/elgamal.c b/cipher/elgamal.c index bbf9c2782..9f98ce2e0 100644 --- a/cipher/elgamal.c +++ b/cipher/elgamal.c @@ -351,8 +351,10 @@ sign(MPI a, MPI b, MPI input, ELG_secret_key *skey ) mpi_powm( a, skey->g, k, skey->p ); mpi_mul(t, skey->x, a ); mpi_subm(t, input, t, p_1 ); - while( mpi_is_neg(t) ) + while( mpi_is_neg(t) ) { + BUG(); /* That is nonsense code - left over from a very early test?*/ mpi_add(t, t, p_1); + } mpi_invm(inv, k, p_1 ); mpi_mulm(b, t, inv, p_1 ); |