diff options
author | Bodo Möller <bodo@openssl.org> | 2002-08-12 08:47:41 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-08-12 08:47:41 +0000 |
commit | 5488bb6197b9af7a4670fb88936f0b53a9af0d2f (patch) | |
tree | 2ce305909c9ce5d5b2ecd52dd6757138586106b6 /apps/speed.c | |
parent | 8e28c6715579d2ca7529de7aff257fa03a28bf93 (diff) |
get rid of EVP_PKEY_ECDSA (now we have EVP_PKEY_EC instead)
Submitted by: Nils Larsch
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/speed.c b/apps/speed.c index 4a77e8af58..abcede337e 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1937,7 +1937,7 @@ int MAIN(int argc, char **argv) { /* Perform ECDSA signature test */ EC_KEY_generate_key(ecdsa[j]); - ret = ECDSA_sign(EVP_PKEY_ECDSA, buf, 20, ecdsasig, + ret = ECDSA_sign(0, buf, 20, ecdsasig, &ecdsasiglen, ecdsa[j]); if (ret == 0) { @@ -1953,9 +1953,12 @@ int MAIN(int argc, char **argv) ECDSA_SECONDS); Time_F(START); - for (count=0,run=1; COND(ecdsa_c[j][0]); count++) + for (count=0,run=1; COND(ecdsa_c[j][0]); + count++) { - ret=ECDSA_sign(EVP_PKEY_ECDSA, buf, 20, ecdsasig, &ecdsasiglen, ecdsa[j]); + ret=ECDSA_sign(0, buf, 20, + ecdsasig, &ecdsasiglen, + ecdsa[j]); if (ret == 0) { BIO_printf(bio_err, "ECDSA sign failure\n"); @@ -1974,7 +1977,8 @@ int MAIN(int argc, char **argv) } /* Perform ECDSA verification test */ - ret=ECDSA_verify(EVP_PKEY_ECDSA, buf, 20, ecdsasig, ecdsasiglen, ecdsa[j]); + ret=ECDSA_verify(0, buf, 20, ecdsasig, + ecdsasiglen, ecdsa[j]); if (ret != 1) { BIO_printf(bio_err,"ECDSA verify failure. No ECDSA verify will be done.\n"); |