From patchwork Mon Aug 26 09:41:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Shamis X-Patchwork-Id: 57888 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0AACC1BFB9; Mon, 26 Aug 2019 11:24:03 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 19B1D1BFB4 for ; Mon, 26 Aug 2019 11:24:00 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7Q9K2rb029835; Mon, 26 Aug 2019 02:24:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=DUREQqiVEH+KBTINuX2elvOjsadinY7O4IDQYz/bnWA=; b=CAZRbClWqvLFJNBVvhr7GOQ4onmADDPMHQXu80aJCsTF84KH6ORKBgLGWsnAo19hkZhm vckSDy/WA3po9bFIl5SHrTnrSm++At+TxdrIHGf8CXH37c0z/2o0+M88ljx8gS3zqrG7 i4uY6qdF78B5Kcmz+EDHtb70DaYN9t9NX1tslrqTLGujTURL1x3Fp03fZdc3AozolkWX kDJFXzzz7DuImWXqpx36TcFA3hEeVgMMmYUcnfqpoOaDKbdKGxT0Tfw6CCHcZVjKcr65 M4z+MDtaCNlzLj9K4khSRMvqYEQSbVqQS5H71o8Ov+1/AO9+CydFF9s4UB9aWM7gzhdh FQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2uk2kpxf32-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 26 Aug 2019 02:24:00 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 26 Aug 2019 02:23:59 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Mon, 26 Aug 2019 02:23:59 -0700 Received: from vvenus375.il.marvell.com (unknown [10.5.120.75]) by maili.marvell.com (Postfix) with ESMTP id C6D323F7041; Mon, 26 Aug 2019 02:23:57 -0700 (PDT) From: To: CC: , , Date: Mon, 26 Aug 2019 12:41:13 +0300 Message-ID: <20190826094120.22590-6-michaelsh@marvell.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190826094120.22590-1-michaelsh@marvell.com> References: <20190826094120.22590-1-michaelsh@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-26_06:2019-08-23,2019-08-26 signatures=0 Subject: [dpdk-dev] [PATCH 05/12] examples/fips: AES-GCM vectors will use aead structure 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" From: Michael Shamis Before the fix AES-GCM vectores were defined by cipher_auth structure but handled by aead structure and that leads to FIPS test failure. Signed-off-by: Michael Shamis --- examples/fips_validation/fips_validation_gcm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index 0509b101a..ea48ddf70 100644 --- a/examples/fips_validation/fips_validation_gcm.c +++ b/examples/fips_validation/fips_validation_gcm.c @@ -34,29 +34,29 @@ #define NEG_TEST_STR "FAIL" struct fips_test_callback gcm_dec_vectors[] = { - {KEY_STR, parse_uint8_known_len_hex_str, &vec.cipher_auth.key}, + {KEY_STR, parse_uint8_known_len_hex_str, &vec.aead.key}, {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, {CT_STR, parse_uint8_known_len_hex_str, &vec.ct}, - {AAD_STR, parse_uint8_known_len_hex_str, &vec.cipher_auth.aad}, + {AAD_STR, parse_uint8_known_len_hex_str, &vec.aead.aad}, {TAG_STR, parse_uint8_known_len_hex_str, - &vec.cipher_auth.digest}, + &vec.aead.digest}, {NULL, NULL, NULL} /**< end pointer */ }; struct fips_test_callback gcm_interim_vectors[] = { - {KEYLEN_STR, parser_read_uint32_bit_val, &vec.cipher_auth.key}, + {KEYLEN_STR, parser_read_uint32_bit_val, &vec.aead.key}, {IVLEN_STR, parser_read_uint32_bit_val, &vec.iv}, {PTLEN_STR, parser_read_uint32_bit_val, &vec.pt}, - {AADLEN_STR, parser_read_uint32_bit_val, &vec.cipher_auth.aad}, + {AADLEN_STR, parser_read_uint32_bit_val, &vec.aead.aad}, {TAGLEN_STR, parser_read_uint32_bit_val, - &vec.cipher_auth.digest}, + &vec.aead.digest}, {NULL, NULL, NULL} /**< end pointer */ }; struct fips_test_callback gcm_enc_vectors[] = { - {KEY_STR, parse_uint8_known_len_hex_str, &vec.cipher_auth.key}, + {KEY_STR, parse_uint8_known_len_hex_str, &vec.aead.key}, {IV_STR, parse_uint8_known_len_hex_str, &vec.iv}, {PT_STR, parse_uint8_known_len_hex_str, &vec.pt}, - {AAD_STR, parse_uint8_known_len_hex_str, &vec.cipher_auth.aad}, + {AAD_STR, parse_uint8_known_len_hex_str, &vec.aead.aad}, {NULL, NULL, NULL} /**< end pointer */ };