From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web12.28466.1661238389086803848 for ; Tue, 23 Aug 2022 00:06:29 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=JAi8EraA; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: qi1.zhang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661238389; x=1692774389; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=i3Jm4GaFaJyWoONwbLAvN9YHq3AcqGzKzA+cizjyb6E=; b=JAi8EraAeJ08rszCqCTQSHqpv4j8rWK76z/li+MuElEotxSVc1OOOr5F bRQZWv+ljjyo6rire6b0yiX2IQguPD4xev5eukG5dJg3c41MzS6mIUnQr pDILXJRcbbAdB73IxGdcsj37I/Sr8m4WHnCjvraS7XDAl2l1NlRM9GA2u FRDeDoMxbZw8Ya5D1OGqsET7phPxmMc1uiWcL/5Xw3QKiXsE6m2Ic7qoY L/YLAunlTlCQYkwKCi+xnmHQ0ZuZJxwln0azaZowy1K+YFLjkXtBRBAWz cqQStrSIWN9gvRjgzsAdYTbr8XUvVRMawdpB+WPhUiQRQ9JBrYFw6/Rbj A==; X-IronPort-AV: E=McAfee;i="6500,9779,10447"; a="294893660" X-IronPort-AV: E=Sophos;i="5.93,256,1654585200"; d="scan'208";a="294893660" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 00:06:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,256,1654585200"; d="scan'208";a="677512579" Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.157.129]) by fmsmga004.fm.intel.com with ESMTP; 23 Aug 2022 00:06:26 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Qi Zhang , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [PATCH 0/5] CryptoPkg: Add HMAC-SHA384 cipher support. Date: Tue, 23 Aug 2022 15:06:18 +0800 Message-Id: <20220823070623.7002-1-qi1.zhang@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit HmacSha256 is already supported on Edk2. This patchset is to add HmacSha384 support. With this change, the size increase of BaseCyrptLib is about 7K bytes. HmacSha384 function is verifed by the Host UnitTest. And also it has been integratd in https://github.com/tianocore/edk2-staging/tree/DeviceSecurity and been verified. All the code change is on the PR https://github.com/tianocore/edk2/pull/3224. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4025 Signed-off-by: Qi Zhang Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Qi Zhang (5): CryptoPkg: Add new hmac definition to cryptlib CryptoPkg: Add HMAC-SHA384 cipher support. CryptoPkg: Update CryptLib inf as the file name changed. CryptoPkg: Add new hmac SHA api to Crypto Service. CryptoPkg: add Hmac Sha384 to host UnitTest. CryptoPkg/CryptoPkg.dsc | 3 + CryptoPkg/Driver/Crypto.c | 221 ++++++ CryptoPkg/Include/Library/BaseCryptLib.h | 188 ++++++ .../Pcd/PcdCryptoServiceFamilyEnable.h | 13 + .../Library/BaseCryptLib/BaseCryptLib.inf | 2 +- .../Library/BaseCryptLib/Hmac/CryptHmac.c | 629 ++++++++++++++++++ .../Library/BaseCryptLib/Hmac/CryptHmacNull.c | 359 ++++++++++ .../BaseCryptLib/Hmac/CryptHmacSha256.c | 217 ------ .../BaseCryptLib/Hmac/CryptHmacSha256Null.c | 139 ---- .../Library/BaseCryptLib/PeiCryptLib.inf | 2 +- .../Library/BaseCryptLib/RuntimeCryptLib.inf | 2 +- .../Library/BaseCryptLib/SecCryptLib.inf | 2 +- .../Library/BaseCryptLib/SmmCryptLib.inf | 2 +- .../BaseCryptLib/UnitTestHostBaseCryptLib.inf | 2 +- .../BaseCryptLibNull/BaseCryptLibNull.inf | 2 +- .../BaseCryptLibNull/Hmac/CryptHmacNull.c | 359 ++++++++++ .../Hmac/CryptHmacSha256Null.c | 139 ---- .../BaseCryptLibOnProtocolPpi/CryptLib.c | 212 ++++++ CryptoPkg/Private/Protocol/Crypto.h | 197 ++++++ .../UnitTest/Library/BaseCryptLib/HmacTests.c | 19 + 20 files changed, 2207 insertions(+), 502 deletions(-) create mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmac.c create mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacNull.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha256.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha256Null.c create mode 100644 CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacNull.c delete mode 100644 CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c -- 2.26.2.windows.1