Commit a7dba70c authored by Niels Möller's avatar Niels Möller

Let nettle-hash --list display internal context size.

* tools/nettle-hash.c (list_algorithms): Also display the internal
context size.
parent cc792a0a
2017-03-20 Niels Möller <nisse@lysator.liu.se>
* tools/nettle-hash.c (list_algorithms): Also display the internal
context size.
2017-01-03 Nikos Mavrogiannopoulos <nmav@redhat.com> 2017-01-03 Nikos Mavrogiannopoulos <nmav@redhat.com>
* ecdsa-verify.c (ecdsa_verify): Eliminated memory leak on error * ecdsa-verify.c (ecdsa_verify): Eliminated memory leak on error
......
...@@ -53,11 +53,11 @@ list_algorithms (void) ...@@ -53,11 +53,11 @@ list_algorithms (void)
{ {
unsigned i; unsigned i;
const struct nettle_hash *alg; const struct nettle_hash *alg;
printf ("%10s digestsize (internal block size), in units of octets\n", "name"); printf ("%10s digestsize (internal block size, context size), in units of octets\n", "name");
for (i = 0; (alg = nettle_hashes[i]); i++) for (i = 0; (alg = nettle_hashes[i]); i++)
printf ("%10s %d (%d)\n", printf ("%10s %d (%d, %d)\n",
alg->name, alg->digest_size, alg->block_size); alg->name, alg->digest_size, alg->block_size, alg->context_size);
}; };
static const struct nettle_hash * static const struct nettle_hash *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment