From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.14167.1664077144999759383 for ; Sat, 24 Sep 2022 20:39:13 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=F67BgLYL; spf=pass (domain: intel.com, ip: 134.134.136.100, 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=1664077152; x=1695613152; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZpPcLqDLQEoRiE9gfHWXy3SrPXBMxaJb4R4jc8Iguno=; b=F67BgLYLDd9zUqlKgkJOvuJtRvAKENyooBn2iVkK0myit9pcopv8AR9O +o5T7Aa3YA6o7556UlFSkdGNXhj5blDCWT/CLUtQfpsoK/I3mMnYhvbKN 84iYoC/qrW4zLgqUUom940ZtMeTRYvi/Ek9+D6hyddyzV0d2F+nRvMcEq M0jkZ4JifEnqfRPQi/nj/9ziAlapGCOHYqowE+0/SHCkRkXoYr5Gm3ecI c+DK+LruBlM7k9Uaj1jqWAhEgyeQoOhUukvWpiiVTTKoqf4Qw1Wsy6Flm jt1PJw2MXJWFz7xcaJ+Dj58OlKd6ov9uJ6oE1FkG3GlxdOu/yBmsvDhXz w==; X-IronPort-AV: E=McAfee;i="6500,9779,10480"; a="364859461" X-IronPort-AV: E=Sophos;i="5.93,343,1654585200"; d="scan'208";a="364859461" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2022 20:39:12 -0700 X-IronPort-AV: E=Sophos;i="5.93,343,1654585200"; d="scan'208";a="689158116" Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.82]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2022 20:39:10 -0700 From: "yi1 li" To: devel@edk2.groups.io Cc: Yi Li , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang , Michael D Kinney Subject: [PATCH V4 3/4] CryptoPkg: Add ECC related usage reference Date: Sun, 25 Sep 2022 11:38:48 +0800 Message-Id: <2a9509d9f212b28a77146b19c43dbb9d0b9670db.1664075912.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 Describes the use cases under which ECC needs to be enabled, and provides the impact on memory size for developers' reference. Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Cc: Michael D Kinney Signed-off-by: Yi Li --- CryptoPkg/CryptoPkg.dec | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CryptoPkg/CryptoPkg.dec b/CryptoPkg/CryptoPkg.dec index d9b64e5763..c5035d47a4 100644 --- a/CryptoPkg/CryptoPkg.dec +++ b/CryptoPkg/CryptoPkg.dec @@ -83,7 +83,35 @@ ## Enable/Disable the ECC feature in openssl library. The default is disabled. # If ECC feature is disabled, all related source files will not be compiled. + # @Prompt Enable/Disable ECC feature in EDK II Crypto gEfiCryptoPkgTokenSpaceGuid.PcdOpensslEcEnabled|FALSE|BOOLEAN|0x0000003 + # Set it to TRUE if: + # 1) Platform needs ECC in public key related service, eg. Tls, X509, Pem. + # 2) Platform needs to enable PcdCryptoServiceFamilyEnable.Ec service. + # Please note: + # ECC feature will cause a significant memory increase, approximate memory impact + # in below table for reference by platform developers with FW size limitations. + # Uncompressed LZMA Compressed + # CPU CRYPTO_SERVICES Module EC=FALSE EC=TRUE EC=FALSE EC=TRUE Increase + # ==== =============== ======== ======== ======= ======== ======= ======== + # IA32 NONE CryptoPei 21536 21568 0 KB + # IA32 NONE CryptoDxe 21632 21696 0 KB + # IA32 NONE CryptoSmm 22976 23072 0 KB + # IA32 MIN_PEI CryptoPei 248992 249120 0 KB + # IA32 MIN_DXE_MIN_SMM CryptoDxe 636672 829568 288520 401034 113 KB + # IA32 MIN_DXE_MIN_SMM CryptoSmm 426048 601472 191517 296022 105 KB + # IA32 ALL CryptoPei 423840 598976 189047 293759 104 KB + # IA32 ALL CryptoDxe 645280 838144 292955 405277 113 KB + # IA32 ALL CryptoSmm 441888 617184 198779 303628 105 KB + # X64 NONE CryptoPei 29632 29664 0 KB + # X64 NONE CryptoDxe 29792 29792 0 KB + # X64 NONE CryptoSmm 31296 31296 0 KB + # X64 MIN_PEI CryptoPei 310784 310848 0 KB + # X64 MIN_DXE_MIN_SMM CryptoDxe 804288 1016256 311436 426596 115 KB + # X64 MIN_DXE_MIN_SMM CryptoSmm 543776 733920 204483 310775 106 KB + # X64 ALL CryptoPei 540384 730240 202494 308467 106 KB + # X64 ALL CryptoDxe 815392 1027296 316228 431321 115 KB + # X64 ALL CryptoSmm 563648 753696 213488 319644 106 KB [UserExtensions.TianoCore."ExtraFiles"] CryptoPkgExtra.uni -- 2.31.1.windows.1