From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.64005.1679539483463757164 for ; Wed, 22 Mar 2023 19:44:45 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=hwCT0djV; spf=pass (domain: intel.com, ip: 192.55.52.120, 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=1679539485; x=1711075485; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6o6lbEehoe+n6CtICbhiRSa8kp9uw6o8gG6B8in6cYY=; b=hwCT0djVY5Zg8sXDsFAkE0dQ41VajMug7uFNj51s28t2m2R/XdBJrCoD CdT5+/Vdt1BHTOy6vh6I4zthccZFJby2OlCuv6Ic0SqWyD1WlEnNr5+eI Y9duPRoZAWSOifIt5Jb0Gk35I35Hl1RoVQOVuzrzE4KstLqPE0zXMFvu8 xaS/ZqHRVuUE2nIM7aQJVav+l779f/POr+5YEeZGR+NaUSKFyM1hBsV4V 9HaitVh/ejd3B9OBwc0QAhKZHTSJK1IBYVqhAHW+1lNEg7/s7eDj8DcpE zx5n8Efb6kPZncc3C5GzU0glCEaHBMP2aZahY9dvBHtB3Hknmlch92dtC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="338100736" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="338100736" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 19:44:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="712492315" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="712492315" Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.82]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 19:44:43 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Yi Li Subject: [edk2-staging/OpenSSL11_EOL][PATCH 2/4] CryptoPkg: remove unnecessary sig, ec and rsa prov Date: Thu, 23 Mar 2023 10:44:34 +0800 Message-Id: <03e04f0c7c4f121c2c5350d635dbb68373b12746.1679537389.git.yi1.li@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Yi Li --- .../Library/OpensslLib/OpensslStub/uefiprov.c | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/CryptoPkg/Library/OpensslLib/OpensslStub/uefiprov.c b/CryptoPkg/Library/OpensslLib/OpensslStub/uefiprov.c index c21c475331..4473e3e706 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslStub/uefiprov.c +++ b/CryptoPkg/Library/OpensslLib/OpensslStub/uefiprov.c @@ -160,9 +160,6 @@ static const OSSL_ALGORITHM deflt_kdfs[] = { static const OSSL_ALGORITHM deflt_keyexch[] = { #ifndef OPENSSL_NO_DH { PROV_NAMES_DH, "provider=default", ossl_dh_keyexch_functions }, -#endif -#ifndef OPENSSL_NO_EC - { PROV_NAMES_ECDH, "provider=default", ossl_ecdh_keyexch_functions }, #endif { PROV_NAMES_TLS1_PRF, "provider=default", ossl_kdf_tls1_prf_keyexch_functions }, { PROV_NAMES_HKDF, "provider=default", ossl_kdf_hkdf_keyexch_functions }, @@ -175,15 +172,6 @@ static const OSSL_ALGORITHM deflt_rands[] = { { NULL, NULL, NULL } }; -static const OSSL_ALGORITHM deflt_signature[] = { - { PROV_NAMES_RSA, "provider=default", ossl_rsa_signature_functions }, -#ifndef OPENSSL_NO_EC - { PROV_NAMES_ECDSA, "provider=default", ossl_ecdsa_signature_functions }, -#endif - - { NULL, NULL, NULL } -}; - static const OSSL_ALGORITHM deflt_asym_cipher[] = { { PROV_NAMES_RSA, "provider=default", ossl_rsa_asym_cipher_functions }, { NULL, NULL, NULL } @@ -196,15 +184,6 @@ static const OSSL_ALGORITHM deflt_keymgmt[] = { { PROV_NAMES_DHX, "provider=default", ossl_dhx_keymgmt_functions, PROV_DESCS_DHX }, #endif - - { PROV_NAMES_RSA, "provider=default", ossl_rsa_keymgmt_functions, - PROV_DESCS_RSA }, - { PROV_NAMES_RSA_PSS, "provider=default", ossl_rsapss_keymgmt_functions, - PROV_DESCS_RSA_PSS }, -#ifndef OPENSSL_NO_EC - { PROV_NAMES_EC, "provider=default", ossl_ec_keymgmt_functions, - PROV_DESCS_EC }, -#endif { PROV_NAMES_TLS1_PRF, "provider=default", ossl_kdf_keymgmt_functions, PROV_DESCS_TLS1_PRF_SIGN }, { PROV_NAMES_HKDF, "provider=default", ossl_kdf_keymgmt_functions, @@ -232,8 +211,6 @@ static const OSSL_ALGORITHM *deflt_query(void *provctx, int operation_id, return deflt_keymgmt; case OSSL_OP_KEYEXCH: return deflt_keyexch; - case OSSL_OP_SIGNATURE: - return deflt_signature; case OSSL_OP_ASYM_CIPHER: return deflt_asym_cipher; } -- 2.31.1.windows.1