From nobody Thu May 2 10:23:07 2024 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+97652+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+97652+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1671591879; cv=none; d=zohomail.com; s=zohoarc; b=W8WN8n0MuzI5LbdSZ7hWyKXhgEBkBl2CflO0mQJ36kzNlUNaDCzHKqruZGRmliu6KpZ/QKhMCba8eZ8Wai+Y81hQAyn2vOBbm2h79RxBtd3biZsMErJKZlVD1wtArcr6mk+QkF2omNyi/DS+VCPsytWYMEPJ0W0dhaOm5m/KCRU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671591879; 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=8d/jl51Cg8evKuKCkJyjJ73l4d9KgzN8vzhHOjPKGUk=; b=MoU/DfgOo+HLHdiUFG3kmPrH84w5HP1YNNkJwaXYBGANGU0ERw76qjpWssEPdXAEZupNQBH0tKcngKhoV6XMToRJL/XKy+TxdZup8FD6iSUgRDYY5w3HojGFJdRIbDWHLNGgR1pJHAEXwlEIO9s08Yex2nfCr7cZAPz3KF9NA5U= 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+97652+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 1671591879816779.227792052863; Tue, 20 Dec 2022 19:04:39 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id cjYuYY1788612x4gHTt7Vjyc; Tue, 20 Dec 2022 19:04:39 -0800 X-Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.10109.1671591877026722017 for ; Tue, 20 Dec 2022 19:04:39 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="300116156" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="300116156" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 19:04:36 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="628966727" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="628966727" X-Received: from jvang-mobl.amr.corp.intel.com ([10.209.79.47]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 19:04:36 -0800 From: "Judah Vang" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang , Nishant C Mistry Subject: [edk2-devel] [PATCH v2 1/1] CryptoPkg: Need to enable crypto functions Date: Tue, 20 Dec 2022 19:04:18 -0800 Message-Id: <20221221030418.1137-2-judah.vang@intel.com> In-Reply-To: <20221221030418.1137-1-judah.vang@intel.com> References: <20221221030418.1137-1-judah.vang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,judah.vang@intel.com X-Gm-Message-State: qu2T2Ai4mAnLrKLGlAOT7AxNx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1671591879; bh=8XF1lMRjV+WcCiGeivmswGRgHtaRzrTsd73tFPA6j7E=; h=Cc:Date:From:Reply-To:Subject:To; b=xVTHYj+nYOAl6mqbRTKGWLrqsXG7j3nFaL6NDn/ac378+3ePySs80i9hMvFxCkp6AXu HGAO0UcEwvDmypOGLozAVVRcrR5+6V5/KNABK5b4Xohf/JT77R25CjfoMSXAs1UxAp+wI kiOFstdtxX3P9gTWdKbtIyfdLV3IAE2Ihgk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1671591880327100006 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3992 V2: Update Readme and CryptoPkg.dsc to reflect changes and be in sync. V1: Enable CryptAes for PEI phase. Enable CryptHkdf for SMM phase. Update Readme.md Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Cc: Nishant C Mistry Signed-off-by: Jian J Wang Signed-off-by: Nishant C Mistry Signed-off-by: Judah Vang Reviewed-by: Jiewen Yao Reviewed-by: Michael D Kinney --- CryptoPkg/CryptoPkg.dsc | 8 +++++++- CryptoPkg/Readme.md | 12 ++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc index 3b245979c34c..4676193e8953 100644 --- a/CryptoPkg/CryptoPkg.dsc +++ b/CryptoPkg/CryptoPkg.dsc @@ -2,7 +2,7 @@ # Cryptographic Library Package for UEFI Security Implementation. # PEIM, DXE Driver, and SMM Driver with all crypto services enabled. # -# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.
+# Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.
# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights= reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent @@ -239,6 +239,11 @@ [PcdsFixedAtBuild] gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Fr= ee | TRUE gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Se= tKey | TRUE gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.P= kcs5HashPassword | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Ge= tContextSize | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.In= it | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Cb= cEncrypt | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Cb= cDecrypt | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family = | PCD_CRYPTO_SERVICE_ENABLE_FAMILY !endif =20 # @@ -278,6 +283,7 @@ [PcdsFixedAtBuild] gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Cb= cDecrypt | TRUE gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.AeadAesGcm.Serv= ices.Encrypt | TRUE gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.AeadAesGcm.Serv= ices.Decrypt | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family = | PCD_CRYPTO_SERVICE_ENABLE_FAMILY !endif =20 ##########################################################################= ######################### diff --git a/CryptoPkg/Readme.md b/CryptoPkg/Readme.md index cb072db72397..284a16f299fd 100644 --- a/CryptoPkg/Readme.md +++ b/CryptoPkg/Readme.md @@ -207,15 +207,15 @@ also configured. | Sha512 | N | N | C |= C | C | C | C | | X509 | N | N | |= | C | C | C | | Tdes | Y | Y | |= | | | | -| Aes.GetContextSize | N | N | |= | C | C | C | -| Aes.Init | N | N | |= | C | C | C | +| Aes.GetContextSize | N | N | |= C | C | C | C | +| Aes.Init | N | N | |= C | C | C | C | | Aes.EcbEncrypt | Y | Y | |= | | | | | Aes.EcbDecrypt | Y | Y | |= | | | | -| Aes.CbcEncrypt | N | N | |= | C | C | C | -| Aes.CbcDecrypt | N | N | |= | C | C | C | +| Aes.CbcEncrypt | N | N | |= C | C | C | C | +| Aes.CbcDecrypt | N | N | |= C | C | C | C | | Arc4 | Y | Y | |= | | | | | Sm3 | N | N | |= C | C | C | C | -| Hkdf | N | N | |= C | C | | C | +| Hkdf | N | N | |= C | C | C | C | | Tls | N | N | |= | C-Tls | | | | TlsSet | N | N | |= | C-Tls | | | | TlsGet | N | N | |= | C-Tls | | | @@ -460,7 +460,7 @@ and CryptoSmm modules. gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Fr= ee | TRUE gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Se= tKey | TRUE gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.P= kcs5HashPassword | TRUE - gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Services.S= ha256ExtractAndExpand | TRUE + gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family = | PCD_CRYPTO_SERVICE_ENABLE_FAMILY ``` =20 #### Common DXE and SMM PcdCryptoServiceFamilyEnable Settings --=20 2.35.1.windows.2 -=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 (#97652): https://edk2.groups.io/g/devel/message/97652 Mute This Topic: https://groups.io/mt/95800091/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-