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 ED1944613B; Mon, 27 Jan 2025 20:33:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5663E40BA0; Mon, 27 Jan 2025 20:33:21 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4287140A89 for ; Mon, 27 Jan 2025 20:33:18 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 6C16B203716A; Mon, 27 Jan 2025 11:33:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6C16B203716A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1738006397; bh=xW9qlGemEiAhpqWPMnfjLwnBLlb4/AKZ+PFYZxmjUQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNzx9VNwYmU/8RW7GErpGroF0fKHvsEGbTWXTegLfZ4DJKDEoNc9I68RYng2TeyXS ihWMRfxM5RWer6RzYmKDJSch2Asje3nEzHnxoWzK2D0inZtgZkON2CMLepVg8u5YHE aWdtrlVoi/2IQyZ5rmGjD6RThS9NbpNG51BUTW1g= From: Andre Muezerie To: andremue@linux.microsoft.com Cc: dev@dpdk.org, fanzhang.oss@gmail.com, gakhil@marvell.com, mb@smartsharesystems.com Subject: [PATCH v3 3/3] drivers/crypto: use RTE_BIT64 in initializations of hash_algos Date: Mon, 27 Jan 2025 11:33:09 -0800 Message-Id: <1738006389-17193-3-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1738006389-17193-1-git-send-email-andremue@linux.microsoft.com> References: <1732758837-6350-1-git-send-email-andremue@linux.microsoft.com> <1738006389-17193-1-git-send-email-andremue@linux.microsoft.com> 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 This was found during code review of similar issues. Signed-off-by: Andre Muezerie --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 4 ++-- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c index 4394513002..e78bc37c37 100644 --- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c +++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c @@ -1207,8 +1207,8 @@ static const struct rte_cryptodev_capabilities caps_eddsa[] = { {.asym = { .xform_capa = { .xform_type = RTE_CRYPTO_ASYM_XFORM_EDDSA, - .hash_algos = (1 << RTE_CRYPTO_AUTH_SHA512 | - 1 << RTE_CRYPTO_AUTH_SHAKE_256), + .hash_algos = (RTE_BIT64(RTE_CRYPTO_AUTH_SHA512) | + RTE_BIT64(RTE_CRYPTO_AUTH_SHAKE_256)), .op_types = ((1 << RTE_CRYPTO_ASYM_OP_SIGN) | (1 << RTE_CRYPTO_ASYM_OP_VERIFY)) } diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c index 18f096abfd..04e018f3df 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c +++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c @@ -630,8 +630,8 @@ static const struct rte_cryptodev_capabilities openssl_pmd_capabilities[] = { {.asym = { .xform_capa = { .xform_type = RTE_CRYPTO_ASYM_XFORM_EDDSA, - .hash_algos = (1 << RTE_CRYPTO_AUTH_SHA512 | - 1 << RTE_CRYPTO_AUTH_SHAKE_256), + .hash_algos = (RTE_BIT64(RTE_CRYPTO_AUTH_SHA512) | + RTE_BIT64(RTE_CRYPTO_AUTH_SHAKE_256)), .op_types = ((1<