From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 34E3D1B051 for ; Mon, 9 Jul 2018 20:16:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2018 11:16:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,330,1526367600"; d="scan'208";a="70856728" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga001.fm.intel.com with ESMTP; 09 Jul 2018 11:16:33 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.139]) by IRSMSX152.ger.corp.intel.com ([169.254.6.61]) with mapi id 14.03.0319.002; Mon, 9 Jul 2018 19:16:32 +0100 From: "De Lara Guarch, Pablo" To: Shally Verma CC: "dev@dpdk.org" , "pathreya@caviumnetworks.com" , Sunila Sahu , Ashish Gupta Thread-Topic: [PATCH v4 1/2] test/crypto: add rsa and mod test application Thread-Index: AQHUFHiIEpCEzho5DUKuSOWODVbyzaSHNi+w Date: Mon, 9 Jul 2018 18:16:31 +0000 Message-ID: References: <1530806060-31227-1-git-send-email-shally.verma@caviumnetworks.com> <1530806060-31227-2-git-send-email-shally.verma@caviumnetworks.com> In-Reply-To: <1530806060-31227-2-git-send-email-shally.verma@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTY3MDVkMGEtMDhmOC00Yjk5LTkwYzMtNGYxZWFiYjE2MzhiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMWtrZEFXVjhyV0ZRTnRNWFwvWkt0MERnWkt0RUFEd3BjdlhYa0FyZVlaRlZNT3pHa0V1aFd3WnBTZmxXQjhQcm8ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 1/2] test/crypto: add rsa and mod test application 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: , X-List-Received-Date: Mon, 09 Jul 2018 18:16:36 -0000 > -----Original Message----- > From: Shally Verma [mailto:shally.verma@caviumnetworks.com] > Sent: Thursday, July 5, 2018 4:54 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; pathreya@caviumnetworks.com; Sunila Sahu > ; Ashish Gupta > > Subject: [PATCH v4 1/2] test/crypto: add rsa and mod test application Retitle to "add RSA and Mod tests"? No need to use "test application". >=20 > From: Sunila Sahu >=20 > Test application include test case for : > - RSA encrypt, decrypt, sign and verify > - Modular Inversion and Exponentiation >=20 > Test cases uses predefined test vectors. >=20 > Signed-off-by: Sunila Sahu > Signed-off-by: Shally Verma > Signed-off-by: Ashish Gupta > --- > test/test/Makefile | 1 + > test/test/meson.build | 1 + > test/test/test_cryptodev_asym.c | 836 > ++++++++++++++++++++++++++++ > test/test/test_cryptodev_asym_util.h | 45 ++ > test/test/test_cryptodev_mod_test_vectors.h | 103 ++++ > test/test/test_cryptodev_rsa_test_vectors.h | 90 +++ > 6 files changed, 1076 insertions(+) >=20 > diff --git a/test/test/Makefile b/test/test/Makefile index eccc8ef..d6fb8= 8f > 100644 > --- a/test/test/Makefile > +++ b/test/test/Makefile > @@ -179,6 +179,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_RING) +=3D > test_pmd_ring_perf.c >=20 > SRCS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) +=3D test_cryptodev_blockcipher.c > SRCS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) +=3D test_cryptodev.c > +SRCS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) +=3D test_cryptodev_asym.c >=20 > ifeq ($(CONFIG_RTE_COMPRESSDEV_TEST),y) > SRCS-$(CONFIG_RTE_LIBRTE_COMPRESSDEV) +=3D test_compressdev.c diff --git > a/test/test/meson.build b/test/test/meson.build index a907fd2..06cd6f7 10= 0644 > --- a/test/test/meson.build > +++ b/test/test/meson.build > @@ -22,6 +22,7 @@ test_sources =3D files('commands.c', > 'test_cpuflags.c', > 'test_crc.c', > 'test_cryptodev.c', > + 'test_cryptodev_asym.c', > 'test_cryptodev_blockcipher.c', > 'test_cycles.c', > 'test_debug.c', Add new test to test_names list in meson.build. > diff --git a/test/test/test_cryptodev_asym.c b/test/test/test_cryptodev_a= sym.c > new file mode 100644 index 0000000..9b6ffac > --- /dev/null > +++ b/test/test/test_cryptodev_asym.c > @@ -0,0 +1,836 @@ ... > + snprintf(test_msg, > + ASYM_TEST_MSG_LEN, > + "Modinv :%s length:%lu\n", > + asym_op->modinv.base.data, > + asym_op->modinv.base.length); There is a compilation error on 32 bits: test/test/test_cryptodev_asym.c:1046:25: error: format '%lu' expects argume= nt of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Werror=3Dformat=3D] "Modinv :%s length:%lu\n", ~~^ %u test/test/test_cryptodev_asym.c:1048:4: asym_op->modinv.base.length); ~~~~~~~~~~~~~~~~~~~~~~~~~~~