From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 4BF95378E for ; Sun, 18 Sep 2016 08:04:10 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 17 Sep 2016 23:04:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,355,1470726000"; d="scan'208";a="1058331013" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 17 Sep 2016 23:04:09 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sat, 17 Sep 2016 23:04:09 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sat, 17 Sep 2016 23:04:08 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.150]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.102]) with mapi id 14.03.0248.002; Sun, 18 Sep 2016 14:03:30 +0800 From: "Chen, Zhaoyan" To: "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests l2fwd_crypto: add sha224 and sha384 algorithm check Thread-Index: AQHSEWuwxyR+2E8OlUqHaG9/gbpfUKB+waWw Date: Sun, 18 Sep 2016 06:03:28 +0000 Message-ID: <9DEEADBC57E43F4DA73B571777FECECA3A58EDDC@shsmsx102.ccr.corp.intel.com> References: <1474175712-7838-1-git-send-email-yong.liu@intel.com> In-Reply-To: <1474175712-7838-1-git-send-email-yong.liu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_PUBLIC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWE0M2I5NjUtZjlhYi00MGYzLTgwYWEtM2JhOTc4YzY5ZWEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS45LjYuNiIsIlRydXN0ZWRMYWJlbEhhc2giOiIxZEZyMUNpczNCNHJXWll6SXBVTGl6ZkM0c2FSbTJ5bGNCMmwzQmFuQnFnPSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] tests l2fwd_crypto: add sha224 and sha384 algorithm check X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 06:04:11 -0000 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Marvin Liu > Sent: Sunday, September 18, 2016 1:15 PM > To: dts@dpdk.org > Cc: Liu, Yong > Subject: [dts] [PATCH] tests l2fwd_crypto: add sha224 and sha384 algorith= m > check >=20 > Signed-off-by: Marvin Liu >=20 > diff --git a/tests/TestSuite_l2fwd_crypto.py > b/tests/TestSuite_l2fwd_crypto.py index 76f60ba..3dd5344 100644 > --- a/tests/TestSuite_l2fwd_crypto.py > +++ b/tests/TestSuite_l2fwd_crypto.py > @@ -152,11 +152,21 @@ class TestL2fwdCrypto(TestCase): > test_vectors, "qat_h_SHA1_HMAC_01"): > result =3D False >=20 > + self.logger.info("Test qat_h_SHA224_HMAC_01") > + if not self.__execute_l2fwd_crypto_test( > + test_vectors, "qat_h_SHA224_HMAC_01"): > + result =3D False > + > self.logger.info("Test qat_h_SHA256_HMAC_01") > if not self.__execute_l2fwd_crypto_test( > test_vectors, "qat_h_SHA256_HMAC_01"): > result =3D False >=20 > + self.logger.info("Test qat_h_SHA384_HMAC_01") > + if not self.__execute_l2fwd_crypto_test( > + test_vectors, "qat_h_SHA384_HMAC_01"): > + result =3D False > + > self.logger.info("Test qat_h_SHA512_HMAC_01") > if not self.__execute_l2fwd_crypto_test( > test_vectors, "qat_h_SHA512_HMAC_01"): > @@ -547,6 +557,25 @@ test_vectors =3D { > "output_hash": "12E2EF8B7EBFE556C73307B04E1E46D12BA34884" > }, >=20 > + "qat_h_SHA224_HMAC_01": { > + "vdev": "", > + "chain": "HASH_ONLY", > + "cdev_type": "ANY", > + "cipher_algo": "", > + "cipher_op": "", > + "cipher_key": "", > + "iv": "", > + "auth_algo": "SHA224_HMAC", > + "auth_op": "GENERATE", > + "auth_key": > "000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f00 > 0102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f", > + "auth_key_random_size": "", > + "aad": "", > + "aad_random_size": "", > + "input": > "111111111111111111111111111111111111111111111111111111111111111111 > 11111111111111111111111111111100000000000000000000000000000000", > + "output_cipher": "", > + "output_hash": > "45BBF9A798501F225E2C9671863B96BF2DD1C5DAC5DB554A7B9BDB6D" > + }, > + > "qat_h_SHA256_HMAC_01": { > "vdev": "", > "chain": "HASH_ONLY", > @@ -566,6 +595,26 @@ test_vectors =3D { > "output_hash": > "AC9E0BA3A0716F4F4A2734B407BE28D6F276CE0472B827D6EE47B7E518C2BC0 > D" > }, >=20 > + "qat_h_SHA384_HMAC_01": { > + "vdev": "", > + "chain": "HASH_ONLY", > + "cdev_type": "ANY", > + "cipher_algo": "", > + "cipher_op": "", > + "cipher_key": "", > + "iv": "", > + "auth_algo": "SHA384_HMAC", > + "auth_op": "GENERATE", > + "auth_key": > "000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f00 > 0102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f00010 > 2030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f00010203 > 0405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f", > + "auth_key_random_size": "", > + "auth_key_random_size": "", > + "aad": "", > + "aad_random_size": "", > + "input": > "111111111111111111111111111111111111111111111111111111111111111111 > 11111111111111111111111111111100000000000000000000000000000000", > + "output_cipher": "", > + "output_hash": > "2CE1BD8F18A93A63AF04C21EDE42EE4D8468C6DFD17474B64D2C36E6CAA9F9 > D177B424F91DAB8D2D4CAF2AAF63FFAE09" > + }, > + > "qat_h_SHA512_HMAC_01": { > "vdev": "", > "chain": "HASH_ONLY", > -- > 1.9.3 Acked-by: Zhaoyan Chen