From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by mx.groups.io with SMTP id smtpd.web10.1110.1582595635167497833 for ; Mon, 24 Feb 2020 17:53:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nLp05XDX; spf=pass (domain: gmail.com, ip: 209.85.214.193, mailfrom: newexplorerj@gmail.com) Received: by mail-pl1-f193.google.com with SMTP id t14so4817830plr.8 for ; Mon, 24 Feb 2020 17:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ktjJKe8FM8xX0+60oRHOq8Qn5mzfWajnDB/zO8/x0o8=; b=nLp05XDXsq0/NAMO6OZYNUq3jtzRXr4yc7+7j9Tlw7LwIJ752oCNdd1CkjuMeKPwac Fc5pCi/z0RBE7Sa0At8C3yaYZ+rhecf6LOfgO5lcA6v6F1l05KPBXY1ebuFy1XtCCwHY uFq8ptC8N0VHJELSrIuEi9q5NrLp33RTNFnq8PQ+E13rY2Fs6NgdoYCr3AO/RVu1/gnF ZIjC1xW2HKO0mEmpA5tEV+r5Efkw29Z4GKrcZquTrfvKW9HaIugYZmRX84v4njM8q16j QfEly+2jE67OS2J2EfZ7ho7iZN59yQVlsto+8VUeUpr3V7eYr/cuSGVoG9ShTSWIJLqc tI0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ktjJKe8FM8xX0+60oRHOq8Qn5mzfWajnDB/zO8/x0o8=; b=cMwJg5gRTFXZBeZ3sGfE0u4YE8CnFQXPjEeyleXjOMv6TuI1bYWxaRtONE5ozznv8x o+7I/6GYJEIDuXuwd+R0u4Su8/wgP6bmfqSh4++6sMmJUUuUt6cKVjRq2tTNlpp5K4yk W9Eq6uxtkVmEiHGtnDOoEege3jGXTJC/Soo8U3UoacwS6/gMHNs76wUyeRlnZXYs4kC4 1NoLVQmanhJebLg8Fy0v6Yx/RGCR3ltq8a8S+sWePh950vP5kCqSjh5AMh0DK7F73+X7 aF5ixEVLaK9TofZsJqQKgk9R9KLNFUrAdEWH7CvnT1roNFYf/aZy0YTjGJRmx1DZLzoV mpEw== X-Gm-Message-State: APjAAAUjbF7fNYTYq6VUDhwlXIhRhk+s8WjdBGiEkUtXXwcoAF89pFvb o+wnbKf/GMdpHACasf8Y6PvZA/TGm4iTmQ== X-Google-Smtp-Source: APXvYqzTUtaiWeNr5tHhCiMoyi5BrGFWALV0OqryS38LnZOBb7ysUT7phh+VF5VHpDoPuZg7L/zxxQ== X-Received: by 2002:a17:90a:d801:: with SMTP id a1mr2384704pjv.34.1582595634276; Mon, 24 Feb 2020 17:53:54 -0800 (PST) Return-Path: Received: from localhost.localdomain ([222.67.15.87]) by smtp.gmail.com with ESMTPSA id c15sm14139221pfo.137.2020.02.24.17.53.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 17:53:53 -0800 (PST) From: "GuoMinJ" To: devel@edk2.groups.io Cc: GuoMinJ Subject: [PATCH] CryptoPkg: ECC issue. Date: Tue, 25 Feb 2020 09:53:29 +0800 Message-Id: <76a4ba530dea866c743b2f8f85a1672a34a35e52.1582595594.git.newexplorerj@gmail.com> X-Mailer: git-send-email 2.17.1 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2552 Some issue is reported by ECC tool, correct it. Signed-off-by: GuoMinJ --- .../Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c | 9 +++++++++ CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c index 34d5f410b0..b503a5708b 100644 --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c @@ -32,6 +32,15 @@ GetCryptoServices ( return (VOID *)mCryptoProtocol; } +/** + Locate the valid Crypto Protocol. + + @param ImageHandle The firmware allocated handle for the EFI image. + @param SystemTable A pointer to the EFI System Table. + + @retval EFI_SUCCESS The constructor executed correctly. + @retval EFI_NOT_FOUND Found no valid Crypto Protocol. +**/ EFI_STATUS EFIAPI DxeCryptLibConstructor ( diff --git a/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf b/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf index b4d8675ddd..046320353b 100644 --- a/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf +++ b/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf @@ -17,7 +17,7 @@ FILE_GUID = B1E566DD-DE7C-4F04-BDA0-B1295D3BE927 MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = BaseHashApiLib + LIBRARY_CLASS = HashApiLib # # The following information is for reference only and not required by the build tools. -- 2.17.1