From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by mx.groups.io with SMTP id smtpd.web11.3223.1597347886712336357 for ; Thu, 13 Aug 2020 12:44:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hbbRbqbK; spf=pass (domain: gmail.com, ip: 209.85.216.68, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pj1-f68.google.com with SMTP id c6so3270389pje.1 for ; Thu, 13 Aug 2020 12:44:46 -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=O0+rMRXDh/8my3xgB3bESmGCufCSZOeTYYlzpkOfjwo=; b=hbbRbqbK17giMY2jIuYd+IXyuq4mdKtmuoGSX53L24aEMhT7ysGBkBe2OcEdrmT4m0 qhC+Iw4i8pYouIzK5L0Y2WGZDF1o6zZ/XchciD1H9V/joFxLKwbETx3tTjbv7zlKYbre 1af6sDBjpu/+uEX7V+J4HUYrOZCKtPbmNeYW6nCZpMpc8hniV5UjhhV7oT7Qfh8jxGah Bkf4lhvAZULwSDrbXJdMioJ35tvQiiWxpwX+twd/eTnyLFzigX1PrjERQjpPFRCVhpJ+ Bc8l2MV00b57bnIP1hmU3gH0SRnSRJU/SuLcCZoz43HBxCUYw8/CMOcGWWNiSzOu8AYP SuVQ== 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=O0+rMRXDh/8my3xgB3bESmGCufCSZOeTYYlzpkOfjwo=; b=Q6Et1ZhMaNEUvPu10OKHv5RTVRO6gqBZHi467cN8xGVJalS5lJIgdAo/rECZkoc/P0 +DfP7wFNBA+ZT1e1PljNrsqRe9/XOGd5cY6WY7DioduWceu8ZOJEOmVUAlyl66KFdQa7 IIztysstl7mCVI9vWen+r4kVRFwMK0hHu2rOD8Lld0VfUU4aWswjInITn1OmzT9UKWjw OpUVAC6ry+Gm01napE4TzUaSLa1HTYvGbao4F3EjySRq9fKYxN/Czu7UOtrMOnhDD3B7 pjY1iNm4WWmTOcc0/DMEUoyRFacLu3nYwQIsx4FErIC+7RSTF/E60kdM0q0Y4AR3EwYE npVw== X-Gm-Message-State: AOAM530OqvSCXPtzf8HRYhjLNi3ft5bpOwuuNmC2uCAFk4/dUsO+1TF4 1HApHGP1u0KB+S46irXm1BZYYIGrEM27tg== X-Google-Smtp-Source: ABdhPJza19xwF0Sup4W03rcye1VgheBHYJ0dgCkBw8uXozuBrvmT8OQVxpadpcR1NksNKm2Me+nISw== X-Received: by 2002:a17:902:8ecb:: with SMTP id x11mr5053636plo.13.1597347886058; Thu, 13 Aug 2020 12:44:46 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id c15sm6708851pfo.115.2020.08.13.12.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 12:44:45 -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 v7 3/5] OvmfPkg: Add RngLib based on TimerLib for Crypto Date: Thu, 13 Aug 2020 12:44:39 -0700 Message-Id: <20200813194441.892-4-matthewfcarlson@gmail.com> X-Mailer: git-send-email 2.27.0.windows.1 In-Reply-To: <20200813194441.892-1-matthewfcarlson@gmail.com> References: <20200813194441.892-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 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