]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Turn RSA blinding off in openssl RSA benchmark.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 20 Jun 2014 12:37:13 +0000 (14:37 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 24 Jun 2014 18:53:57 +0000 (20:53 +0200)
That allows direct comparison with hogweed's RSA results.

examples/hogweed-benchmark.c

index 05372ab4adad075781d8fbf9e23a0bd33fc5248c..311fa2d6f9265a74ed7bacd172ea120c6c751577 100644 (file)
@@ -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))