summaryrefslogtreecommitdiff
path: root/cipher/elgamal.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-02-16 13:16:30 +0000
committerWerner Koch <wk@gnupg.org>1999-02-16 13:16:30 +0000
commit788077d888e7b95448ed8c1a84d7e5d6b9244d9f (patch)
tree413375191713a0e35c0f60b9c6bb669327060057 /cipher/elgamal.c
parentf5a7426be64684b9eaa6b2c1506374b3efc88aca (diff)
downloadlibgcrypt-788077d888e7b95448ed8c1a84d7e5d6b9244d9f.tar.gz
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to 'cipher/elgamal.c')
-rw-r--r--cipher/elgamal.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cipher/elgamal.c b/cipher/elgamal.c
index 9a9b3562..90d5aca1 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;
}
}