From nobody Tue Dec 16 07:08:39 2025 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+107346+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+107346+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1690526460; cv=none; d=zohomail.com; s=zohoarc; b=R/4lQ4oiHmIe2weO/QBWFwrHbFHV0kd+3jeuTsc0BQaqztyEtLfPalakrS11FOFvJ3fnTfzN1w5IV4jatpYa/aL1bS7pNKwCD03alVBLrqytUvpj5ZR9syNpgVqIj/HUzIfVlL7sv0vj68nXJOHGGRAKCWcUa0rupif6gGE0EHI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690526460; 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=6Sq9h+oQs9dupXWaBRcsP47FBmfIjhPULlO3Kochuak=; b=QvdpMPxTG1so2xGLji48TYR9VipHwmI3FHqZTBb3fQybvd+0atmb2BLAPAcL56u+kVq7YIGKZwjblzdeKaJfANpOcFtp0oktsWdpjDsQiSRPDAOLIn8YjgBOcUvdSEdahtUgvsd7GyKM2FfOFL7pjL00YBf7pGAoEgJqMocc6bk= 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+107346+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 1690526460975779.1409466847648; Thu, 27 Jul 2023 23:41:00 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=ZvJt3T7jFbUSc2eItLmaRYMxnTJKtbDLnujQ3e4U2Bs=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-IronPort-AV:X-IronPort-AV:X-Received:X-ExtLoop1:X-IronPort-AV:X-IronPort-AV:X-Received: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:X-Gm-Message-State:Content-Transfer-Encoding; s=20140610; t=1690526460; v=1; b=YFLsCezKc4+W5Q7YjDmMO7HTMu1rn6z9plZ7O4TYgKApnZ4r8D2A6YIJpyJ74GjZx2XsMqv4 rxQYvEBEgLBKtc7k8+yDawN53NqEEnDHhP6+jMh4utbfGX8SqVaJMd5l7Oaa0vX1zrbZiKDLF1E hmwmKgugob7UeWFZD7HNEW3o= X-Received: by 127.0.0.2 with SMTP id mLG9YY1788612xEFcYSxczdk; Thu, 27 Jul 2023 23:41:00 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27211.1690526457619274113 for ; Thu, 27 Jul 2023 23:41:00 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="434804228" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="434804228" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 23:40:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="762495946" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="762495946" X-Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.10]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 23:40:57 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Jiewen Yao , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [PATCH 07/29] CryptoPkg/BaseCryptLib: adapt CryptSm3.c to openssl 3.0 changes. Date: Fri, 28 Jul 2023 14:39:53 +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: 8CqcciBYb1GE2Q4YBWBq1jecx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1690526461937100021 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 (#107346): https://edk2.groups.io/g/devel/message/107346 Mute This Topic: https://groups.io/mt/100406041/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-