From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web08.25275.1664173646788797018 for ; Sun, 25 Sep 2022 23:27:27 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=KD8c6aCJ; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: yi1.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664173646; x=1695709646; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/O42Q1VPM/KKN/KY924Xbq2rU50wjcLKSYN3BxEl2rk=; b=KD8c6aCJv0nTLa5X++q1kd+GHJcR0cLEqZ6WodChlW6rqSYzV3sX9QZ7 YTpMYe0E/ThTWLWMr0EA9KvYS4ZmqTINWF1Ym+gaujNcKHUnZyYSzQtco dY4GyWxgRzPq0D47EUHBcMMTQVUQ08i4jFQepsdjAggJFvvlXVHoRT+3Y GhjDdzbQ7KiH96Vq0NNshBDd9wneXe04lQYtV0Np5eHqdKlzmxnZICq5F 6qrt3dosgoO+DU6xHktEWHYAjlTCW3AAPYe0teAXh0Q8ybxBiNbpfJ199 aangH0yb7HZ/iIvvewfOjOdETlmsaUlqIr2fJu5Y+wpJrKzKYbkKdX8QP w==; X-IronPort-AV: E=McAfee;i="6500,9779,10481"; a="300931249" X-IronPort-AV: E=Sophos;i="5.93,345,1654585200"; d="scan'208";a="300931249" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2022 23:27:21 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10481"; a="616284711" X-IronPort-AV: E=Sophos;i="5.93,345,1654585200"; d="scan'208";a="616284711" Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.82]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2022 23:27:19 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Yi Li , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [PATCH 0/3] CryptoPkg: Extend Tls library Date: Mon, 26 Sep 2022 14:27:07 +0800 Message-Id: X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3892 Review PR: https://github.com/tianocore/edk2/pull/3400 This patch sequence is used to extend Tls library, which are wrapped over OpenSSL. The implementation provides library functions for EFI DXE dirver and Protocol. All APIs passed unit test and fuzzing test, detail as: 1. Unit test: New Tls APIs tested on Intel platform as part of WIFI WPA3 feature. 2. Fuzzing test: Various Fuzz Testing are employed across the all introduced APIs, and the test is used AFL (2.52b) and Libfuzzer (clang+llvm-11.0.0) as the fuzzer, based on HBFA. Fuzzing Pass Rate is 100%; The Code Coverage of new APIs is 91%. All test case show in: https://github.com/liyi77/edk2-staging/tree/HBFA/HBFA/UefiHostFuzzTestCasePkg/TestCase/CryptoPkg Tested-by: Yi Li Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Signed-off-by: Yi Li *** BLURB HERE *** Yi Li (3): MdePkg: Add Tls configuration related define CryptoPkg: Extend Tls function library CryptoPkg: Add new Tls APIs to DXE and protocol CryptoPkg/Driver/Crypto.c | 155 ++++++- CryptoPkg/Include/Library/TlsLib.h | 126 +++++- .../Pcd/PcdCryptoServiceFamilyEnable.h | 5 + .../BaseCryptLibOnProtocolPpi/CryptLib.c | 146 ++++++- CryptoPkg/Library/TlsLib/InternalTlsLib.h | 4 + CryptoPkg/Library/TlsLib/TlsConfig.c | 413 ++++++++++++++++-- CryptoPkg/Library/TlsLib/TlsProcess.c | 32 ++ CryptoPkg/Library/TlsLibNull/TlsConfigNull.c | 123 +++++- CryptoPkg/Library/TlsLibNull/TlsProcessNull.c | 23 + CryptoPkg/Private/Protocol/Crypto.h | 136 +++++- MdePkg/Include/IndustryStandard/Tls1.h | 110 +++-- 11 files changed, 1200 insertions(+), 73 deletions(-) -- 2.31.1.windows.1