From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.34161.1661495572044873211 for ; Thu, 25 Aug 2022 23:32:52 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=OEWK7/XQ; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1661495572; x=1693031572; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WWER2coS0p/rGAlFLaq3NO8TyXDbbh1ed87pGNvX3YU=; b=OEWK7/XQgYa1DoIKnJzNJ4J0mx6Kyz3H3TBcNCqb/PEE6AcUqyFpHoSs B4Wl6z6JLb9/wFY/876Mf3wwtoS1oySMslooB0t/qvvBjg1N2YqPgSLsE uzx9nh5m+duZ4+Qbl+1Aru4RL9dlgkmaPLZxNrvBAvFEot54LFUrKEbnp t/9tTDXdf+UcpZTj7B2Ge/5bTuZLcXdLknQPhRfb2LPVRuyuXIOOSq5jg 1U+TZbwfSLrhSaUvz9zQ0oEB4f63iIaU8LFinLKi6ZS2AmR1Qi75EP3tA R32CC9PS6qAMZZIxKhL1XXQuEfC4pHxjwY3RYvkJeejoUh4EZjxklAPKL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="295217219" X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="295217219" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 23:32:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="561335761" Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.157.129]) by orsmga003.jf.intel.com with ESMTP; 25 Aug 2022 23:32:48 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Qi Zhang , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [PATCH 0/4] CryptoPkg: Add Hkdf SHA384 support Date: Fri, 26 Aug 2022 14:32:39 +0800 Message-Id: <20220826063243.7855-1-qi1.zhang@intel.com> 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/3242. 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 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 | 149 +++++++ 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 | 136 +++++++ .../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, 1436 insertions(+), 29 deletions(-) create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HkdfTests.c -- 2.26.2.windows.1