automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw111342 [PATCH] [v2] examples/fips_validation: add parsing for aes_cbc
@ 2022-05-19  6:58 dpdklab
  0 siblings, 0 replies; 2+ messages in thread
From: dpdklab @ 2022-05-19  6:58 UTC (permalink / raw)
  To: test-report; +Cc: dpdk-test-reports

[-- Attachment #1: Type: text/plain, Size: 4088 bytes --]

Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/111342

_apply patch failure_

Submitter: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Date: Thursday, May 19 2022 06:09:15 
Applied on: CommitID:68c050954ff393b894aa3672a5ef1a231597dab0
Apply patch set 111342 failed:

Checking patch examples/fips_validation/fips_validation.c...
error: while searching for:
	/* Vector sets contain the algorithm type, and nothing else we need. */
	if (strstr(algo_str, "AES-GCM"))
		info.algo = FIPS_TEST_ALGO_AES_GCM;
	if (strstr(algo_str, "HMAC"))
		info.algo = FIPS_TEST_ALGO_HMAC;
	if (strstr(algo_str, "CMAC"))
		info.algo = FIPS_TEST_ALGO_AES_CMAC;
	else
		return -EINVAL;


error: patch failed: examples/fips_validation/fips_validation.c:458
Checking patch examples/fips_validation/fips_validation.h...
Hunk #1 succeeded at 95 (offset -8 lines).
error: while searching for:
int
parse_test_cmac_json_init(void);

int
parser_read_cmac_direction_str(const char *key, char *src, struct fips_val *val);
#endif /* RTE_HAS_JANSSON */

error: patch failed: examples/fips_validation/fips_validation.h:263
Checking patch examples/fips_validation/fips_validation_aes.c...
Checking patch examples/fips_validation/main.c...
Hunk #1 succeeded at 1512 (offset -34 lines).
Hunk #2 succeeded at 1522 (offset -34 lines).
Hunk #3 succeeded at 1540 (offset -34 lines).
Hunk #4 succeeded at 1548 (offset -34 lines).
Hunk #5 succeeded at 1590 (offset -34 lines).
error: while searching for:
		}

		if (info.op == FIPS_TEST_DEC_AUTH_VERIF)
			memcpy(vec.iv.val, val.val, AES_BLOCK_SIZE);
	}

	free(val.val);

	return 1;
}

error: patch failed: examples/fips_validation/main.c:1641
error: while searching for:
	case FIPS_TEST_ALGO_AES_CMAC:
		ret = parse_test_cmac_json_init();
		break;
	default:
		return -EINVAL;
	}

error: patch failed: examples/fips_validation/main.c:1945
Applying patch examples/fips_validation/fips_validation.c with 1 reject...
Hunk #1 applied cleanly.
Rejected hunk #2.
Applying patch examples/fips_validation/fips_validation.h with 1 reject...
Hunk #1 applied cleanly.
Rejected hunk #2.
Applied patch examples/fips_validation/fips_validation_aes.c cleanly.
Applying patch examples/fips_validation/main.c with 2 rejects...
Hunk #1 applied cleanly.
Hunk #2 applied cleanly.
Hunk #3 applied cleanly.
Hunk #4 applied cleanly.
Hunk #5 applied cleanly.
Rejected hunk #6.
Rejected hunk #7.
diff a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c	(rejected hunks)
@@ -458,10 +458,12 @@ fips_test_parse_one_json_vector_set(void)
 	/* Vector sets contain the algorithm type, and nothing else we need. */
 	if (strstr(algo_str, "AES-GCM"))
 		info.algo = FIPS_TEST_ALGO_AES_GCM;
-	if (strstr(algo_str, "HMAC"))
+	else if (strstr(algo_str, "HMAC"))
 		info.algo = FIPS_TEST_ALGO_HMAC;
-	if (strstr(algo_str, "CMAC"))
+	else if (strstr(algo_str, "CMAC"))
 		info.algo = FIPS_TEST_ALGO_AES_CMAC;
+	else if (strstr(algo_str, "AES-CBC"))
+		info.algo = FIPS_TEST_ALGO_AES;
 	else
 		return -EINVAL;
 
diff a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h	(rejected hunks)
@@ -263,6 +264,9 @@ parse_test_hmac_json_algorithm(void);
 int
 parse_test_cmac_json_init(void);
 
+int
+parse_test_aes_json_init(void);
+
 int
 parser_read_cmac_direction_str(const char *key, char *src, struct fips_val *val);
 #endif /* RTE_HAS_JANSSON */
diff a/examples/fips_validation/main.c b/examples/fips_validation/main.c	(rejected hunks)
@@ -1641,10 +1663,10 @@ fips_mct_aes_test(void)
 		}
 
 		if (info.op == FIPS_TEST_DEC_AUTH_VERIF)
-			memcpy(vec.iv.val, val.val, AES_BLOCK_SIZE);
+			memcpy(vec.iv.val, val[0].val, AES_BLOCK_SIZE);
 	}
 
-	free(val.val);
+	free(val[0].val);
 
 	return 1;
 }
@@ -1945,6 +1967,9 @@ fips_test_one_test_group(void)
 	case FIPS_TEST_ALGO_AES_CMAC:
 		ret = parse_test_cmac_json_init();
 		break;
+	case FIPS_TEST_ALGO_AES:
+		ret = parse_test_aes_json_init();
+		break;
 	default:
 		return -EINVAL;
 	}

https://lab.dpdk.org/results/dashboard/patchsets/22181/

UNH-IOL DPDK Community Lab

^ permalink raw reply	[flat|nested] 2+ messages in thread

* |WARNING| pw111342 [PATCH v2] examples/fips_validation: add parsing for aes_cbc
       [not found] <20220519060915.3624996-1-gmuthukrishn@marvell.com>
@ 2022-05-19  6:10 ` checkpatch
  0 siblings, 0 replies; 2+ messages in thread
From: checkpatch @ 2022-05-19  6:10 UTC (permalink / raw)
  To: test-report; +Cc: Gowrishankar Muthukrishnan

Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/111342

_coding style issues_


WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#161: FILE: examples/fips_validation/fips_validation_aes.c:29:
+#define ALGO_JSON_STR ^I^I"algorithm"$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#164: FILE: examples/fips_validation/fips_validation_aes.c:32:
+#define KEYLEN_JSON_STR ^I"keyLen"$

total: 0 errors, 2 warnings, 431 lines checked

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-19  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19  6:58 |WARNING| pw111342 [PATCH] [v2] examples/fips_validation: add parsing for aes_cbc dpdklab
     [not found] <20220519060915.3624996-1-gmuthukrishn@marvell.com>
2022-05-19  6:10 ` |WARNING| pw111342 [PATCH v2] " checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).