aboutsummaryrefslogtreecommitdiff
path: root/tests/suites/test_suite_aes.function
diff options
context:
space:
mode:
authorPaul Bakker <p.j.bakker@polarssl.org>2013-08-16 13:38:47 +0200
committerPaul Bakker <p.j.bakker@polarssl.org>2013-08-16 13:51:37 +0200
commitdbd443dca61b5d47722615108b2465c7942bcee3 (patch)
treef17459cfcc3adf40ed49f66ce04921c7b474db6a /tests/suites/test_suite_aes.function
parent1934318dce170587bada706089ad1016c7614f92 (diff)
downloadmbedtls-dbd443dca61b5d47722615108b2465c7942bcee3.zip
mbedtls-dbd443dca61b5d47722615108b2465c7942bcee3.tar.gz
mbedtls-dbd443dca61b5d47722615108b2465c7942bcee3.tar.bz2
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
Diffstat (limited to 'tests/suites/test_suite_aes.function')
-rw-r--r--tests/suites/test_suite_aes.function8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/suites/test_suite_aes.function b/tests/suites/test_suite_aes.function
index 6c30853..ce1cb7d 100644
--- a/tests/suites/test_suite_aes.function
+++ b/tests/suites/test_suite_aes.function
@@ -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];