Kirk81 wrote:
Hello,
I'm trying to benchmark the ECDSA with a 160 prime key and the SHA-1
function: I pass a string of characters to the SHA-1 and then I pass the
digest to the ECDSA_do_sign and the ECDSA_so_verify function.
For the purposed I've modified a code that was posted previously. The code
is the following and it's for MSV 2005.
http://www.nabble.com/file/p26074867/ecdsa.c ecdsa.c
With a Intel Pentium M processor 1500MHz, I can "hash and sign" (with the
above configuration) in 2.6 [ms] and I'm able to verify it in 0.02 [ms].
BUT...Is it possible that the verify function is so fast? Am I doing any
mistake or is it a bug?
Thanks in advance
It doesn't sound possible. In fact, ECDSA verify has two point
multiplications vs. one for ECDSA sign. So it should be slower. But
here is a technique that will help resolve the issue. Change one byte
of the message, and try to verify. If it verifies successfully, you
know it is not working.
-- David Jacobson
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majord...@openssl.org