[test suite] added fko_new_with_data() call with SPA data that is too short
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user