From d625a24a87e541295f3457867e8933bcd3eb54e5 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sun, 25 May 2014 15:08:31 -0400 Subject: [PATCH] [test suite] added fko_new_with_data() call with SPA data that is too short --- test/fko-wrapper/fko_wrapper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/fko-wrapper/fko_wrapper.c b/test/fko-wrapper/fko_wrapper.c index 689acebf..6d24628b 100644 --- a/test/fko-wrapper/fko_wrapper.c +++ b/test/fko-wrapper/fko_wrapper.c @@ -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; }