Skip to content

Commit

Permalink
Print curve type for signature tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Oct 12, 2011
1 parent 35882b6 commit 5936521
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion fips/fips_test_suite.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ POST_ID id_list[] = {
{NID_des_ede3_ecb, "DES-EDE3-ECB"},
{NID_secp224r1, "P-224"},
{NID_sect233r1, "B-233"},
{NID_sect233k1, "K-233"},
{NID_X9_62_prime256v1, "P-256"},
{NID_secp384r1, "P-384"},
{NID_secp521r1, "P-521"},
Expand Down Expand Up @@ -850,7 +851,17 @@ static int post_cb(int op, int id, int subid, void *ex)
{
EVP_PKEY *pkey = ex;
keytype = pkey->type;
exstr = lookup_id(keytype);
if (keytype == EVP_PKEY_EC)
{
const EC_GROUP *grp;
int cnid;
grp = EC_KEY_get0_group(pkey->pkey.ec);
cnid = EC_GROUP_get_curve_name(grp);
sprintf(asctmp, "ECDSA %s", lookup_id(cnid));
exstr = asctmp;
}
else
exstr = lookup_id(keytype);
}
idstr = "Signature";
break;
Expand Down

0 comments on commit 5936521

Please sign in to comment.