From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web12.4530.1598475309612189352 for ; Wed, 26 Aug 2020 13:55:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A8qqepR1; spf=pass (domain: gmail.com, ip: 209.85.210.174, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pf1-f174.google.com with SMTP id k15so1689744pfc.12 for ; Wed, 26 Aug 2020 13:55:09 -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=zJuYnknLD1YfrZiNugmgXqvk6V/kk/2V5+bbXz5+7nw=; b=A8qqepR1OxVBNbHnUwZW/nFs4f0GvOFmpXPNuup4V5r5oFV7c+q83H2tYo49wsTc4T sTJui+Km20kSUU4w0xxkYQMwD13T4fhtk1GQh0T/69QbOOqQSELB8owAv3WuBNJaIYqA VyEzOVexZVevJWbVNAWDqUj7vr5ZZ0xjKQNNcqkf7eQZGNUWVsCeIOjfHpGBBsz76Iti hVZIeX0TyADOU9lRlbK316S5Ni1IxrwJVcPPd2rkCU44cTeq0Cq4gtYnA83x9xSYLYvw YcMQ3YtlcngJ4WyJMHAW1v8Bq39dJ5kkyCGdM2n4HNRKPLoOuL0Ad+RewHXbX99gnFDu 6opA== 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=zJuYnknLD1YfrZiNugmgXqvk6V/kk/2V5+bbXz5+7nw=; b=N3hzXe/SgWyIyD38To2t77mo+9eIhpm9FsyLiXtA7TxAPM6TPKPUOS4SfOVzzrlvaM 5WXSyvaDXClvCXoAkWAD0k0sEmLfaHS/h630ZFHMrJWMus0SiTQwHBWiwvuj0jMTro+N Db3h9LxZW08Hdv8+Fm6FSzegzPjr7YeeRNI25R2+A8WrC6U1Ysu/2Al0bkeALn07wvZe 6fuAUEFwSZC5yGebfw7FQIOaAEjsnVNuCfIzLUh1R3KZGuH7CIdThVQxoaMJzIxmIFFs GgbVX6FSpDtYkMLMeD793IFLl70+txCMf3oinZpIvzmnzy0JvbMwV01Rr9uYYxfVJXHJ DoSA== X-Gm-Message-State: AOAM532NT0INydZmrGo1JU8DYnz69ZLUwMI6uxibvs1KmYFknRVpFC28 sZh2ZOGxYSIPHrQDwPfdFxdD4+B2xNZX8QO+ X-Google-Smtp-Source: ABdhPJwzKhnDIrDG80NTcofnok33Tt8tw4+2C970zfNPgxxPjU4z5/hpOitGWc+h5DytfCBuwVu2NA== X-Received: by 2002:a62:78cb:: with SMTP id t194mr13468696pfc.171.1598475308860; Wed, 26 Aug 2020 13:55:08 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id s67sm68284pfs.117.2020.08.26.13.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 13:55:08 -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 v9 3/5] OvmfPkg: Add RngLib based on TimerLib for Crypto Date: Wed, 26 Aug 2020 13:54:59 -0700 Message-Id: <20200826205501.1124-4-matthewfcarlson@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200826205501.1124-1-matthewfcarlson@gmail.com> References: <20200826205501.1124-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/BhyveX64.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/BhyveX64.dsc b/OvmfPkg/Bhyve/BhyveX64.dsc index d2e9edfaa6b8..16d2233d7788 100644 --- a/OvmfPkg/Bhyve/BhyveX64.dsc +++ b/OvmfPkg/Bhyve/BhyveX64.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