Adapted .function files and .data files to new test framework

Changes include:
 - Integers marked with '#' in the .function files.
 - Strings should have "" in .data files.
 - String comparison instead of preprocessor-like replace for e.g. '=='
 - Params and variables cannot have the same name in .function files
This commit is contained in:
Paul Bakker 2013-08-16 13:38:47 +02:00
parent 1934318dce
commit dbd443dca6
33 changed files with 793 additions and 741 deletions

View file

@ -7,7 +7,7 @@ depends_on:POLARSSL_AES_C
END_DEPENDENCIES
BEGIN_CASE
aes_encrypt_ecb:hex_key_string:hex_src_string:hex_dst_string:setkey_result
aes_encrypt_ecb:hex_key_string:hex_src_string:hex_dst_string:#setkey_result
{
unsigned char key_str[100];
unsigned char src_str[100];
@ -36,7 +36,7 @@ aes_encrypt_ecb:hex_key_string:hex_src_string:hex_dst_string:setkey_result
END_CASE
BEGIN_CASE
aes_decrypt_ecb:hex_key_string:hex_src_string:hex_dst_string:setkey_result
aes_decrypt_ecb:hex_key_string:hex_src_string:hex_dst_string:#setkey_result
{
unsigned char key_str[100];
unsigned char src_str[100];
@ -65,7 +65,7 @@ aes_decrypt_ecb:hex_key_string:hex_src_string:hex_dst_string:setkey_result
END_CASE
BEGIN_CASE
aes_encrypt_cbc:hex_key_string:hex_iv_string:hex_src_string:hex_dst_string:cbc_result
aes_encrypt_cbc:hex_key_string:hex_iv_string:hex_src_string:hex_dst_string:#cbc_result
{
unsigned char key_str[100];
unsigned char iv_str[100];
@ -97,7 +97,7 @@ aes_encrypt_cbc:hex_key_string:hex_iv_string:hex_src_string:hex_dst_string:cbc_r
END_CASE
BEGIN_CASE
aes_decrypt_cbc:hex_key_string:hex_iv_string:hex_src_string:hex_dst_string:cbc_result
aes_decrypt_cbc:hex_key_string:hex_iv_string:hex_src_string:hex_dst_string:#cbc_result
{
unsigned char key_str[100];
unsigned char iv_str[100];