From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mx.groups.io with SMTP id smtpd.web10.1937.1594171886217975773 for ; Tue, 07 Jul 2020 18:31:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KXce+JW9; spf=pass (domain: gmail.com, ip: 209.85.210.180, mailfrom: matthewfcarlson@gmail.com) Received: by mail-pf1-f180.google.com with SMTP id a14so14644573pfi.2 for ; Tue, 07 Jul 2020 18:31:26 -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=D/2cydKzPURlGVNR/tLl0M8l2UsOMzIWGpOWwpdDOak=; b=KXce+JW9Lv4EMQNYfNa0InxC//vkxSyWCSfiIY2u5J/2ujerIQnYRxqSYUPTAJ30gj sacpRRivi04vNTiu6t8mhl2VLE9PAzXKhghHy69MK3IKAG06zqBK8rIb33dkAyBHaKDU I233hfX2yZeceqVFtKiVbcGF3A3UMMgVEztFJ30eQ0HAzFfw25RBH5UsS/PQHGxERZIV S9XdfMomcDx7JG0CKKalMoz7qeLkQbxkzenS0W6ARYWHC39OPbhwEFrEoTmNzy8L0VBw AvVAQi3pou6epn4/CcciUcL3hcm5MrCIzvZMIrCbY1aqo7sKxNBLgy+1nBU7fY0dUn9e IU/A== 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=D/2cydKzPURlGVNR/tLl0M8l2UsOMzIWGpOWwpdDOak=; b=acOkm5GU+pF22qyui66O9yxAmGKsTuulWxWPoz3g2QHUAmGuPulOoedoFq3rXbW5eK tqvLTdMMGe4ByDMVX9+pTQOYCU6O0nQ7QbjSr2DZMCxed3R6EMgxReKKHkjUS2qKF6nr mTHvQrzJm+TynSoy/GA4LP1R5nKOOhhCmsEOVWQdMxTNpLsyrMaefauJiMQQxvZNuuvp Ym3/vImbjvMW6sH+Pt5j1Dl2hHthCkr6oSaOkHeBXgpaKIcmai4nFU9uC4KBbBuOqn9v MxadIWnlT+XLgzVsqXcxHLq52i9fXb9xdrEbCtT+WJzZ+TzBi+GCJOSbcyk9zh+f3tDb GFcg== X-Gm-Message-State: AOAM531CS0eXjAjJDNOz/7jMCuaYgL2IE/v9EKv5NnRgvGn1wF33snoy GYsjOUGn3BJD8477DQz1eKesOGKC6zg= X-Google-Smtp-Source: ABdhPJwA/XUQcqZUet5+ykDGxfKIHYhd3KHq3amvCN0SILagcKVK1WmYYvnPjxTAbGuFN2MRC5FJSg== X-Received: by 2002:a63:725c:: with SMTP id c28mr46047433pgn.156.1594171885337; Tue, 07 Jul 2020 18:31:25 -0700 (PDT) Return-Path: Received: from tvis-name-05.localdomain ([50.34.40.129]) by smtp.gmail.com with ESMTPSA id b191sm2036055pga.13.2020.07.07.18.31.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 18:31:24 -0700 (PDT) From: matthewfcarlson@gmail.com To: devel@edk2.groups.io Subject: [PATCH v1 0/3] *** SUBJECT HERE *** Date: Tue, 7 Jul 2020 18:31:19 -0700 Message-Id: <20200708013122.1301-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 *** BLURB HERE *** Matthew Carlson (3): UnitTestFrameworkPkg : BaseTimerLib: Adds a host-based timer Lib CryptoPkg: BaseCryptLib: Add unit tests (Host and Shell based) AzurePipelines : Pr Gate: Turn on HBUT for CryptoPkg CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c | 93 ++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/AuthenticodeTests.c | 1002 ++++++++++++++++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BaseCryptLibUnitTests.c | 66 ++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BlockCipherTests.c | 293 ++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c | 106 +++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HashTests.c | 197 ++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HmacTests.c | 184 ++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/OaepEncryptTests.c | 308 ++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/Pkcs5Pbkdf2Tests.c | 71 ++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/Pkcs7EkuTests.c | 524 ++++++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RandTests.c | 51 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaPkcs7Tests.c | 415 ++++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaTests.c | 310 ++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TSTests.c | 335 +++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/UnitTestMain.c | 81 ++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/UnitTestMainBCOP.c | 58 ++ UnitTestFrameworkPkg/Library/Host/BaseTimerLibHost/TimerLibHost.c | 137 +++ .azurepipelines/templates/pr-gate-build-job.yml | 2 +- CryptoPkg/CryptoPkg.ci.yaml | 6 +- CryptoPkg/CryptoPkg.dsc | 26 + CryptoPkg/Library/BaseCryptLib/UnitTestHostBaseCryptLib.inf | 90 ++ CryptoPkg/Test/UnitTest/CryptoPkgHostUnitTest.dsc | 36 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/Pkcs7EkuTestSignatures.h | 789 +++++++++++++++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLib.h | 121 +++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibHost.inf | 46 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibOnProtocolHost.inf | 46 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibUefiShell.inf | 49 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/ChainCreationInstructions.txt | 92 ++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/CreateTestCerts.cmd | 11 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/SignFirmwareWithEKUs.cmd | 76 ++ CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingIssuingCA.ini | 45 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingLeafSigner.ini | 25 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingLeafSignerPid1.ini | 24 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingLeafSignerPid12345.ini | 27 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingNoEKUsInSigner.ini | 16 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingPolicyCA.ini | 28 + CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingRoot.ini | 28 + UnitTestFrameworkPkg/Library/Host/BaseTimerLibHost/BaseTimerLibHost.inf | 40 + UnitTestFrameworkPkg/Library/Host/BaseTimerLibHost/BaseTimerLibHost.uni | 19 + UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | 1 + 40 files changed, 5872 insertions(+), 2 deletions(-) create mode 100644 CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/AuthenticodeTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BaseCryptLibUnitTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BlockCipherTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HashTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HmacTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/OaepEncryptTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/Pkcs5Pbkdf2Tests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/Pkcs7EkuTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RandTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaPkcs7Tests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TSTests.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/UnitTestMain.c create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/UnitTestMainBCOP.c create mode 100644 UnitTestFrameworkPkg/Library/Host/BaseTimerLibHost/TimerLibHost.c create mode 100644 CryptoPkg/Library/BaseCryptLib/UnitTestHostBaseCryptLib.inf create mode 100644 CryptoPkg/Test/UnitTest/CryptoPkgHostUnitTest.dsc create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/Pkcs7EkuTestSignatures.h create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLib.h create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibHost.inf create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibOnProtocolHost.inf create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibUefiShell.inf create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/ChainCreationInstructions.txt create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/CreateTestCerts.cmd create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/SignFirmwareWithEKUs.cmd create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingIssuingCA.ini create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingLeafSigner.ini create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingLeafSignerPid1.ini create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingLeafSignerPid12345.ini create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingNoEKUsInSigner.ini create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingPolicyCA.ini create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestEKUCerts/TestEKUParsingRoot.ini create mode 100644 UnitTestFrameworkPkg/Library/Host/BaseTimerLibHost/BaseTimerLibHost.inf create mode 100644 UnitTestFrameworkPkg/Library/Host/BaseTimerLibHost/BaseTimerLibHost.uni -- 2.25.1.vfs.1.1