Home | History | Annotate | Download | only in apps

Lines Matching defs:ecdsa

67  * The ECDH and ECDSA speed test software is originally written by 
187 #include <openssl/ecdsa.h>
603 EC_KEY *ecdsa[EC_NUM];
643 for (i=0; i<EC_NUM; i++) ecdsa[i] = NULL;
977 else if (strcmp(*argv,"ecdsa") == 0)
1095 BIO_printf(bio_err,"ecdsa\n");
2195 ecdsa[j] = EC_KEY_new_by_curve_name(test_curves[j]);
2196 if (ecdsa[j] == NULL)
2198 BIO_printf(bio_err,"ECDSA failure.\n");
2205 EC_KEY_precompute_mult(ecdsa[j], NULL);
2207 /* Perform ECDSA signature test */
2208 EC_KEY_generate_key(ecdsa[j]);
2210 &ecdsasiglen, ecdsa[j]);
2213 BIO_printf(bio_err,"ECDSA sign failure. No ECDSA sign will be done.\n");
2219 pkey_print_message("sign","ecdsa",
2230 ecdsa[j]);
2233 BIO_printf(bio_err, "ECDSA sign failure\n");
2242 "%ld %d bit ECDSA signs in %.2fs \n",
2248 /* Perform ECDSA verification test */
2250 ecdsasiglen, ecdsa[j]);
2253 BIO_printf(bio_err,"ECDSA verify failure. No ECDSA verify will be done.\n");
2259 pkey_print_message("verify","ecdsa",
2266 ret=ECDSA_verify(0, buf, 20, ecdsasig, ecdsasiglen, ecdsa[j]);
2269 BIO_printf(bio_err, "ECDSA verify failure\n");
2277 : "%ld %d bit ECDSA verify in %.2fs\n",
2510 "%4u bit ecdsa (%s) %8.4fs %8.4fs %8.1f %8.1f\n",
2561 if (ecdsa[i] != NULL)
2562 EC_KEY_free(ecdsa[i]);