From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 362B3A00C4; Fri, 5 Jun 2020 10:31:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C9C11D5FB; Fri, 5 Jun 2020 10:31:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 7A3D31D5D5 for ; Fri, 5 Jun 2020 10:31:10 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0558V2ol032505; Fri, 5 Jun 2020 01:31:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=ehoAyE66deT2M4JT8xww5HF21dgi+rTTxQ9EMmPLy0U=; b=e0E5pDDMPpaUOQQGwI7Y4NxRe+8UAzzE8/cjJXXx+/Us6FePGYiEkMDdw88BOrZFA4Jg Al3bd9SMzt5zvJnX8G11mxpC2HrkkOyABWWw6SJb4LzbHDJRQ6C2RDXMArsBkdstq3MN a3xqG+Eyu9hoxKxxJmJpZypiU9p153nswQ1Ohr6eLIlVDoJSe7NVnmyEtrTwzMmx5EuE Ab6umErQPPSuXAg4GammiFVjognQoZVZue6AYWBJPTEXkxMebXWD+URGa6iqULulE5Ov EFbw5hEoebCE6rosndONDAJuYmq/e55fqB+fz+bC0/j5pWzCO5ans/hjERLZWrYdzEtT Eg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 31f90uhvgj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 05 Jun 2020 01:31:09 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Jun 2020 01:31:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 5 Jun 2020 01:31:07 -0700 Received: from hyd1349.t110.caveonetworks.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id 4EFC63F704B; Fri, 5 Jun 2020 01:31:05 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , , , "Ankur Dwivedi" Date: Fri, 5 Jun 2020 14:00:33 +0530 Message-ID: <1591345833-19159-1-git-send-email-adwivedi@marvell.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-06-05_01:2020-06-04, 2020-06-05 signatures=0 Subject: [dpdk-dev] [PATCH] test/crypto: change cipher offset for esn vector 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" In the IPSEC ESN test vector the cipher offset for encryption should be 8 bytes which is the size of esp header. This patch also changes the ciphertext and the digest reference data against which the operaton result is validated. Fixes: 699741912d71 ("test/crypto: add case for auth only trailer") Signed-off-by: Ankur Dwivedi --- app/test/test_cryptodev.c | 8 +- app/test/test_cryptodev_aes_test_vectors.h | 126 ++++++++++++++--------------- 2 files changed, 67 insertions(+), 67 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 8f63146..c812f8c 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -10204,7 +10204,7 @@ struct test_crypto_vector { static const struct test_crypto_vector aes128cbc_hmac_sha1_aad_test_vector = { .crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC, - .cipher_offset = 12, + .cipher_offset = 8, .cipher_len = 496, .cipher_key = { .data = { @@ -10240,9 +10240,9 @@ struct test_crypto_vector { }, .digest = { .data = { - 0x1F, 0x6A, 0xD2, 0x8B, 0x4B, 0xB3, 0xC0, 0x9E, - 0x86, 0x9B, 0x3A, 0xF2, 0x00, 0x5B, 0x4F, 0x08, - 0x62, 0x8D, 0x62, 0x65 + 0x6D, 0xF3, 0x50, 0x79, 0x7A, 0x2A, 0xAC, 0x7F, + 0xA6, 0xF0, 0xC6, 0x38, 0x1F, 0xA4, 0xDD, 0x9B, + 0x62, 0x0F, 0xFB, 0x10 }, .len = 20 } diff --git a/app/test/test_cryptodev_aes_test_vectors.h b/app/test/test_cryptodev_aes_test_vectors.h index 3c38eee..f56bbdd 100644 --- a/app/test/test_cryptodev_aes_test_vectors.h +++ b/app/test/test_cryptodev_aes_test_vectors.h @@ -368,69 +368,69 @@ static const uint8_t ciphertext512_aes128cbc_aad[] = { 0x57, 0x68, 0x61, 0x74, 0x20, 0x61, 0x20, 0x6C, - 0x6F, 0x75, 0x73, 0x79, 0x6D, 0x70, 0xB4, 0xAD, - 0x09, 0x7C, 0xD7, 0x52, 0xD6, 0xF2, 0xBF, 0xD1, - 0x9D, 0x79, 0xC6, 0xB6, 0x8F, 0x94, 0xEB, 0xD8, - 0xBA, 0x5E, 0x01, 0x49, 0x7D, 0xB3, 0xC5, 0xFE, - 0x18, 0xF4, 0xE3, 0x60, 0x8C, 0x84, 0x68, 0x13, - 0x33, 0x06, 0x85, 0x60, 0xD3, 0xE7, 0x8A, 0xB5, - 0x23, 0xA2, 0xDE, 0x52, 0x5C, 0xB6, 0x26, 0x37, - 0xBB, 0x23, 0x8A, 0x38, 0x07, 0x85, 0xB6, 0x2E, - 0xC3, 0x69, 0x57, 0x79, 0x6B, 0xE4, 0xD7, 0x86, - 0x23, 0x72, 0x4C, 0x65, 0x49, 0x08, 0x1E, 0xF3, - 0xCC, 0x71, 0x4C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 0x96, 0x12, 0x78, 0x67, 0x6A, 0xE5, + 0x8B, 0x05, 0x80, 0xAE, 0x7D, 0xE5, 0x9B, 0x24, + 0xDB, 0xFF, 0x1E, 0xB8, 0x36, 0x6D, 0x3D, 0x5D, + 0x73, 0x65, 0x72, 0x73, 0x2C, 0x20, 0x73, 0x75 }; /* AES128-CTR-SHA1 test vector */ -- 1.9.3