From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web08.4763.1663914316873603685 for ; Thu, 22 Sep 2022 23:25:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Us/L9v+s; spf=pass (domain: intel.com, ip: 134.134.136.20, 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=1663914316; x=1695450316; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ECJTdimZNym/sNQUWGT4IBXTM0kSzfx3d2T4A3+8duA=; b=Us/L9v+s88ECELqOvT3h1DXrZOlrIsG1BUUBtI799gHKUYFbY8HDx2eX pDxOZev1mVZ70SyM2uUqKeeKUg9ZCsdIwrsco19JnfjNUkWK7/No/uGA5 t+jBdbPksdtB4Ysp9JOpwD8nV7MUfW7asJbiaPFu+AwNyNOZ4T9sl95zB Oqe42DPmmM0+9Gt59e+3uPj6nadb5gzYQ5TsfKgUNijFqsBhzaKqDwShs 4/h7WDttQCW1lrw+Dyo9uUFEFnrOPQicwiEiHAlXK74mnJNeCbrAHZp91 Ikxkr20zA3u0m/mlgS58qUwclURZiPQi94tqm8m3zEmG1wlafhsQVjWiq g==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="287636052" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="287636052" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 23:25:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="597761486" Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.157.129]) by orsmga006.jf.intel.com with ESMTP; 22 Sep 2022 23:25:14 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Qi Zhang , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support Date: Fri, 23 Sep 2022 14:25:05 +0800 Message-Id: X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add Hkdf-SHA384 support and Hkdf-SHA256 extract and expand separately. With this change, the size increase of BaseCyrptLib is about 6K bytes. The new functions are 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=4033 Signed-off-by: Qi Zhang Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Reviewed-by: Jiewen Yao Qi Zhang (4): CryptoPkg: add new Hkdf api definition in Crypt Lib. CryptoPkg: add new Hkdf api in Crypt Lib. CryptoPkg: add new Hkdf api to Crypto Service. CryptoPkg: add Hkdf UnitTest. CryptoPkg/Driver/Crypto.c | 152 +++++++- CryptoPkg/Include/Library/BaseCryptLib.h | 129 +++++++ .../Pcd/PcdCryptoServiceFamilyEnable.h | 7 +- .../Library/BaseCryptLib/Kdf/CryptHkdf.c | 362 +++++++++++++++++- .../Library/BaseCryptLib/Kdf/CryptHkdfNull.c | 151 +++++++- .../BaseCryptLibNull/Kdf/CryptHkdfNull.c | 151 +++++++- .../BaseCryptLibOnProtocolPpi/CryptLib.c | 144 +++++++ CryptoPkg/Private/Protocol/Crypto.h | 139 ++++++- .../BaseCryptLib/BaseCryptLibUnitTests.c | 29 +- .../UnitTest/Library/BaseCryptLib/HkdfTests.c | 202 ++++++++++ .../Library/BaseCryptLib/TestBaseCryptLib.h | 3 + .../BaseCryptLib/TestBaseCryptLibHost.inf | 1 + .../BaseCryptLib/TestBaseCryptLibShell.inf | 1 + 13 files changed, 1440 insertions(+), 31 deletions(-) create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HkdfTests.c -- 2.26.2.windows.1