From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web10.1550.1596129684018628393 for ; Thu, 30 Jul 2020 10:21:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=umobHB6i; spf=pass (domain: gmail.com, ip: 209.85.216.52, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pj1-f52.google.com with SMTP id mt12so4781682pjb.4 for ; Thu, 30 Jul 2020 10:21:23 -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=B9n5TxLtqnTzvywWJdjRy7kdqoGTCCjbsm/OYWEJoNQ=; b=umobHB6iU8LL2jEBJqQD6Bdko0/z5oNeun2qtg7rYkwl8CzbmkDbAgld2YujgDnHpT 0ERARsamCMnsYoBvHqbwCe2Q/M2Emq0SVo9JbdCedc3FXyTd42wvH46g6O47aYAYa8BV qY55Kc2H+fpYkA+4OJIbWuc1mH1oyh35csEtVxTZ/CZ/JKMjGDuyyZtrevgmRV86dsuu 7qsVb09MRhEudiYtgbDSgMJ3doJ1ypF7Tt+2fvYjIhtPCUHfkHkxs1d/B3oqHNkXuPZr 40LNLommrYrHCSzP999SfBTQdglmcj8/5t/YjcYICKnM6KNvcpA1cUHNMWNLKldLxFIa lBng== 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=B9n5TxLtqnTzvywWJdjRy7kdqoGTCCjbsm/OYWEJoNQ=; b=rLUzNLKSPQOQ4wlFWBYa30Z8hvLQ1P4zxYKzv+gwt08JAqsLCsK0o6dk8qlIMtl9sp rnGXEthD0hTpO+pbH+gVROOXSUDpMFj/gD1pyaaUe/WyYpW0crdcCEsxK3c6sKDzrJYT 3j/DYEqj94ZDPqkPB4W3fhNNDFEFYcVSd3nrRiYUhLrOTgH8Asn+zCVmQT1IS4SLTRzR DX82ntRlLOqLtDZHYaj5RJw9XLMKSDlYhY+zo1otJQm60Ch5gtD4pZQrqTJgsApJbBbg lBX/jhNWajZ/Tumi7ee7WGew7TB87s+nmTpK4cxc4Wtza3LfHb1xUAg1rOwgTKKh49C4 cNEQ== X-Gm-Message-State: AOAM530YLXHPtopBT/OFk5VtMc8j8qJkeAz8nHEjtnd0+U7T9RN9h8s5 DuHBtj9F2hHU3zsV4n8dfz9FNciis68= X-Google-Smtp-Source: ABdhPJzHesbiuJlh03fJCK4hhDLiw2Vrx3myEjOo1St1fg7GB1d99+CqaQohvGKcKHeIldgNc/UuUw== X-Received: by 2002:a63:2223:: with SMTP id i35mr36895365pgi.64.1596129683158; Thu, 30 Jul 2020 10:21:23 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id mp3sm21562914pjb.0.2020.07.30.10.21.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 10:21:22 -0700 (PDT) From: "Matthew Carlson" To: devel@edk2.groups.io Subject: [Patch v2 0/2] Use RngLib instead of TimerLib for OpensslLib Date: Thu, 30 Jul 2020 10:21:15 -0700 Message-Id: <20200730172117.1558-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. See PR here: https://github.com/tianocore/edk2/pull/831 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 | 202 ++------------------ CryptoPkg/Library/OpensslLib/rand_pool_noise.c | 29 --- CryptoPkg/Library/OpensslLib/rand_pool_noise_tsc.c | 43 ----- MdePkg/Library/BaseRngLibTimer/RngLibTimer.c | 153 +++++++++++++++ CryptoPkg/CryptoPkg.dsc | 2 + CryptoPkg/Library/OpensslLib/OpensslLib.inf | 15 +- CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 15 +- CryptoPkg/Library/OpensslLib/rand_pool_noise.h | 29 --- MdePkg/Library/BaseRngLibTimer/BaseRngLibTimer.inf | 37 ++++ MdePkg/Library/BaseRngLibTimer/BaseRngLibTimer.uni | 17 ++ MdePkg/MdePkg.dsc | 1 + 11 files changed, 230 insertions(+), 313 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/BaseRngLibTimer/RngLibTimer.c delete mode 100644 CryptoPkg/Library/OpensslLib/rand_pool_noise.h create mode 100644 MdePkg/Library/BaseRngLibTimer/BaseRngLibTimer.inf create mode 100644 MdePkg/Library/BaseRngLibTimer/BaseRngLibTimer.uni -- 2.27.0.windows.1