diff options
author | Marcus Brinkmann <mb@g10code.com> | 2007-04-29 23:49:56 +0000 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2007-04-29 23:49:56 +0000 |
commit | 48caaefe40af7ba14d6f63f2b31daa1da7a953bd (patch) | |
tree | 10a48f87093803db5fb1aa8492e97fdfba2e20f3 /tests | |
parent | 89817a96bb4b3a36dbe8c357121de53a1e2246f7 (diff) | |
download | libgcrypt-48caaefe40af7ba14d6f63f2b31daa1da7a953bd.tar.gz |
cipher/
2007-04-30 Marcus Brinkmann <marcus@g10code.de>
* ecc.c (ec2os): Fix relocation of short numbers.
* ecc.c (generate_key): Do not allocate D, which will be allocated
by GEN_K. Remove G. Fix test if g_x, g_y resp. q_x, q_y are
requested.
(_gcry_ecc_generate): Release unneeded members of SK.
* pubkey.c (sexp_to_key): Release NAME.
tests/
2007-04-30 Marcus Brinkmann <marcus@g10code.de>
* benchmark.c (ecc_bench): Release KEY_SPEC.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/benchmark.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index a421a7cf..d178c23d 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2007-04-30 Marcus Brinkmann <marcus@g10code.de> + + * benchmark.c (ecc_bench): Release KEY_SPEC. + 2007-04-28 Marcus Brinkmann <marcus@g10code.de> * ac-data.c (check_run): Don't give redundant GCRY_AC_FLAG_DEALLOC diff --git a/tests/benchmark.c b/tests/benchmark.c index 601d48ab..17480191 100644 --- a/tests/benchmark.c +++ b/tests/benchmark.c @@ -679,7 +679,6 @@ ecc_bench (int iterations, int print_header) "(genkey (ECDSA (nbits %d)))", p_sizes[testno]); if (err) die ("creating S-expression failed: %s\n", gcry_strerror (err)); - start_timer (); err = gcry_pk_genkey (&key_pair, key_spec); @@ -694,6 +693,7 @@ ecc_bench (int iterations, int print_header) if (! sec_key) die ("private part missing in key\n"); gcry_sexp_release (key_pair); + gcry_sexp_release (key_spec); stop_timer (); printf (" %s", elapsed_time ()); |