aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/dsa.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-11-14 16:04:16 +0000
committerWerner Koch <[email protected]>2000-11-14 16:04:16 +0000
commit986649bea0798cb6509069d046197f9628932c01 (patch)
treeabfbefbde834a919bba8e3ada10c0d864715ec0a /cipher/dsa.c
parentAdd features packet and fixes MIPS3. (diff)
downloadgnupg-986649bea0798cb6509069d046197f9628932c01.tar.gz
gnupg-986649bea0798cb6509069d046197f9628932c01.zip
Some configuration changes
Diffstat (limited to 'cipher/dsa.c')
-rw-r--r--cipher/dsa.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/cipher/dsa.c b/cipher/dsa.c
index 255fa372c..6e41dd8b1 100644
--- a/cipher/dsa.c
+++ b/cipher/dsa.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
+
#include "g10lib.h"
#include "mpi.h"
#include "cipher.h"
@@ -136,9 +137,9 @@ static void
test_keys( DSA_secret_key *sk, unsigned qbits )
{
DSA_public_key pk;
- MPI test = mpi_alloc( qbits / BITS_PER_MPI_LIMB );
- MPI out1_a = mpi_alloc( qbits / BITS_PER_MPI_LIMB );
- MPI out1_b = mpi_alloc( qbits / BITS_PER_MPI_LIMB );
+ MPI test = gcry_mpi_new ( qbits );
+ MPI out1_a = gcry_mpi_new ( qbits );
+ MPI out1_b = gcry_mpi_new ( qbits );
pk.p = sk->p;
pk.q = sk->q;
@@ -150,9 +151,9 @@ test_keys( DSA_secret_key *sk, unsigned qbits )
if( !verify( out1_a, out1_b, test, &pk ) )
log_fatal("DSA:: sign, verify failed\n");
- mpi_free( test );
- mpi_free( out1_a );
- mpi_free( out1_b );
+ gcry_mpi_release ( test );
+ gcry_mpi_release ( out1_a );
+ gcry_mpi_release ( out1_b );
}