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.3454.1595901195756729353 for ; Mon, 27 Jul 2020 18:53:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u6j5F1SN; spf=pass (domain: gmail.com, ip: 209.85.216.54, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pj1-f54.google.com with SMTP id k71so10667549pje.0 for ; Mon, 27 Jul 2020 18:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=A0xCPqdbgKQLdzM5Qeo6YLPOQr+/i4l8zdGwD7hRD9U=; b=u6j5F1SN52pNKeUbeOi5oWZg62HKi/EQpRM8JmNXa+HDVwr0qmyaVRUkJrRN9SVxoX mj3XSrakpiV/72vcofRff984NOBSd9vm6uBdRXNEMw4o09IySuNWeZeipRSMWyuHxev0 I3FCUXmcsKmHIuKJGULGzAb76XRSojPtXD1Vhsv6tS57q8dsKS7dSN1rRurL+LKIWf7N cEu9TxvGJV3NgYRChX48AFrUwsE8RE9z3O34lOtQ9aAy7fd7SP/MDbS+7uoq1x9zkCyD NoNMyssTap3I55Gt6HoU4g1fV6X/OaOmEhltU7wPnIRG3Dg541ZQrRshpXKA9IYs6FfK 1iEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=A0xCPqdbgKQLdzM5Qeo6YLPOQr+/i4l8zdGwD7hRD9U=; b=sd0ulpvPhfnbrjZOiUkVOyIaUBNgJwCYxWNVUUhXPAA7LQUGHpdnaD0oOPJbGnqyq9 pNf3f2lVlPW5DM60mO0Mh2ZvJdPn96GwGpVC2+Ef72Ft/wu1j+Ru/OBmlIEW2asdVATT 4H/9VeC3+6JxpF1EdlLC86JmayCoIihE74II5m6JAUxoCaVhXmaKNgAg5wlHdpeKYLTa wJrzLZD9Ipq3pG3C2XtkVAoziHj8CzOneLsGNbcTqJVxcR63A3w1Jv85MqnTlYcP9p2j YC8P0hfuh8sWQTWWaq+laxpEipPK919Df30oBgyMee1Vm5O87bK68aXpXwVN/GE6NhNX TMbg== X-Gm-Message-State: AOAM533XRyURpr6IawATJX9tQEz3jZvYoTwFX9awEbTTN0I8EVl+E+Sv S6mORNOKr5eYuZ3Z43b6Mbq4KZ4OMK4= X-Google-Smtp-Source: ABdhPJxB1J9cnjEJf1aXASN+e+Aix4bwhSHKAsbfXJbEBvdto9ihS7Fmw/tdXDKc9GoX8UBhQJxyDA== X-Received: by 2002:a17:90a:d42:: with SMTP id 2mr1965515pju.15.1595901195003; Mon, 27 Jul 2020 18:53:15 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id a184sm9579151pfa.83.2020.07.27.18.53.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 18:53:14 -0700 (PDT) From: "Matthew Carlson" To: devel@edk2.groups.io Subject: [PATCH v1 0/2] Use RngLib instead of TimerLib for OpensslLib Date: Mon, 27 Jul 2020 18:53:10 -0700 Message-Id: <20200728015312.1023-1-matthewfcarlson@gmail.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Matthew Carlson This fixes bugzilla 1871. Matthew Carlson (2): CryptoPkg: OpensslLib: Use RngLib to generate entropy in rand_pool MdePkg: TimerRngLib: Added RngLib that uses TimerLib CryptoPkg/Library/OpensslLib/rand_pool.c | 200 ++------------------ CryptoPkg/Library/OpensslLib/rand_pool_noise.c | 29 --- CryptoPkg/Library/OpensslLib/rand_pool_noise_tsc.c | 43 ----- MdePkg/Library/TimerRngLib/TimerRng.c | 153 +++++++++++++++ CryptoPkg/Library/OpensslLib/OpensslLib.inf | 15 +- CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 15 +- CryptoPkg/Library/OpensslLib/rand_pool_noise.h | 29 --- MdePkg/Library/TimerRngLib/TimerRngLib.inf | 37 ++++ MdePkg/MdePkg.dsc | 2 + 9 files changed, 212 insertions(+), 311 deletions(-) delete mode 100644 CryptoPkg/Library/OpensslLib/rand_pool_noise.c delete mode 100644 CryptoPkg/Library/OpensslLib/rand_pool_noise_tsc.c create mode 100644 MdePkg/Library/TimerRngLib/TimerRng.c delete mode 100644 CryptoPkg/Library/OpensslLib/rand_pool_noise.h create mode 100644 MdePkg/Library/TimerRngLib/TimerRngLib.inf -- 2.27.0.windows.1