From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by mx.groups.io with SMTP id smtpd.web11.96046.1597865838880452764 for ; Wed, 19 Aug 2020 12:37:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NrGPCFYf; spf=pass (domain: gmail.com, ip: 209.85.214.194, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pl1-f194.google.com with SMTP id s14so5348214plp.4 for ; Wed, 19 Aug 2020 12:37:18 -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=2bol0wSfLrabLoi7H6+P0SbRglLrSF9t1p+vaZzkzvs=; b=NrGPCFYfolKBZXfb2YkqIaRCduVZUPq6DneD3Rn3ym/ZgYkPMI/0+qjxL4OgwsTPDV WCh+TdOwjjagQk44v6ASGHnps2dENt019K/KTOPKJqo9AoCQuxEZakeSBviwcharLFcl 3Is0MFXGtyOyU30nNRGuNwFZPgI7q5jgr13dHlgpS19+NmiaqvuSy57kB6xv0/gWQL5O y8Q4Qi8+2jyDKo8uPRa3AzX/tk7O64tfF5g4HeXn/H2jiUkbqwUErhAWbDYilke8AB9H iKhQjdYMzcTPdSbDNP/QOGz4XkmoO30fTAqKvNYv5GeA1ToNY/yNqwyUu0l6tC5CKUEQ 00Xg== 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=2bol0wSfLrabLoi7H6+P0SbRglLrSF9t1p+vaZzkzvs=; b=Drvno/ArftDwgaSXsnEiKXo1DQH2wM/7IodUV1Z8rYrPJzxp8ReYZzcCl1H1ZGf9+h yYSN/IJDCHYyyTxv3qN3lvyc60Zp8b6u+CZOzB3mFEhCUmkgJf1Ef46EoZMOvX9CnpQU 8sNT2O0p3rycwtxUpIrTRhJJJSCD4HNY9lhu8fkMoj28XJ0LA00ZE1mchIPAtyxyE4U7 +QtP9ZOJvPGWx4MLNo8uOnmmiMvge/4zBzsbNBTAYuOOeM7CICr4x1dzWoeXRe3YwzLj SjCpzSX9aFJ2XU+3jdzf1rdBqkp0ybh1nu+Eh8yrA2yPEGfSJrzJFFBDuVI0V5q/39wt PHIg== X-Gm-Message-State: AOAM531p1qg8nZRJxVZGs1hGrgl36LiqfmVEFJM7vImxqmB/K3jfEgQa /1zTIOx0z9x8kwpuOef9XjsMlKmSA+bMzMx1 X-Google-Smtp-Source: ABdhPJwtQIkgbztPK/2HQ3thd8eWt7JM+zGvDgGfghBXsPve8VTWutxqGMInaZtqMbeCRuxuQoc3lA== X-Received: by 2002:a17:90a:ff0e:: with SMTP id ce14mr5383032pjb.128.1597865838139; Wed, 19 Aug 2020 12:37:18 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id u191sm24480265pgu.56.2020.08.19.12.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 12:37:17 -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 v8 3/5] OvmfPkg: Add RngLib based on TimerLib for Crypto Date: Wed, 19 Aug 2020 12:37:10 -0700 Message-Id: <20200819193712.1629-4-matthewfcarlson@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200819193712.1629-1-matthewfcarlson@gmail.com> References: <20200819193712.1629-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 Reviewed-by: Laszlo Ersek Signed-off-by: Matthew Carlson --- 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 99e214619be0..0bf1acbc8dc8 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 133a9a93c071..fa18adeb5c5a 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 338c38db29b5..7456a154168d 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 b80710fbdca4..5bda143fd14d 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 37b63a874067..e562abd7175d 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.28.0.windows.1