From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.web12.1322.1597272245734006578 for ; Wed, 12 Aug 2020 15:44:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i4cia5mk; spf=pass (domain: gmail.com, ip: 209.85.216.54, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pj1-f54.google.com with SMTP id mw10so1844846pjb.2 for ; Wed, 12 Aug 2020 15:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EWjO4BLAsDnteQ/r/gL05Vvg/3voEz5zvqtmXKJc7Ng=; b=i4cia5mk++qbdxvDvKMrERCFVWiMjJJWtBOVbaRA0e6SAG3UnhNzfFijKkQaP1SDNL Ui6B20yZKh6yWFeylzMakY65h4b0EO05jYkTlhV+fXn5FY0kEwJ/8Ju2A9rZad82R1OB FDb+bYj1qK2+aFFof55nP2RnGlLtaAr4US8gJtwiViPGIaOjBKCQHHYBePy9ZeRB1Zu8 CtmxOSu/c9vOouFwJg7hfSglGH51mSsrtHw9xNBRP/qDQMMx9WVLJWCA7X6fKvnimefi beGMwEtZRNQQSRPRjeOluv7IFTAb73BgmY/nW2RppC509ePUZru4ipGuB3CcSubpDUuq lFBw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=EWjO4BLAsDnteQ/r/gL05Vvg/3voEz5zvqtmXKJc7Ng=; b=bYG68BanesR2uISJ5A+KFv7uKwZygNyN5xwizwNiE52f6wD4MBEIpn8c2+LFSt17Eb v4/2tr74A0J0JG+o1KW6Mpyik++2+WBVGp5SIJw36BudOZr20KapeazedyzV/Ib3Qpbr mqmYRI6syUYD9/+1bf5iFPs9uUkeU4wm2OZNY2lWvhHzR/viz3JFsGaTH7pcv2EKgDHI X5yOQM3vrlsxCByX2e1cGsNv8jxddAjp6bKMNAR98/lIVdfke3KyY0I/O8UssITBX07X CAxPIPlBD7JRV8YmJ3bIMct25ObTONfn8H+roxN4VHswj+STgI6uUnaMsVaFYzlfchmk vs3Q== X-Gm-Message-State: AOAM5323DYbyWuHiEX9tVWDB1EYBiWq319yTwrphOAnGLMcgsekWcuud JT+WAuUWWbvl58p1+P25uIlSJURdboGkIg== X-Google-Smtp-Source: ABdhPJxZ4S1X3WudFrgstFK9L8gs61v8jyhVr/LQguNYFk1f14bTdkB6qu/00um6blinaId7EASkFA== X-Received: by 2002:a17:902:50d:: with SMTP id 13mr1352313plf.311.1597272245084; Wed, 12 Aug 2020 15:44:05 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id l63sm3252943pgl.24.2020.08.12.15.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 15:44:04 -0700 (PDT) From: "Matthew Carlson" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Anthony Perard , Julien Grall , Matthew Carlson Subject: [PATCH v6 3/5] OvmfPkg: Add RngLib based on TimerLib for Crypto Date: Wed, 12 Aug 2020 15:43:36 -0700 Message-Id: <20200812224338.287-4-matthewfcarlson@gmail.com> X-Mailer: git-send-email 2.27.0.windows.1 In-Reply-To: <20200812224338.287-1-matthewfcarlson@gmail.com> References: <20200812224338.287-1-matthewfcarlson@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Matthew Carlson Updates the DSC's for Ovmf based platforms to add a RngLib that uses the TimerLib. This is due to a later change that adds TimerLib as a dependency for OpenSSL. The TimerLib based RngLib mimics the behavior of OpenSSL previously and it is recommended to switch to a better source of entropy than the system's performance counter. Ref: https://github.com/tianocore/edk2/pull/845 Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1871 Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Anthony Perard Cc: Julien Grall Signed-off-by: Matthew Carlson Reviewed-by: Laszlo Ersek --- OvmfPkg/Bhyve/BhyvePkgX64.dsc | 1 + OvmfPkg/OvmfPkgIa32.dsc | 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 1 + OvmfPkg/OvmfPkgX64.dsc | 1 + OvmfPkg/OvmfXen.dsc | 1 + 5 files changed, 5 insertions(+) diff --git a/OvmfPkg/Bhyve/BhyvePkgX64.dsc b/OvmfPkg/Bhyve/BhyvePkgX64.dsc index 8eba48d109a3..4b1fbb361b28 100644 --- a/OvmfPkg/Bhyve/BhyvePkgX64.dsc +++ b/OvmfPkg/Bhyve/BhyvePkgX64.dsc @@ -185,6 +185,7 @@ !else=0D OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf=0D !endif=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D PlatformSecureLib|OvmfPkg/Bhyve/Library/PlatformSecureLib/PlatformSecure= Lib.inf=0D diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 9178ffeb71cb..fc1c8014eba1 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -189,6 +189,7 @@ !else=0D OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf=0D !endif=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.in= f=0D diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index a665f78f0dc7..2365dc2fa98d 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -193,6 +193,7 @@ !else=0D OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf=0D !endif=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.in= f=0D diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 17f345acf4ee..6992cfd98b70 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -193,6 +193,7 @@ !else=0D OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf=0D !endif=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.in= f=0D diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index 782803cb2787..416f81f06a04 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -179,6 +179,7 @@ !else=0D OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf=0D !endif=0D + RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf=0D =0D AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLib= Null.inf=0D VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf=0D --=20 2.27.0.windows.1