From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.12077.1643494188341580148 for ; Sat, 29 Jan 2022 14:09:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ReKaPUpW; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1643494188; x=1675030188; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cTGk/njvkKLK/59XuGEpDh1FyQniF6AziLA2q+wnX3E=; b=ReKaPUpWVS2SQVy10+woEkf2UfvSmISo5dctO/5df0AlHXqMynwTUkjB Ww2b1giI+MW043TLx0/eIMUapfWARd031HfGaRJE3ZF4R/YZS1sTx+ugg oBo4JJuZvDIEWrx82eP0oFTwbiRLJKl5bE2jrq422+qkkNH8taBcnrciO YQaemndmc0c8RZt/d+bAZZZbfXWKY9klH9lEtZg5xBF1A3uFSiXwXk0t+ MJyNWFSnQgDQautCO+Yst9hopVLo5ZeDEP87z9V79gqqE3hLpR9wsGDlc Korfy+eaA6CgXCZZ20OmD3cIJWEHyZK5Y/Iz40z1n9s+QToK1r7JmzwKB A==; X-IronPort-AV: E=McAfee;i="6200,9189,10242"; a="333655263" X-IronPort-AV: E=Sophos;i="5.88,327,1635231600"; d="scan'208";a="333655263" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2022 14:09:47 -0800 X-IronPort-AV: E=Sophos;i="5.88,327,1635231600"; d="scan'208";a="675399634" Received: from shwdejointd178.ccr.corp.intel.com ([10.239.153.78]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2022 14:09:46 -0800 From: "yi1 li" To: devel@edk2.groups.io Cc: yi1 li Subject: [PATCH 0/2] CryptoPkg: Add BigNum support Date: Sun, 30 Jan 2022 06:09:14 +0800 Message-Id: X-Mailer: git-send-email 2.33.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series is used to add CryptBn library, which is wrapped over OpenSSL. The implementation provides CryptBn library functions for EFI BaseCrypt protocol and EFI BaseCrypt Configuration Protocol. yi1 li (2): CryptoPkg: Add BigNum support CryptoPkg: Add BigNum NullLib CryptoPkg/CryptoPkg.dsc | 1 + CryptoPkg/Driver/Crypto.c | 522 ++++++++++++++- CryptoPkg/Include/Library/BaseCryptLib.h | 423 +++++++++++++ .../Pcd/PcdCryptoServiceFamilyEnable.h | 30 + .../Library/BaseCryptLib/BaseCryptLib.inf | 1 + CryptoPkg/Library/BaseCryptLib/Bn/CryptBn.c | 594 ++++++++++++++++++ .../Library/BaseCryptLib/Bn/CryptBnNull.c | 525 ++++++++++++++++ .../Library/BaseCryptLib/PeiCryptLib.inf | 1 + .../Library/BaseCryptLib/SmmCryptLib.inf | 2 +- .../BaseCryptLibNull/BaseCryptLibNull.inf | 1 + .../Library/BaseCryptLibNull/Bn/CryptBnNull.c | 525 ++++++++++++++++ .../BaseCryptLibOnProtocolPpi/CryptLib.c | 497 +++++++++++++++ CryptoPkg/Private/Protocol/Crypto.h | 434 +++++++++++++ 13 files changed, 3554 insertions(+), 2 deletions(-) create mode 100644 CryptoPkg/Library/BaseCryptLib/Bn/CryptBn.c create mode 100644 CryptoPkg/Library/BaseCryptLib/Bn/CryptBnNull.c create mode 100644 CryptoPkg/Library/BaseCryptLibNull/Bn/CryptBnNull.c -- 2.33.0.windows.2