Commit 9312de00 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

tests: crypto: style, tag, and category fixes



Fix coding style, test tags and use categories.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 1f2627a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ const u8_t ciphertext[80] = {
/*
 * NIST SP 800-38a CBC Test for encryption and decryption.
 */
void test_1_and_2(void)
void test_sp_800_38a_encrypt_decrypt(void)
{

	TC_START("Performing AES128 tests:");
+2 −2
Original line number Diff line number Diff line
@@ -5,12 +5,12 @@
 */

#include <ztest.h>
extern void test_1_and_2(void);
extern void test_sp_800_38a_encrypt_decrypt(void);

/**test case main entry*/
void test_main(void)
{
	ztest_test_suite(test_cbc_fn,
		ztest_unit_test(test_1_and_2));
		ztest_unit_test(test_sp_800_38a_encrypt_decrypt));
	ztest_run_test_suite(test_cbc_fn);
}
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@
/*
 * NIST SP 800-38a CTR Test for encryption and decryption.
 */
void test_1_and_2(void)
void test_sp_800_38a_encrypt_decrypt(void)
{
	TC_START("Performing AES128-CTR mode tests:");

+2 −2
Original line number Diff line number Diff line
@@ -5,12 +5,12 @@
 */

#include <ztest.h>
extern void test_1_and_2(void);
extern void test_sp_800_38a_encrypt_decrypt(void);

/**test case main entry*/
void test_main(void)
{
	ztest_test_suite(test_ctr_mode_fn,
		ztest_unit_test(test_1_and_2));
		ztest_unit_test(test_sp_800_38a_encrypt_decrypt));
	ztest_run_test_suite(test_ctr_mode_fn);
}
+7 −7
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ u32_t do_hmac_test(TCHmacState_t h, u32_t testnum, const u8_t *data,
/*
 * NIST test vectors for encryption.
 */
void test_1(void)
void test_hmac_1(void)
{
	u32_t result = TC_PASS;

@@ -94,7 +94,7 @@ void test_1(void)
	zassert_false(result, "HMAC test #7 failed");
}

void test_2(void)
void test_hmac_2(void)
{
	u32_t result = TC_PASS;

@@ -128,7 +128,7 @@ void test_2(void)
	zassert_false(result, "HMAC test #7 failed");
}

void test_3(void)
void test_hmac_3(void)
{
	u32_t result = TC_PASS;

@@ -168,7 +168,7 @@ void test_3(void)
	zassert_false(result, "HMAC test #3 failed");
}

void test_4(void)
void test_hmac_4(void)
{
	u32_t result = TC_PASS;

@@ -210,7 +210,7 @@ void test_4(void)
	zassert_false(result, "HMAC test #4 failed");
}

void test_5(void)
void test_hmac_5(void)
{
	u32_t result = TC_PASS;

@@ -244,7 +244,7 @@ void test_5(void)
	zassert_false(result, "HMAC test #5 failed");
}

void test_6(void)
void test_hmac_6(void)
{
	u32_t result = TC_PASS;

@@ -302,7 +302,7 @@ void test_6(void)
	zassert_false(result, "HMAC test #6 failed");
}

void test_7(void)
void test_hmac_7(void)
{
	u32_t result = TC_PASS;

Loading