From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F855A00C3; Fri, 13 May 2022 12:26:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 186A640DF7; Fri, 13 May 2022 12:26:41 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 542FD40DDE for ; Fri, 13 May 2022 12:26:39 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24CNcfS2010448; Fri, 13 May 2022 03:26:38 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2102.outbound.protection.outlook.com [104.47.58.102]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3g1c37a0g1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 May 2022 03:26:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dBQVU9YkhPABncuLCLOqx173GPyZrpbLBpV/UHIDpclYrbqr22xZdtx7GMNh+PVzkrURlQu0s3RhFkLma0FzOk+ud+Viz+B3iwOFcu+fCLK8V6An85XsazAbt4uTrC3nQnF55KGjkVZQ5eJ9huxUH5xu2wLhScavzyCpCKmFbKFmiIKzlOFawquOVhNl5AyJKmXWXUln2cmkTIsvIC7OjXVGWgEZ3M0nfgT2Q17w1qOQpQZPrsBU3UKGeK/qZFTw4vFhYT/Jj1Vuah/6eGnRsPkIUklAPXtOEMPP3Mo+AU75bkYj9DkjHyvRLR9A22lWMXen0Y2XbAA15ZSvfKXTlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jkbC008RrFHQv3HkWg+Z4AEfcUZBIP1tXlsuVi9i+S8=; b=DDQ+ngqzjBV94Wnf0X60rlr7mRbGDRatQlPlYk1G3hDMdegrcm4FsOmGSzW9+1EKrzcw4HoP3f35Kr2wGuRfeI7gRFCP1UF9aL6gdB6Vag4E+J4j8IliFdSNkIGXv7C1POpPu/EAU9HdzCsNU8/jgmTvGxzAwr+drOD+pnFXxE06ZVYfbDHXyWBDoXaiTloPtg0h3TM7EZI1yxhKJQd09NK7u5irezzv0ztB7ZdJhKzppACarwunv1od/2oBEOqYtNsNFvCOU7nnF0tepFXwsgwaJ11cNqpwbQGt6tQUfVGupNb5wK43WT7SZddPgcI9HQgqU120raXK8X4oCRfs6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jkbC008RrFHQv3HkWg+Z4AEfcUZBIP1tXlsuVi9i+S8=; b=uas8Z2pNPyDzv5UTeHTSwVjxuhPen0mrCx+8SWol/P+T3kwQjUhTkdX1aETjDNFq3dOf0oypLFSfFXjHUT/qYdpAXlGT/IJ2/9V+cYK6HHqMZ2RkTTn+zwKc7my84Vxlazb216ghBPLTqp/WMBvGd18y66lscMQHiAo8fGsOlCQ= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by MW5PR18MB5128.namprd18.prod.outlook.com (2603:10b6:303:1c2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.14; Fri, 13 May 2022 10:26:35 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::9c76:3b01:eb04:db4d]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::9c76:3b01:eb04:db4d%6]) with mapi id 15.20.5250.015; Fri, 13 May 2022 10:26:35 +0000 From: Akhil Goyal To: Gagandeep Singh , "dev@dpdk.org" , "Power, Ciara" , "Zhang, Roy Fan" Subject: RE: [EXT] [PATCH 7/8] test/crypto: add external buffer test case Thread-Topic: [EXT] [PATCH 7/8] test/crypto: add external buffer test case Thread-Index: AQHYWFsTA7h2AfrRQU+T7F+EP8wNAa0cr5yQ Date: Fri, 13 May 2022 10:26:34 +0000 Message-ID: References: <20220425041423.2232034-1-g.singh@nxp.com> <20220425041423.2232034-7-g.singh@nxp.com> In-Reply-To: <20220425041423.2232034-7-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c287edd4-827e-4107-a43a-08da34cb0e53 x-ms-traffictypediagnostic: MW5PR18MB5128:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Z8YiHm1NzMq7657gfPDFwOj7kh+Cbb3Ogzx1dsuWsp7wTg5Bo1AFmORY81nTIqY+3q4YWzfaIMuw5rdwtFCWDzVwmUR9JYxa2cqLbulI6t/QaAWi5b9S8lOUl8gh0zOjT4h+AA5RtN+AhQbKekGJEQJqXqIR26zxWDkSI9EiqXjBVCjfU1ufJrihOpCkbPkEkc5vAV/HfXBnokKIn3Nw173qSKcm8yNAz9e7EjakVxvjHQG5jKWW2+n251OGmvrCVH6a49TUzA/8MV3EsRjEZahoCRZg5HMhBrbW+G5taYBP9klzan33pTb6hC7ST+Pl/NuAivMIWMfE5639WW9Usy5VUPEkUr5mmea6j6vykY5GBCdG6VY5ltbrYVOknpJkz1RAm0Hfr/OMDEmCm6mZGHicvQxoCK6g7bGb3TRNLBIY2UW7wwRiYuZLuOlWCwp3yqJT0zAiokME+pdPmT6Wq7ShPCnYYL8A7KsnOMFR7JEvqZWI4aon1PbQJWs7vXaVbYJb28WU32dsuEZGOa/h2JVI8JlU6PeFb9KJUq2aco9/x4fIjMPyncLBjHgz2lHBQWv3vON/eYsU/IKDJa8uN/2+CfQ6i57sHM+HMRf2hu6CHe1E6cAbp5IRGz4fKr2ZEox61sOwnyH+j6WcsIHdn9Q7JlNR4q1iwGoKX3DcaXKJBClrznaNnwqoAu3HLiI4MwFS40/uIFlyV7XEXgAigg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(26005)(9686003)(55236004)(6506007)(71200400001)(8676002)(7696005)(122000001)(66446008)(66556008)(508600001)(86362001)(38100700002)(38070700005)(33656002)(55016003)(64756008)(66476007)(186003)(316002)(52536014)(110136005)(5660300002)(8936002)(2906002)(66946007)(83380400001)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?IWWac7IAUyBYG6Dqjvz60izxd7ZNgU+RfcXcM63in9n7e3wG+N7uJdKCyz/I?= =?us-ascii?Q?E49NBLaBumu9jwNZBKfq9X65omkYkYdCQxODarJA/ZbM0M+lbShrcDUi0fes?= =?us-ascii?Q?fFNGksEZuKmVXvp0KBHbCBvxDE3Pxq/1UcY5scR9TmHrcwG+P762BDmEwhUb?= =?us-ascii?Q?oTwkHNq+OG7YqNWmaeoYKFcnYwW8M5ToDl6i4Rre9P8CXQWhZ1B3t4zem3iV?= =?us-ascii?Q?QNXutZ3t9jPg2M/TV0CeUxfCmKj0Yla3X5JhFETKZCeN2MASGJbd5LkEttKi?= =?us-ascii?Q?b4OJMtieDiVEahvdwxFeO5ikJ4Jqo9/Vb2FTmJ86sU8iVPmwRJB0bpAazlfK?= =?us-ascii?Q?9j5SHC9PnDp+5+DWNJv42ePm/0liq86/+v9ccouIfbL3CdsmPuz/lUlRPOPu?= =?us-ascii?Q?8e3L32/EDCGfPiP67yL/qucufjAnqDGpZILsS0ClU5jtK/FBh1JLH43brOuv?= =?us-ascii?Q?Fw04aAUZTZ/mwDZ3D/CGPu/h9LuxwqeyP/qs2KcG6Y8e0Q/WifJswb/cjnUx?= =?us-ascii?Q?9GUfhlBEamDVT/DOnw/yadE84UHSXmzbxyu79K8M6RcfYTKpQkfsxs21L3zy?= =?us-ascii?Q?3+7kSGuyaKr0X+mCktjI9D6UOh/uOSnNrYNoqFGOFYajaAnkDVahvbtgodBk?= =?us-ascii?Q?Zpq1oK/kpr18s+Km32DmxblmL6d/ybY07XzMaHdwEH+GyGkq3ejlusneSZzL?= =?us-ascii?Q?0mCytjegRzyDqeExvojKWK7UMGz8KBX9jULSJxhWa5oYY+r/Sii9yZ+P/AQu?= =?us-ascii?Q?S1WIUQrTgwvaHAnZDymDrfzOlhG0iKw2EOg8S1occatn/gg0TwQN0UnZHF8C?= =?us-ascii?Q?dfyusjndy6pCf0qu7rmB/31qzLGEJmFO5h/LdLdtkf9dY5IFiAmH/pv4vtIu?= =?us-ascii?Q?S3vgV1wnssWDE35faCxSGRqGXnzteRhy2C063FVAHqzZ7pVObaI1M0bUBjc8?= =?us-ascii?Q?BxYLPtZc0P/5ewAm6HDr0KW1nX70Rb5weNvQrhc8J5EDlJRiDdpd5n31Pbn2?= =?us-ascii?Q?EesqQuNyGsU3HxpCodZ657pbHFlwBPHNR68FKygK+6WvjUpacO8h3ySo/0bs?= =?us-ascii?Q?nbrhHQBeyNCSsosBMqdqDuAq62KtD349fJgtO63Kmx8QI8ovJMbdI4QB/H5s?= =?us-ascii?Q?rhKJ/NQ3YPeIECjgLHilznpvyC2FCWtIAqyxa/DZ+5/MOtI0nahJYahiFBve?= =?us-ascii?Q?IfAcYdaF/hSJ96DZY+QGCQc6QW0ASKIwHI30CDOtJaCl9qk6iEgBbyV0zJ1J?= =?us-ascii?Q?sQnbg3NwRA7fpJCSR8eyyQQivyTyDRC9HfhOGGedmDCluOXp8MqcbwpPZNF3?= =?us-ascii?Q?E7Q+jfLjwUcmELrhhIPmxsV6prg6mzeV/aouijZQk9esJKPjY4pPTcmIMm4a?= =?us-ascii?Q?L/QBT9cHo25ipWaXWDHnA4QyNg0lAsmPgo1iDs1Y9UX2pwF+m3WM3NDmmVvc?= =?us-ascii?Q?glCewJmXVT/CALQOt9B/Xjfcz3n8TlmIXeQzwqzNrmUA6i7s6iJQkWImzssN?= =?us-ascii?Q?NQSdc07w0XzKc8IvRstFiZy65EXguRV3qcqy54Cfwp9AVKwCkNE8CYR3DJDE?= =?us-ascii?Q?+p8FGjdkQx6pdB+RZLbRZUcuoPUGC4Qo7+r4i1IbMP9CNlQtEov3xSY3XvOC?= =?us-ascii?Q?zSZEX6HxX2G+kMVRI55GgSKuOwuHVvFVHDmX+X/ermbvBbZD1iwrZT5VB6qo?= =?us-ascii?Q?UtGoEe0DLDVuO/ny6TSrpceMxiJW7yQjuW8MSGzmtTs5bHCvsyLHv9LZhOWd?= =?us-ascii?Q?xBcN2vjNnw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c287edd4-827e-4107-a43a-08da34cb0e53 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2022 10:26:34.9402 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8hh++leZ7QNE3V8zaRap+HTtM6acOKjdXHzKbsvQK2Qioj6QSYXYhqVeQoBYHPJ7XmWAlymGFAYYt01swT7noA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR18MB5128 X-Proofpoint-GUID: C26a6vMjnoqMsixljTFw-QVDiq1As_BS X-Proofpoint-ORIG-GUID: C26a6vMjnoqMsixljTFw-QVDiq1As_BS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-13_04,2022-05-13_01,2022-02-23_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Add a test case to verify crypto functionality > with external buffer. >=20 > Signed-off-by: Gagandeep Singh > --- > app/test/test_cryptodev.c | 163 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 163 insertions(+) >=20 > diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c > index 0b53ec0078..b4ffb4fd94 100644 > --- a/app/test/test_cryptodev.c > +++ b/app/test/test_cryptodev.c > @@ -2270,6 +2270,167 @@ test_AES_CBC_HMAC_SHA1_encrypt_digest(void) > return TEST_SUCCESS; > } >=20 > +static inline void > +ext_buf_free_callback_fn(void *addr, > + void *ext_buf_ptr __rte_unused) > +{ > + rte_free(addr); > +} > + > +static int > +test_AES_CBC_HMAC_SHA1_encrypt_digest_ext_buffer(void) > +{ > + struct crypto_testsuite_params *ts_params =3D &testsuite_params; > + struct crypto_unittest_params *ut_params =3D &unittest_params; > + int status; > + void *buf; > + rte_iova_t iova; > + uint16_t buf_len =3D QUOTE_1024_BYTES; > + struct rte_mbuf_ext_shared_info *shinfo =3D NULL; > + struct rte_mbuf *m; > + > + Extra line > + /* Verify the capabilities */ > + struct rte_cryptodev_sym_capability_idx cap_idx; > + cap_idx.type =3D RTE_CRYPTO_SYM_XFORM_AUTH; > + cap_idx.algo.auth =3D RTE_CRYPTO_AUTH_SHA1_HMAC; > + if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], > + &cap_idx) =3D=3D NULL) > + return TEST_SKIPPED; > + cap_idx.type =3D RTE_CRYPTO_SYM_XFORM_CIPHER; > + cap_idx.algo.cipher =3D RTE_CRYPTO_CIPHER_AES_CBC; > + if (rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], > + &cap_idx) =3D=3D NULL) > + return TEST_SKIPPED; Repeated code. > + > + buf =3D rte_malloc(NULL, buf_len, RTE_CACHE_LINE_SIZE); > + if (buf =3D=3D NULL) > + return TEST_SKIPPED; Why skipped? It is an error if malloc is failed. > + > + rte_memcpy(buf, catch_22_quote, QUOTE_512_BYTES); > + shinfo =3D rte_pktmbuf_ext_shinfo_init_helper(buf, &buf_len, > + ext_buf_free_callback_fn, NULL); > + if (unlikely(shinfo =3D=3D NULL)) { > + rte_free(buf); > + return -1; > + } > + iova =3D rte_malloc_virt2iova(buf); > + m =3D rte_pktmbuf_alloc(ts_params->mbuf_pool); > + if (m =3D=3D NULL) > + return TEST_SKIPPED; Again, it should be TEST_FAILED > + rte_pktmbuf_attach_extbuf(m, buf, iova, buf_len, shinfo); > + rte_pktmbuf_reset_headroom(m); > + m->pkt_len =3D QUOTE_512_BYTES; > + m->data_len =3D QUOTE_512_BYTES; Please use proper APIs to append data and increase lengths. =20 > + m->data_off =3D 0; Why is data off rewritten as 0? It is modified by rte_pktmbuf_reset_headroom(). > + > + ut_params->ibuf =3D m; > + > + ut_params->digest =3D (uint8_t *)rte_pktmbuf_append(ut_params->ibuf, > + DIGEST_BYTE_LENGTH_SHA1); > + TEST_ASSERT_NOT_NULL(ut_params->digest, "no room to append > digest"); > + > + /* Setup Cipher Parameters */ > + ut_params->cipher_xform.type =3D RTE_CRYPTO_SYM_XFORM_CIPHER; > + ut_params->cipher_xform.next =3D &ut_params->auth_xform; > + > + ut_params->cipher_xform.cipher.algo =3D > RTE_CRYPTO_CIPHER_AES_CBC; > + ut_params->cipher_xform.cipher.op =3D > RTE_CRYPTO_CIPHER_OP_ENCRYPT; > + ut_params->cipher_xform.cipher.key.data =3D aes_cbc_key; > + ut_params->cipher_xform.cipher.key.length =3D > CIPHER_KEY_LENGTH_AES_CBC; > + ut_params->cipher_xform.cipher.iv.offset =3D IV_OFFSET; > + ut_params->cipher_xform.cipher.iv.length =3D > CIPHER_IV_LENGTH_AES_CBC; > + > + /* Setup HMAC Parameters */ > + ut_params->auth_xform.type =3D RTE_CRYPTO_SYM_XFORM_AUTH; > + > + ut_params->auth_xform.next =3D NULL; > + > + ut_params->auth_xform.auth.op =3D RTE_CRYPTO_AUTH_OP_GENERATE; > + ut_params->auth_xform.auth.algo =3D RTE_CRYPTO_AUTH_SHA1_HMAC; > + ut_params->auth_xform.auth.key.length =3D HMAC_KEY_LENGTH_SHA1; > + ut_params->auth_xform.auth.key.data =3D hmac_sha1_key; > + ut_params->auth_xform.auth.digest_length =3D > DIGEST_BYTE_LENGTH_SHA1; > + > + ut_params->sess =3D rte_cryptodev_sym_session_create( > + ts_params->session_mpool); > + TEST_ASSERT_NOT_NULL(ut_params->sess, "Session creation failed"); > + > + /* Create crypto session*/ > + status =3D rte_cryptodev_sym_session_init(ts_params->valid_devs[0], > + ut_params->sess, &ut_params->cipher_xform, > + ts_params->session_priv_mpool); > + > + if (status =3D=3D -ENOTSUP) > + return TEST_SKIPPED; > + > + TEST_ASSERT_EQUAL(status, 0, "Session init failed"); > + > + /* Generate crypto op data structure */ > + ut_params->op =3D rte_crypto_op_alloc(ts_params->op_mpool, > + RTE_CRYPTO_OP_TYPE_SYMMETRIC); > + TEST_ASSERT_NOT_NULL(ut_params->op, > + "Failed to allocate symmetric crypto operation struct"); > + > + rte_crypto_op_attach_sym_session(ut_params->op, ut_params->sess); > + > + struct rte_crypto_sym_op *sym_op =3D ut_params->op->sym; > + > + /* set crypto operation source mbuf */ > + sym_op->m_src =3D ut_params->ibuf; > + > + /* Set crypto operation authentication parameters */ > + sym_op->auth.digest.data =3D ut_params->digest; > + sym_op->auth.digest.phys_addr =3D rte_pktmbuf_iova_offset( > + ut_params->ibuf, QUOTE_512_BYTES); > + > + sym_op->auth.data.offset =3D 0; > + sym_op->auth.data.length =3D QUOTE_512_BYTES; > + > + /* Copy IV at the end of the crypto operation */ > + rte_memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, > IV_OFFSET), > + aes_cbc_iv, CIPHER_IV_LENGTH_AES_CBC); > + > + /* Set crypto operation cipher parameters */ > + sym_op->cipher.data.offset =3D 0; > + sym_op->cipher.data.length =3D QUOTE_512_BYTES; > + > + /* Process crypto operation */ > + if (gbl_action_type =3D=3D RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) > + process_cpu_crypt_auth_op(ts_params->valid_devs[0], > + ut_params->op); > + else > + TEST_ASSERT_NOT_NULL( > + process_crypto_request(ts_params->valid_devs[0], > + ut_params->op), > + "failed to process sym crypto op"); > + > + TEST_ASSERT_EQUAL(ut_params->op->status, > RTE_CRYPTO_OP_STATUS_SUCCESS, > + "crypto op processing failed"); > + > + /* Validate obuf */ > + uint8_t *ciphertext =3D rte_pktmbuf_mtod(ut_params->op->sym->m_src, > + uint8_t *); > + > + TEST_ASSERT_BUFFERS_ARE_EQUAL(ciphertext, > + catch_22_quote_2_512_bytes_AES_CBC_ciphertext, > + QUOTE_512_BYTES, > + "ciphertext data not as expected"); > + > + uint8_t *digest =3D ciphertext + QUOTE_512_BYTES; > + > + TEST_ASSERT_BUFFERS_ARE_EQUAL(digest, > + > catch_22_quote_2_512_bytes_AES_CBC_HMAC_SHA1_digest, > + gbl_driver_id =3D=3D rte_cryptodev_driver_id_get( > + > RTE_STR(CRYPTODEV_NAME_AESNI_MB_PMD)) ? > + > TRUNCATED_DIGEST_BYTE_LENGTH_SHA1 : > + DIGEST_BYTE_LENGTH_SHA1, > + "Generated digest data not as expected"); > + Above check for AESNI_MB not required. > + return TEST_SUCCESS; > +} > + > + > /* ***** AES-CBC / HMAC-SHA512 Hash Tests ***** */ >=20 > #define HMAC_KEY_LENGTH_SHA512 (DIGEST_BYTE_LENGTH_SHA512) > @@ -15458,6 +15619,8 @@ static struct unit_test_suite > cryptodev_gen_testsuite =3D { > TEST_CASE_ST(ut_setup, ut_teardown, test_stats), > TEST_CASE_ST(ut_setup, ut_teardown, > test_enq_callback_setup), > TEST_CASE_ST(ut_setup, ut_teardown, > test_deq_callback_setup), > + TEST_CASE_ST(ut_setup, ut_teardown, > + > test_AES_CBC_HMAC_SHA1_encrypt_digest_ext_buffer), > TEST_CASES_END() /**< NULL terminate unit test array */ > } > }; > -- > 2.25.1