From patchwork Thu Oct 22 09:59:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Zhang X-Patchwork-Id: 81779 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F38DBA04DD; Thu, 22 Oct 2020 12:00:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73AA7A9A8; Thu, 22 Oct 2020 11:59:38 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id B4982A992 for ; Thu, 22 Oct 2020 11:59:32 +0200 (CEST) IronPort-SDR: iAZUHwWEPpx/KUEOuX1RV/lZCeVWAIbUpvKX5EEsB4FSmHMMX4fleF3bt9w0QxjR+Nl9z/khC8 UJ6NGhyTisgw== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="229131191" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="229131191" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 02:59:31 -0700 IronPort-SDR: K5K0IfwvdkWzFoZ1DGBriTX3UsODZyfkKjrdhhhZvwDurGQxRDukNE4K2NdKQ6QOfpHa5SIwA4 G+JGHhvCC9SQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="348688693" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.11]) by fmsmga004.fm.intel.com with ESMTP; 22 Oct 2020 02:59:30 -0700 From: Fan Zhang To: dev@dpdk.org Cc: akhil.goyal@nxp.com, Fan Zhang , marchana@marvell.com Date: Thu, 22 Oct 2020 10:59:26 +0100 Message-Id: <20201022095927.587840-2-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022095927.587840-1-roy.fan.zhang@intel.com> References: <20201022095927.587840-1-roy.fan.zhang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [dpdk-dev 1/2] fips_validation: fix missed version line X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes the missing version line in the response file. Fixes: 793650184099 ("examples/fips_validation: fix version compatibility") Cc: marchana@marvell.com Signed-off-by: Fan Zhang Acked-by: Archana Muniganti --- examples/fips_validation/fips_validation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index 7454a03b1..4c3ed80c8 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -118,7 +118,7 @@ fips_test_parse_header(void) if (info.nb_vec_lines) fips_test_parse_version(); - for (i = 1; i < info.nb_vec_lines; i++) { + for (i = 0; i < info.nb_vec_lines; i++) { if (!algo_parsed) { if (strstr(info.vec[i], "AESVS")) { algo_parsed = 1; From patchwork Thu Oct 22 09:59:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Zhang X-Patchwork-Id: 81778 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9C17A04DD; Thu, 22 Oct 2020 11:59:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F16A6A996; Thu, 22 Oct 2020 11:59:36 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 3BA4CA989 for ; Thu, 22 Oct 2020 11:59:33 +0200 (CEST) IronPort-SDR: oWfYGuVZeTd6ewnObSch4lG6pw1owh4yPeV4MXjeGpCKnFfuqTV4/IZMn1IveC91lxJ42u3HLY AhsDw1S+RXhw== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="229131195" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="229131195" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 02:59:32 -0700 IronPort-SDR: BtpCriNf3Khq44DM7PO5GRXSqWuEjAnOmgSmVWLNWulfyH0o4e++Dfsug/ve7UCRZDpmHjhikB 21VeHORnyiWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="348688705" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.11]) by fmsmga004.fm.intel.com with ESMTP; 22 Oct 2020 02:59:31 -0700 From: Fan Zhang To: dev@dpdk.org Cc: akhil.goyal@nxp.com, Fan Zhang Date: Thu, 22 Oct 2020 10:59:27 +0100 Message-Id: <20201022095927.587840-3-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022095927.587840-1-roy.fan.zhang@intel.com> References: <20201022095927.587840-1-roy.fan.zhang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [dpdk-dev 2/2] fips_validation: fix gcm test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes FIPS GCM test of the redundant plaintext string write and insufficient test case support check for some corner cases. Fixes: d09abf2d1007 ("examples/fips_validation: update GCM test") Cc: roy.fan.zhang@intel.com Signed-off-by: Fan Zhang --- examples/fips_validation/fips_validation_gcm.c | 1 - examples/fips_validation/main.c | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index df3caa267..250d09bf9 100644 --- a/examples/fips_validation/fips_validation_gcm.c +++ b/examples/fips_validation/fips_validation_gcm.c @@ -175,7 +175,6 @@ parse_test_gcm_writeback(struct fips_val *val) if (vec.status == RTE_CRYPTO_OP_STATUS_SUCCESS) { fprintf(info.fp_wr, "%s", PT_STR); if (!info.interim_info.gcm_data.is_gmac) { - fprintf(info.fp_wr, "%s", PT_STR); tmp_val.val = val->val; tmp_val.len = vec.pt.len; diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index 07532c956..f3678f056 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -927,10 +927,14 @@ prepare_gmac_xform(struct rte_crypto_sym_xform *xform) if (rte_cryptodev_sym_capability_check_auth(cap, auth_xform->key.length, - auth_xform->digest_length, 0) != 0) { - RTE_LOG(ERR, USER1, "PMD %s key length %u IV length %u\n", + auth_xform->digest_length, + auth_xform->iv.length) != 0) { + + RTE_LOG(ERR, USER1, + "PMD %s key length %u Digest length %u IV length %u\n", info.device_name, auth_xform->key.length, - auth_xform->digest_length); + auth_xform->digest_length, + auth_xform->iv.length); return -EPERM; }