{EVP_PKEY_RSA, "RSA"},
{EVP_PKEY_DSA, "DSA"},
{EVP_PKEY_EC, "ECDSA"},
+ {NID_aes_128_cbc, "AES-128-CBC"},
+ {NID_aes_192_cbc, "AES-192-CBC"},
+ {NID_aes_256_cbc, "AES-256-CBC"},
{NID_aes_128_ecb, "AES-128-ECB"},
+ {NID_des_ede3_cbc, "DES-EDE3-CBC"},
{NID_des_ede3_ecb, "DES-EDE3-ECB"},
{0, NULL}
};
if (n->id == id)
return n->name;
}
- sprintf(out, "ID=%d\n", id);
+ sprintf(out, "ID=%d", id);
return out;
}
static int post_cb(int op, int id, int subid, void *ex)
{
const char *idstr, *exstr = "";
+ char asctmp[20];
int keytype = -1;
switch(id)
{
case FIPS_TEST_CMAC:
idstr = "CMAC";
+ exstr = lookup_id(subid);
break;
case FIPS_TEST_GCM:
case FIPS_TEST_X931:
idstr = "X9.31 PRNG";
+ sprintf(asctmp, "keylen=%d", subid);
+ exstr = asctmp;
break;
case FIPS_TEST_DRBG:
fail_id = FIPS_TEST_DIGEST;
} else if (!strcmp(argv[1], "hmac")) {
fail_id = FIPS_TEST_HMAC;
+ } else if (!strcmp(argv[1], "cmac")) {
+ fail_id = FIPS_TEST_CMAC;
} else if (!strcmp(argv[1], "drbg")) {
FIPS_corrupt_drbg();
} else if (!strcmp(argv[1], "rng")) {
- FIPS_corrupt_x931();
+ fail_id = FIPS_TEST_X931;
} else if (!strcmp(argv[1], "rngstick")) {
do_rng_stick = 1;
no_exit = 1;