[test suite] added fko_new_with_data() call with SPA data that is too short

This commit is contained in:
Michael Rash
2014-05-25 15:08:31 -04:00
parent 00ea2ce0ef
commit d625a24a87
+5 -1
View File
@@ -281,7 +281,6 @@ test_loop_compounded(void)
} else {
printf("fko_get_spa_data(): %s\n", fko_errstr(res));
}
} else {
printf("fko_spa_data_final(): %s\n", fko_errstr(res));
}
@@ -491,6 +490,11 @@ test_loop(int new_ctx_flag, int destroy_ctx_flag)
spa_calls++;
}
printf("fko_new_with_data(): %s (data: %s)\n",
fko_errstr(fko_new_with_data(&decrypt_ctx, "tooshort", ENC_KEY,
strlen(ENC_KEY), FKO_ENC_MODE_CBC, HMAC_KEY, strlen(HMAC_KEY),
FKO_HMAC_SHA256)), "tooshort");
return;
}