Add 'exit' label and variable initialization to relevant test suite functions

This commit is contained in:
Paul Bakker
2014-07-10 15:26:12 +02:00
parent 318d0fe844
commit bd51b262d1
31 changed files with 235 additions and 28 deletions

View File

@@ -36,6 +36,7 @@ void blowfish_encrypt_ecb( char *hex_key_string, char *hex_src_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
}
exit:
blowfish_free( &ctx );
}
/* END_CASE */
@@ -69,6 +70,7 @@ void blowfish_decrypt_ecb( char *hex_key_string, char *hex_src_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
}
exit:
blowfish_free( &ctx );
}
/* END_CASE */
@@ -107,6 +109,7 @@ void blowfish_encrypt_cbc( char *hex_key_string, char *hex_iv_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
}
exit:
blowfish_free( &ctx );
}
/* END_CASE */
@@ -144,6 +147,7 @@ void blowfish_decrypt_cbc( char *hex_key_string, char *hex_iv_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
}
exit:
blowfish_free( &ctx );
}
/* END_CASE */
@@ -178,6 +182,7 @@ void blowfish_encrypt_cfb64( char *hex_key_string, char *hex_iv_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
exit:
blowfish_free( &ctx );
}
/* END_CASE */
@@ -212,6 +217,7 @@ void blowfish_decrypt_cfb64( char *hex_key_string, char *hex_iv_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
exit:
blowfish_free( &ctx );
}
/* END_CASE */
@@ -248,6 +254,7 @@ void blowfish_encrypt_ctr( char *hex_key_string, char *hex_iv_string,
TEST_ASSERT( strcmp( (char *) dst_str, hex_dst_string ) == 0 );
exit:
blowfish_free( &ctx );
}
/* END_CASE */