From 3c17460a1ff97cdf0545c6f2fcb559036f34bedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 17 Nov 2014 11:52:51 +0100 Subject: [PATCH] Fix warning in RSA test suite --- tests/suites/test_suite_rsa.function | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/suites/test_suite_rsa.function b/tests/suites/test_suite_rsa.function index 5ebecc86c..19b690f88 100644 --- a/tests/suites/test_suite_rsa.function +++ b/tests/suites/test_suite_rsa.function @@ -93,6 +93,8 @@ rsa_pkcs1_sign:message_hex_string:padding_mode:digest:mod:radix_P:input_P:radix_ sha4( message_str, msg_len, hash_result, 0 ); break; #endif + default: + ; /* do nothing */ } TEST_ASSERT( rsa_pkcs1_sign( &ctx, rnd_pseudo_rand, &rnd_info, RSA_PRIVATE, {digest}, 0, hash_result, output ) == {result} ); @@ -169,6 +171,8 @@ rsa_pkcs1_verify:message_hex_string:padding_mode:digest:mod:radix_N:input_N:radi sha4( message_str, msg_len, hash_result, 0 ); break; #endif + default: + ; /* do nothing */ } TEST_ASSERT( rsa_pkcs1_verify( &ctx, NULL, NULL, RSA_PUBLIC, {digest}, 0, hash_result, result_str ) == {result} );