diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-20 14:37:13 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-06-24 20:53:57 +0200 |
commit | 4fd3dd3e3648d54cac1d8a37b4e8ccef76f3502d (patch) | |
tree | 9fafee975b3cdf14b2b43edbd229f072187686f8 /examples | |
parent | 8bd3d0ff334de8e9c12065361572244efad95d13 (diff) | |
download | nettle-4fd3dd3e3648d54cac1d8a37b4e8ccef76f3502d.tar.gz |
Turn RSA blinding off in openssl RSA benchmark.
That allows direct comparison with hogweed's RSA results.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/hogweed-benchmark.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/hogweed-benchmark.c b/examples/hogweed-benchmark.c index 05372ab4..311fa2d6 100644 --- a/examples/hogweed-benchmark.c +++ b/examples/hogweed-benchmark.c @@ -521,6 +521,7 @@ bench_openssl_rsa_init (unsigned size) ctx->ref = xalloc (RSA_size (ctx->key)); ctx->signature = xalloc (RSA_size (ctx->key)); ctx->digest = hash_string (&nettle_sha1, 3, "foo"); + RSA_blinding_off(ctx->key); if (! RSA_sign (NID_sha1, ctx->digest, SHA1_DIGEST_SIZE, ctx->ref, &ctx->siglen, ctx->key)) |