diff options
author | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
commit | e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch) | |
tree | 31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /cipher/elgamal.c | |
parent | See ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff) | |
download | gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.gz gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip |
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to 'cipher/elgamal.c')
-rw-r--r-- | cipher/elgamal.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cipher/elgamal.c b/cipher/elgamal.c index 9a9b35629..90d5aca18 100644 --- a/cipher/elgamal.c +++ b/cipher/elgamal.c @@ -109,9 +109,9 @@ gen_k( MPI p ) for(;;) { if( DBG_CIPHER ) fputc('.', stderr); - { char *p = get_random_bits( nbits, 1, 1 ); - mpi_set_buffer( k, p, (nbits+7)/8, 0 ); - m_free(p); + { char *pp = get_random_bits( nbits, 1, 1 ); + mpi_set_buffer( k, pp, (nbits+7)/8, 0 ); + m_free(pp); /* make sure that the number is of the exact lenght */ if( mpi_test_bit( k, nbits-1 ) ) mpi_set_highbit( k, nbits-1 ); @@ -530,7 +530,7 @@ elg_get_nbits( int algo, MPI *pkey ) */ const char * elg_get_info( int algo, int *npkey, int *nskey, int *nenc, int *nsig, - int *usage ) + int *use ) { *npkey = 3; *nskey = 4; @@ -539,12 +539,12 @@ elg_get_info( int algo, int *npkey, int *nskey, int *nenc, int *nsig, switch( algo ) { case PUBKEY_ALGO_ELGAMAL: - *usage = PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC; + *use = PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC; return "ELG"; case PUBKEY_ALGO_ELGAMAL_E: - *usage = PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC; + *use = PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC; return "ELG-E"; - default: *usage = 0; return NULL; + default: *use = 0; return NULL; } } |