tests/tinycrypt/aes: Replace spaces by tabs

This commit replaces spaces by tabs in the TinyCrypt AES test.

Three 'space required before the open brace' issues are also
fixed by this commit.

Change-Id: I27e961484899873a25847452d569b50322dba74d
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
Flavio Santes 2016-11-17 05:39:56 -06:00 committed by Anas Nashif
commit bb8f324d94

View file

@ -157,7 +157,7 @@ uint32_t var_text_test(uint32_t r, const uint8_t *in, const uint8_t *out,
(void)tc_aes_encrypt(ciphertext, in, s); (void)tc_aes_encrypt(ciphertext, in, s);
result = check_result(r, out, NUM_OF_NIST_KEYS, result = check_result(r, out, NUM_OF_NIST_KEYS,
ciphertext, sizeof(ciphertext), 0); ciphertext, sizeof(ciphertext), 0);
if (result != TC_FAIL){ if (result != TC_FAIL) {
if (tc_aes_decrypt(decrypted, ciphertext, s) == 0) { if (tc_aes_decrypt(decrypted, ciphertext, s) == 0) {
TC_ERROR("aes_decrypt failed\n"); TC_ERROR("aes_decrypt failed\n");
result = TC_FAIL; result = TC_FAIL;
@ -1086,7 +1086,7 @@ uint32_t test_3(void)
for (i = 0; i < 128; ++i) { for (i = 0; i < 128; ++i) {
result = var_text_test(i, kat_tbl[i].in, kat_tbl[i].out, &s); result = var_text_test(i, kat_tbl[i].in, kat_tbl[i].out, &s);
if (result == TC_FAIL){ if (result == TC_FAIL) {
break; break;
} }
} }
@ -2024,7 +2024,7 @@ uint32_t test_4(void)
for (i = 0; i < NUM_OF_FIXED_KEYS; ++i) { for (i = 0; i < NUM_OF_FIXED_KEYS; ++i) {
result = var_key_test(i, kat_tbl[i].in, kat_tbl[i].out); result = var_key_test(i, kat_tbl[i].in, kat_tbl[i].out);
if (result == TC_FAIL){ if (result == TC_FAIL) {
break; break;
} }
@ -2056,12 +2056,14 @@ void main(void)
} }
result = test_3(); result = test_3();
if (result == TC_FAIL) { /* terminate test */ if (result == TC_FAIL) { /* terminate test */
TC_ERROR("AES128 test #3 (NIST fixed-key and variable-text) failed.\n"); TC_ERROR("AES128 test #3 (NIST fixed-key and variable-text) "
"failed.\n");
goto exitTest; goto exitTest;
} }
result = test_4(); result = test_4();
if (result == TC_FAIL) { /* terminate test */ if (result == TC_FAIL) { /* terminate test */
TC_ERROR("AES128 test #4 (NIST variable-key and fixed-text) failed.\n"); TC_ERROR("AES128 test #4 (NIST variable-key and fixed-text) "
"failed.\n");
goto exitTest; goto exitTest;
} }