From nobody Mon Feb 9 02:14:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107488+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107488+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1691037499; cv=none; d=zohomail.com; s=zohoarc; b=KK/OEMIQcU3UlodGJ47h06K+vgMvgCFszhamq2VZgqsNXPAfh70Cra+IA0gkCTD1hLC/7x3CmWYQD0xZ/GuV5/xDYE38PVNOoPpS6yoFbaEEKewAOrHFXLj3sMmtA9IT+6fmsICElXA9asewHQc31yywWlvNt99/xeNhm8rmTi8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691037499; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=INPi4cLz3kAllmVILLbjfbYBLJrAJywoQTNRK0hCGik=; b=dQAAiVQ89qtPE72R7Y+q34jLMaR43gT70maQBSMtLIek7WJ6r4Oap2fdnrWybHPuooAt7usEAIFGJ+A3kh/MU6XYAhxhlpho7R1BlV8Di1veamHmUhsfp796bJNSPyLyE0neIzrI8ZwCHs+yHUNaCibQ5eANcrf1w/YttomatEg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107488+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1691037499560149.79873192914863; Wed, 2 Aug 2023 21:38:19 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=nrCrL2/BxrK57RwDfzdxp/pVLkWsXPWuv27OkyJIU6g=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1691037499; v=1; b=Yem7SmuCClfAWsymMSMgdlhE/aKsLK3DU1zMFb/QlL5O11PLBPpB4A6cUJs+zeq1GmOSSTgB wkEmZ5UIkVv4caC+fkoyG2rB4XvDDepMTvoNrn4hBpSqh0Proq+KuG4Q8Me6ALe1HpU+1KGzL7b ySxgfsgjzfczLjcQQfblWaKM= X-Received: by 127.0.0.2 with SMTP id UOh7YY1788612xhFUQs0cVcO; Wed, 02 Aug 2023 21:38:19 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.7486.1691037497004267910 for ; Wed, 02 Aug 2023 21:38:18 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="456141098" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="456141098" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 21:38:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="794848018" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="794848018" X-Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.10]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 21:38:16 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Jiewen Yao , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [PATCH V2 07/29] CryptoPkg/BaseCryptLib: adapt CryptSm3.c to openssl 3.0 changes. Date: Thu, 3 Aug 2023 12:37:25 +0800 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yi1.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: hGbqIoriPfZ1GoEA55N90ul0x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1691037501491100023 Content-Type: text/plain; charset="utf-8" From: Gerd Hoffmann Functions have been renamed. Signed-off-by: Gerd Hoffmann Cc: Jiewen Yao Cc: Xiaoyu Lu Cc: Guomin Jiang --- CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c b/CryptoPkg/Lib= rary/BaseCryptLib/Hash/CryptSm3.c index bbbc1e56f2..03b168b9e2 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c +++ b/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c @@ -7,7 +7,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ =20 #include "InternalCryptLib.h" -#include "crypto/sm3.h" +#include "internal/sm3.h" =20 /** Retrieves the size, in bytes, of the context buffer required for SM3 has= h operations. @@ -55,7 +55,7 @@ Sm3Init ( // // Openssl SM3 Context Initialization // - sm3_init ((SM3_CTX *)Sm3Context); + ossl_sm3_init ((SM3_CTX *)Sm3Context); return TRUE; } =20 @@ -136,7 +136,7 @@ Sm3Update ( // // Openssl SM3 Hash Update // - sm3_update ((SM3_CTX *)Sm3Context, Data, DataSize); + ossl_sm3_update ((SM3_CTX *)Sm3Context, Data, DataSize); =20 return TRUE; } @@ -178,7 +178,7 @@ Sm3Final ( // // Openssl SM3 Hash Finalization // - sm3_final (HashValue, (SM3_CTX *)Sm3Context); + ossl_sm3_final (HashValue, (SM3_CTX *)Sm3Context); =20 return TRUE; } @@ -225,11 +225,11 @@ Sm3HashAll ( // // SM3 Hash Computation. // - sm3_init (&Ctx); + ossl_sm3_init (&Ctx); =20 - sm3_update (&Ctx, Data, DataSize); + ossl_sm3_update (&Ctx, Data, DataSize); =20 - sm3_final (HashValue, &Ctx); + ossl_sm3_final (HashValue, &Ctx); =20 return TRUE; } --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107488): https://edk2.groups.io/g/devel/message/107488 Mute This Topic: https://groups.io/mt/100520582/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-