diff --git a/whitebox/api/license_whitebox_benchmark.cc b/whitebox/api/license_whitebox_benchmark.cc index 0e35c81..7cad6c7 100644 --- a/whitebox/api/license_whitebox_benchmark.cc +++ b/whitebox/api/license_whitebox_benchmark.cc @@ -10,6 +10,7 @@ #include "api/license_whitebox.h" #include "api/test_license_builder.h" #include "api/test_license_whitebox_keys.h" +#include "base/check_op.h" #include "benchmarking/data_source.h" #include "crypto_utils/crypto_util.h" #include "testing/gtest/include/gtest/gtest.h" @@ -30,7 +31,8 @@ void LicenseWhiteboxBenchmark::SetUp() { ASSERT_TRUE(encryption_public_key_); } -License LicenseWhiteboxBenchmark::CreateLicense() const { +License LicenseWhiteboxBenchmark::CreateLicense( + WB_LicenseKeyMode key_mode) const { TestLicenseBuilder license_builder; license_builder.AddSigningKey(TestLicenseBuilder::DefaultSigningKey()); // Use secure crypto as it will work with both Decrypt() and @@ -38,7 +40,19 @@ License LicenseWhiteboxBenchmark::CreateLicense() const { license_builder.AddContentKey(SecurityLevel::kSoftwareSecureCrypto, key_id_, key_); - auto server = TestServer::CreateDualKey(); + std::unique_ptr server; + + switch (key_mode) { + case WB_LICENSE_KEY_MODE_SINGLE_KEY: + server = TestServer::CreateSingleKey(); + break; + case WB_LICENSE_KEY_MODE_DUAL_KEY: + server = TestServer::CreateDualKey(); + break; + default: + CHECK(false) << "Could not create test server, Unknown key mode."; + break; + } License license; license_builder.Build(*server, &license); diff --git a/whitebox/api/license_whitebox_benchmark.h b/whitebox/api/license_whitebox_benchmark.h index 96f24c8..e6259f7 100644 --- a/whitebox/api/license_whitebox_benchmark.h +++ b/whitebox/api/license_whitebox_benchmark.h @@ -20,8 +20,12 @@ class LicenseWhiteboxBenchmark : public ::testing::Test { protected: virtual void SetUp() override; - License CreateLicense() const; + // Create a new license. The given key mode will change how the license is + // encrypted and signed. The white-box instance is expected to use the correct + // key mode in order to process the license response. + License CreateLicense(WB_LicenseKeyMode key_mode) const; + // Sign the message using the default HMAC signing key. std::vector SignAsServer(const std::vector& message) const; DataSource& Data() { return data_source_; } diff --git a/whitebox/api/license_whitebox_decrypt_benchmark.cc b/whitebox/api/license_whitebox_decrypt_benchmark.cc index 5042774..a4752ff 100644 --- a/whitebox/api/license_whitebox_decrypt_benchmark.cc +++ b/whitebox/api/license_whitebox_decrypt_benchmark.cc @@ -45,7 +45,7 @@ class LicenseWhiteboxDecryptBenchmark ASSERT_EQ(WB_License_Create(&whitebox_), WB_RESULT_OK); - const auto license = CreateLicense(); + const auto license = CreateLicense(WB_LICENSE_KEY_MODE_DUAL_KEY); ASSERT_EQ(WB_License_ProcessLicenseResponse( whitebox_, WB_LICENSE_KEY_MODE_DUAL_KEY, license.core_message.data(), license.core_message.size(), diff --git a/whitebox/api/license_whitebox_process_license_response_benchmark.cc b/whitebox/api/license_whitebox_process_license_response_benchmark.cc index c9f1116..ac4cc17 100644 --- a/whitebox/api/license_whitebox_process_license_response_benchmark.cc +++ b/whitebox/api/license_whitebox_process_license_response_benchmark.cc @@ -16,21 +16,30 @@ namespace { // work around this, use a fixed number of iterations. constexpr size_t kIterations = 100; } // namespace + class LicenseWhiteboxProcessLicenseResponseBenchmark - : public LicenseWhiteboxBenchmark { + : public LicenseWhiteboxBenchmark, + public testing::WithParamInterface { protected: void SetUp() override { LicenseWhiteboxBenchmark::SetUp(); - license_ = CreateLicense(); + + key_mode_ = GetParam(); + + license_ = CreateLicense(key_mode_); } void TearDown() override { WB_License_Delete(whitebox_); } + // Tells which key mode to use for process license response. We need to test + // with both single-key and dual-key. + WB_LicenseKeyMode key_mode_; + WB_License_Whitebox* whitebox_; License license_; }; -TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, +TEST_P(LicenseWhiteboxProcessLicenseResponseBenchmark, CreateAndProcessLicenseResponseAndDelete) { Timer timer; Sampler sampler; @@ -45,12 +54,12 @@ TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, ASSERT_EQ(WB_License_Create(&whitebox_), WB_RESULT_OK); ASSERT_EQ(WB_License_ProcessLicenseResponse( - whitebox_, WB_LICENSE_KEY_MODE_DUAL_KEY, - license_.core_message.data(), license_.core_message.size(), - license_.message.data(), license_.message.size(), - license_.signature.data(), license_.signature.size(), - license_.session_key.data(), license_.session_key.size(), - license_.request.data(), license_.request.size()), + whitebox_, key_mode_, license_.core_message.data(), + license_.core_message.size(), license_.message.data(), + license_.message.size(), license_.signature.data(), + license_.signature.size(), license_.session_key.data(), + license_.session_key.size(), license_.request.data(), + license_.request.size()), WB_RESULT_OK); WB_License_Delete(whitebox_); @@ -64,7 +73,7 @@ TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, sampler, license_.message.size()); } -TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, +TEST_P(LicenseWhiteboxProcessLicenseResponseBenchmark, CreateAndProcessLicenseResponse) { Timer timer; Sampler sampler; @@ -78,12 +87,12 @@ TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, ASSERT_EQ(WB_License_Create(&whitebox_), WB_RESULT_OK); ASSERT_EQ(WB_License_ProcessLicenseResponse( - whitebox_, WB_LICENSE_KEY_MODE_DUAL_KEY, - license_.core_message.data(), license_.core_message.size(), - license_.message.data(), license_.message.size(), - license_.signature.data(), license_.signature.size(), - license_.session_key.data(), license_.session_key.size(), - license_.request.data(), license_.request.size()), + whitebox_, key_mode_, license_.core_message.data(), + license_.core_message.size(), license_.message.data(), + license_.message.size(), license_.signature.data(), + license_.signature.size(), license_.session_key.data(), + license_.session_key.size(), license_.request.data(), + license_.request.size()), WB_RESULT_OK); sampler.Push(timer.Get()); @@ -96,7 +105,7 @@ TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, license_.message.size()); } -TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, ProcessLicenseResponse) { +TEST_P(LicenseWhiteboxProcessLicenseResponseBenchmark, ProcessLicenseResponse) { Timer timer; Sampler sampler; @@ -109,12 +118,12 @@ TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, ProcessLicenseResponse) { timer.Reset(); ASSERT_EQ(WB_License_ProcessLicenseResponse( - whitebox_, WB_LICENSE_KEY_MODE_DUAL_KEY, - license_.core_message.data(), license_.core_message.size(), - license_.message.data(), license_.message.size(), - license_.signature.data(), license_.signature.size(), - license_.session_key.data(), license_.session_key.size(), - license_.request.data(), license_.request.size()), + whitebox_, key_mode_, license_.core_message.data(), + license_.core_message.size(), license_.message.data(), + license_.message.size(), license_.signature.data(), + license_.signature.size(), license_.session_key.data(), + license_.session_key.size(), license_.request.data(), + license_.request.size()), WB_RESULT_OK); sampler.Push(timer.Get()); @@ -126,4 +135,13 @@ TEST_F(LicenseWhiteboxProcessLicenseResponseBenchmark, ProcessLicenseResponse) { PrettyPrint("License White-box Process License Duration", sampler, license_.message.size()); } + +INSTANTIATE_TEST_SUITE_P(SingleKey, + LicenseWhiteboxProcessLicenseResponseBenchmark, + ::testing::Values(WB_LICENSE_KEY_MODE_SINGLE_KEY)); + +INSTANTIATE_TEST_SUITE_P(DualKey, + LicenseWhiteboxProcessLicenseResponseBenchmark, + ::testing::Values(WB_LICENSE_KEY_MODE_DUAL_KEY)); + } // namespace widevine diff --git a/whitebox/api/license_whitebox_sign_benchmark.cc b/whitebox/api/license_whitebox_sign_benchmark.cc index 3e0bd5b..5098449 100644 --- a/whitebox/api/license_whitebox_sign_benchmark.cc +++ b/whitebox/api/license_whitebox_sign_benchmark.cc @@ -23,7 +23,9 @@ constexpr size_t kIterations = 100; } // namespace -class LicenseWhiteboxSignBenchmark : public LicenseWhiteboxBenchmark { +class LicenseWhiteboxSignBenchmark + : public LicenseWhiteboxBenchmark, + public testing::WithParamInterface { protected: void SetUp() override { LicenseWhiteboxBenchmark::SetUp(); @@ -31,28 +33,34 @@ class LicenseWhiteboxSignBenchmark : public LicenseWhiteboxBenchmark { message_ = Data().Get(kMessageSize); signature_.resize(kSignatureSize); + key_mode_ = GetParam(); + ASSERT_EQ(WB_License_Create(&whitebox_), WB_RESULT_OK); - const auto license = CreateLicense(); + const auto license = CreateLicense(key_mode_); ASSERT_EQ(WB_License_ProcessLicenseResponse( - whitebox_, WB_LICENSE_KEY_MODE_DUAL_KEY, - license.core_message.data(), license.core_message.size(), - license.message.data(), license.message.size(), - license.signature.data(), license.signature.size(), - license.session_key.data(), license.session_key.size(), - license.request.data(), license.request.size()), + whitebox_, key_mode_, license.core_message.data(), + license.core_message.size(), license.message.data(), + license.message.size(), license.signature.data(), + license.signature.size(), license.session_key.data(), + license.session_key.size(), license.request.data(), + license.request.size()), WB_RESULT_OK); } void TearDown() override { WB_License_Delete(whitebox_); } + // Tells which key mode to use for process license response. We need to test + // with both single-key and dual-key. + WB_LicenseKeyMode key_mode_; + WB_License_Whitebox* whitebox_; std::vector message_; std::vector signature_; }; -TEST_F(LicenseWhiteboxSignBenchmark, SignLicenseRequest) { +TEST_P(LicenseWhiteboxSignBenchmark, SignLicenseRequest) { Timer timer; Sampler sampler; @@ -70,7 +78,7 @@ TEST_F(LicenseWhiteboxSignBenchmark, SignLicenseRequest) { message_.size()); } -TEST_F(LicenseWhiteboxSignBenchmark, SignRenewalRequest) { +TEST_P(LicenseWhiteboxSignBenchmark, SignRenewalRequest) { Timer timer; Sampler sampler; @@ -87,4 +95,12 @@ TEST_F(LicenseWhiteboxSignBenchmark, SignRenewalRequest) { PrettyPrint("License White-box Sign Renewal Request Duration", sampler, message_.size()); } + +INSTANTIATE_TEST_SUITE_P(SingleKey, + LicenseWhiteboxSignBenchmark, + ::testing::Values(WB_LICENSE_KEY_MODE_SINGLE_KEY)); + +INSTANTIATE_TEST_SUITE_P(DualKey, + LicenseWhiteboxSignBenchmark, + ::testing::Values(WB_LICENSE_KEY_MODE_DUAL_KEY)); } // namespace widevine diff --git a/whitebox/api/license_whitebox_verify_benchmark.cc b/whitebox/api/license_whitebox_verify_benchmark.cc index b992851..1a5a0f0 100644 --- a/whitebox/api/license_whitebox_verify_benchmark.cc +++ b/whitebox/api/license_whitebox_verify_benchmark.cc @@ -29,7 +29,7 @@ class LicenseWhiteboxVerifyBenchmark : public LicenseWhiteboxBenchmark { ASSERT_EQ(WB_License_Create(&whitebox_), WB_RESULT_OK); - const auto license = CreateLicense(); + const auto license = CreateLicense(WB_LICENSE_KEY_MODE_DUAL_KEY); ASSERT_EQ(WB_License_ProcessLicenseResponse( whitebox_, WB_LICENSE_KEY_MODE_DUAL_KEY, license.core_message.data(), license.core_message.size(), diff --git a/whitebox/api/test_license_whitebox_keys_general.cc b/whitebox/api/test_license_whitebox_keys_general.cc index fc13788..3d2c914 100644 --- a/whitebox/api/test_license_whitebox_keys_general.cc +++ b/whitebox/api/test_license_whitebox_keys_general.cc @@ -1,267 +1,145 @@ // Copyright 2021 Google LLC. All Rights Reserved. +// DO NOT EDIT - This file was auto-generated. + #include "api/test_license_whitebox_keys.h" namespace widevine { namespace { constexpr uint8_t kSigningPublicKey[] = { - 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xae, 0xa6, 0xa8, - 0xea, 0xdd, 0xac, 0x6f, 0xb4, 0x41, 0x47, 0xcb, 0x18, 0x81, 0xeb, 0xdf, - 0x4f, 0x17, 0xf7, 0x17, 0xc0, 0xab, 0x6f, 0x47, 0x50, 0xbf, 0xe4, 0x8c, - 0xc9, 0x45, 0x24, 0x5e, 0x1c, 0x2e, 0x86, 0x9f, 0xcb, 0x47, 0x05, 0xf9, - 0xfe, 0x91, 0x90, 0xaf, 0xbd, 0x22, 0x14, 0x47, 0xa7, 0x34, 0x39, 0x79, - 0x44, 0xe9, 0x92, 0x83, 0x4a, 0x80, 0xa8, 0x2a, 0xe6, 0x9f, 0x2b, 0xb7, - 0xda, 0x2a, 0xd2, 0xae, 0x57, 0x5b, 0xfa, 0xb6, 0xdf, 0xca, 0x3e, 0xb1, - 0xb8, 0x42, 0x0b, 0xde, 0x46, 0x36, 0xdb, 0x42, 0x33, 0x8b, 0xda, 0x5c, - 0x60, 0x44, 0x7c, 0x99, 0xb4, 0x98, 0xb4, 0x1e, 0xd8, 0x25, 0x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42, 0xbe, 0x41, 0x85, 0xbc, 0xea, 0x18, + 0xb6, 0x95, 0x8b, 0x0c, 0x05, 0xac, 0xb5, 0x46, 0x28, 0x2c, 0xae, 0x76, + 0xa9, 0x86, 0x8f, 0x48, 0x55, 0x11, 0x40, 0x22, 0x43, 0x07, 0x46, 0x0c, + 0xa4, 0xe8, 0xbb, 0x96, 0xf1, 0x62, 0x8d, 0xe5, 0x1b, 0x98, 0x87, 0x65, + 0xe5, 0x39, 0xff, 0xe3, 0xfe, 0xaf, 0x05, 0x16, 0xf9, 0x5f, 0xf6, 0x12, + 0xc9, 0x88, 0x50, 0x7b, 0xb7, 0x95, 0xb2, 0x9d, 0xdf, 0x78, 0x92, 0xb6, + 0xce, 0x83, 0x5b, 0xcf, 0x0f, 0x5b, 0x77, 0xd4, 0x1d, 0x85, 0x43, 0xbb, + 0xce, 0xe0, 0xab, 0x86, 0x03, 0xd2, 0x7e, 0x4e, 0x19, 0x6e, 0x07, 0x73, + 0xf8, 0x51, 0xe9, 0x28, 0xed, 0x62, 0x42, 0x43, 0x01, 0x0c, 0x0b, 0xf0, + 0x2f, 0xab, 0x04, 0x44, 0x40, 0x40, 0xc1, 0xe4, 0x33, 0xd7, 0x84, 0x69, + 0x7f, 0x8c, 0x01, 0x02, 0x03, 0x01, 0x00, 0x01}; constexpr uint8_t kSigningPrivateKey[] = { - 0x30, 0x82, 0x04, 0xa4, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00, - 0xae, 0xa6, 0xa8, 0xea, 0xdd, 0xac, 0x6f, 0xb4, 0x41, 0x47, 0xcb, 0x18, - 0x81, 0xeb, 0xdf, 0x4f, 0x17, 0xf7, 0x17, 0xc0, 0xab, 0x6f, 0x47, 0x50, - 0xbf, 0xe4, 0x8c, 0xc9, 0x45, 0x24, 0x5e, 0x1c, 0x2e, 0x86, 0x9f, 0xcb, - 0x47, 0x05, 0xf9, 0xfe, 0x91, 0x90, 0xaf, 0xbd, 0x22, 0x14, 0x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 0x60, 0xcb, 0xe2, 0x05, 0xa5, 0x9b, 0x05, 0x2e, 0xaf, 0xdc, 0xa7, - 0x88, 0xde, 0x53, 0x42, 0xa9, 0xf4, 0x0f, 0xae, 0xf9, 0x96, 0xe9, 0x2c, - 0xa6, 0xe8, 0x9d, 0x2c, 0x6b, 0xbc, 0xd8, 0x0f, 0x09, 0x5f, 0x64, 0xb2, - 0x21, 0x6f, 0xc0, 0x79, 0x3d, 0x6e, 0xad, 0x93, 0x79, 0x35, 0x87, 0x9a, - 0x41, 0xcc, 0x06, 0x24, 0xf0, 0x62, 0x09, 0xfe, 0x46, 0x9a, 0x38, 0xee, - 0xc0, 0xc8, 0x08, 0xce, 0x65, 0xda, 0xe4, 0x89, 0x1a, 0xfb, 0xe9, 0x53, - 0x0c, 0xd1, 0x80, 0x40, 0xfd, 0xc4, 0x97, 0xf8, 0x19, 0x4e, 0x03, 0x90, - 0x4a, 0xda, 0xfd, 0x13, 0x27, 0x89, 0xde, 0x12, 0x8d, 0x52, 0x5a, 0x07, - 0xf1, 0x9a, 0xa4, 0x54, 0x98, 0x86, 0xb2, 0x78, 0x76, 0xbf, 0x3a, 0xa9, - 0x8b, 0xed, 0xc7, 0x8b, 0x31, 0x02, 0x81, 0x81, 0x00, 0xe2, 0xf3, 0xab, - 0x53, 0x7b, 0xee, 0x36, 0xdb, 0xca, 0xa8, 0x74, 0x03, 0xdd, 0xe2, 0xce, - 0x87, 0xe2, 0x8c, 0x55, 0x8e, 0xd4, 0x0f, 0x32, 0xec, 0xd2, 0xf9, 0x8b, - 0x1f, 0x93, 0xdb, 0x84, 0xd2, 0x42, 0xe1, 0xc7, 0x21, 0x24, 0x2e, 0x36, - 0x0c, 0x02, 0x5d, 0x49, 0xea, 0xe0, 0x42, 0xd7, 0x7a, 0x3e, 0xc8, 0x51, - 0x92, 0x39, 0x56, 0x10, 0xd7, 0x90, 0x67, 0xa3, 0x34, 0xd6, 0xc2, 0x4a, - 0x33, 0x74, 0xfd, 0xe2,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dc, 0xa8, 0x23, 0x8f, 0x92, - 0x69, 0xcd, 0x36, 0x8a, 0xba, 0xa5, 0xe3, 0xfe, 0xce, 0x8e, 0x67, 0xc5, - 0x54, 0x41, 0x8c, 0x44, 0xc5, 0x50, 0x55, 0x7a, 0x7c, 0x91, 0xc9, 0x2e, - 0x9e, 0x32, 0x63, 0x37, 0x42, 0x68, 0x29, 0x76, 0x41, 0xdb, 0x77, 0xfd, - 0xcb, 0x6a, 0x73, 0x10, -}; + 0x30, 0x82, 0x02, 0x5d, 0x02, 0x01, 0x00, 0x02, 0x81, 0x81, 0x00, 0xdf, + 0x09, 0x6c, 0xaa, 0x6d, 0x91, 0x60, 0xb3, 0x05, 0xaa, 0x42, 0xbe, 0x41, + 0x85, 0xbc, 0xea, 0x18, 0xb6, 0x95, 0x8b, 0x0c, 0x05, 0xac, 0xb5, 0x46, + 0x28, 0x2c, 0xae, 0x76, 0xa9, 0x86, 0x8f, 0x48, 0x55, 0x11, 0x40, 0x22, + 0x43, 0x07, 0x46, 0x0c, 0xa4, 0xe8, 0xbb, 0x96, 0xf1, 0x62, 0x8d, 0xe5, + 0x1b, 0x98, 0x87, 0x65, 0xe5, 0x39, 0xff, 0xe3, 0xfe, 0xaf, 0x05, 0x16, + 0xf9, 0x5f, 0xf6, 0x12, 0xc9, 0x88, 0x50, 0x7b, 0xb7, 0x95, 0xb2, 0x9d, + 0xdf, 0x78, 0x92, 0xb6, 0xce, 0x83, 0x5b, 0xcf, 0x0f, 0x5b, 0x77, 0xd4, + 0x1d, 0x85, 0x43, 0xbb, 0xce, 0xe0, 0xab, 0x86, 0x03, 0xd2, 0x7e, 0x4e, + 0x19, 0x6e, 0x07, 0x73, 0xf8, 0x51, 0xe9, 0x28, 0xed, 0x62, 0x42, 0x43, + 0x01, 0x0c, 0x0b, 0xf0, 0x2f, 0xab, 0x04, 0x44, 0x40, 0x40, 0xc1, 0xe4, + 0x33, 0xd7, 0x84, 0x69, 0x7f, 0x8c, 0x01, 0x02, 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+ 0x36, 0x5e, 0x11, 0xfc, 0xe6, 0x2c, 0x89, 0xbc, 0x2c, 0xa6, 0x55, 0x5a, + 0x20, 0x52, 0xe5, 0x36, 0xc9, 0x14, 0xac, 0x9e, 0xda, 0xa6, 0x97, 0x4d, + 0xb3, 0xa6, 0x9e, 0xad, 0x44, 0xfa, 0xcb, 0x74, 0x0c, 0xc7, 0x98, 0xab, + 0x3f, 0x34, 0xcb, 0x02, 0x40, 0x43, 0xa9, 0x1c, 0x0a, 0xee, 0x90, 0xa3, + 0xf7, 0x9b, 0x1a, 0xd4, 0x42, 0xc0, 0xd8, 0x68, 0x09, 0x4e, 0xff, 0xa6, + 0x62, 0x49, 0x47, 0xa4, 0xae, 0xa2, 0xc2, 0x7c, 0x25, 0x1f, 0xc1, 0xf3, + 0x1b, 0xd8, 0x5b, 0xee, 0x95, 0xf9, 0x30, 0xf6, 0x61, 0xb1, 0x2d, 0xf5, + 0xbe, 0xe1, 0x94, 0x06, 0x4f, 0x83, 0x42, 0x9f, 0xf8, 0x52, 0x8b, 0x2c, + 0xa6, 0x45, 0x02, 0xd3, 0x49, 0xe7, 0xde, 0xf1, 0x07}; constexpr uint8_t kEncryptionPublicKey[] = { - 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xe4, 0x74, 0x0f, - 0xf0, 0xa0, 0x45, 0x45, 0x61, 0x6b, 0x37, 0x97, 0x8a, 0x3a, 0x2a, 0xb0, - 0xd2, 0x86, 0xf7, 0x7f, 0x5a, 0x69, 0xe4, 0xaf, 0xaa, 0xf6, 0x3e, 0x8c, - 0x63, 0x47, 0xfd, 0xa4, 0xf2, 0x78, 0xc6, 0x88, 0x7a, 0x61, 0x14, 0xf5, - 0xc6, 0xe9, 0x04, 0xaf, 0x13, 0xf4, 0x6c, 0x77, 0x9a, 0x1b, 0x30, 0xe8, - 0xa4, 0xb9, 0x34, 0x71, 0xb0, 0x7d, 0x0b, 0xa9, 0x96, 0xd8, 0xc1, 0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xb7, - 0xf7, 0x7c, 0xd5, 0x09, 0xb2, 0x48, 0x1f, 0xfe, 0xd7, 0x9e, 0x0e, 0x71, - 0xb7, 0x02, 0x03, 0x01, 0x00, 0x01, -}; + 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xab, 0xf7, 0x63, 0xc7, 0xd4, + 0x3c, 0x1b, 0xda, 0xa2, 0x09, 0x05, 0xad, 0xca, 0x67, 0xef, 0x94, 0x79, + 0x01, 0x95, 0x79, 0xc9, 0x61, 0xda, 0xc5, 0xac, 0xa1, 0xf8, 0x0f, 0x4a, + 0x92, 0x0c, 0x82, 0xf7, 0x35, 0xbf, 0x05, 0x89, 0x0e, 0x18, 0xce, 0x51, + 0x4b, 0x80, 0xac, 0x2f, 0x0b, 0xd7, 0x84, 0xbc, 0x54, 0x01, 0x94, 0x1b, + 0x20, 0x8d, 0x21, 0x70, 0xd9, 0xd0, 0x4d, 0x0c, 0x72, 0x88, 0xbe, 0x0a, + 0x20, 0x6d, 0x72, 0x70, 0x5d, 0xc2, 0x79, 0x81, 0x3a, 0xcf, 0x84, 0x4c, + 0xba, 0x7e, 0x0a, 0x6c, 0x4d, 0xed, 0x54, 0xd0, 0x77, 0xa3, 0x91, 0x71, + 0x56, 0xfd, 0x2f, 0x3d, 0xc6, 0x6f, 0xa8, 0x43, 0x52, 0xde, 0x95, 0x4d, + 0x15, 0xf6, 0x43, 0xc2, 0xf2, 0x6a, 0x52, 0xf8, 0x90, 0xcd, 0xec, 0x78, + 0xcf, 0x8d, 0x69, 0x16, 0x1e, 0x76, 0x7b, 0x98, 0xc5, 0xf5, 0xcd, 0x72, + 0x77, 0xb1, 0xfb, 0x02, 0x03, 0x01, 0x00, 0x01}; constexpr uint8_t kEncryptionPrivateKey[] = { - 0x30, 0x82, 0x04, 0xa4, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00, - 0xe4, 0x74, 0x0f, 0xf0, 0xa0, 0x45, 0x45, 0x61, 0x6b, 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 0x8b, 0x0f, 0x60, 0x9c, 0xa5, 0x5f, 0x5d, 0x22, 0xcd, 0x07, 0xeb, 0xc5, - 0x4f, 0x6d, 0x15, 0x1f, 0x1f, 0xd0, 0x74, 0x46, 0x41, 0x1f, 0x0a, 0x12, - 0xa6, 0x8e, 0x5a, 0x50, 0x19, 0x2f, 0x64, 0x79, 0x7e, 0x4c, 0xc8, 0x01, - 0x55, 0x51, 0xc8, 0xe3, 0x45, 0x3f, 0x35, 0x09, 0x34, 0x64, 0xd2, 0xfb, - 0xa9, 0xfa, 0x86, 0x11, 0x37, 0x02, 0x81, 0x80, 0x6e, 0xf5, 0xb1, 0x28, - 0x9c, 0x55, 0x0f, 0xd8, 0x11, 0xad, 0xf8, 0xc8, 0x91, 0x98, 0x55, 0x1c, - 0x20, 0x16, 0xec, 0x70, 0xfb, 0x66, 0x60, 0xd2, 0x57, 0xfc, 0x78, 0x64, - 0xf0, 0x7e, 0xc5, 0x67, 0x90, 0xc4, 0x2d, 0x55, 0x68, 0xcc, 0x14, 0x09, - 0x59, 0x22, 0xb9, 0xca, 0xb2, 0x99, 0x11, 0xbc, 0x48, 0x69, 0x61, 0x46, - 0x68, 0xd7, 0x4c, 0xcd, 0xeb, 0x5b, 0x16, 0x54, 0x60, 0x6a, 0x43, 0xcd, - 0x66, 0xc4, 0x81, 0x4a, 0x62, 0xc8, 0x70, 0xbd, 0x6f, 0x81, 0x47, 0xa7, - 0x4c, 0xfb, 0x3b, 0x10, 0x73, 0x32, 0x12, 0xdb, 0x12, 0x0a, 0x20, 0x78, - 0xcd, 0xcf, 0x2e, 0xe8, 0x0e, 0xc6, 0x91, 0xea, 0x37, 0xbf, 0x1d, 0xf8, - 0x38, 0x58, 0x02, 0x5e, 0x4d, 0x8f, 0x0b, 0xce, 0x76, 0x2d, 0xc8, 0xa6, - 0xa0, 0xa2, 0x69, 0xbf, 0x87, 0xa0, 0x34, 0x64, 0x47, 0x89, 0x7b, 0x80, - 0xb0, 0x3f, 0x51, 0x81, 0x02, 0x81, 0x81, 0x00, 0xde, 0x08, 0x44, 0x5a, - 0x8f, 0x45, 0xd6, 0x80, 0x4e, 0xba, 0xd0, 0xe2, 0x45, 0x4a, 0xdf, 0x84, - 0xff, 0xb3, 0x07, 0x8a, 0xf9, 0x65, 0x8b, 0xa7, 0xb0, 0x35, 0x64, 0xee, - 0x36, 0x76, 0xff, 0x8b, 0xae, 0xe6, 0x21, 0x12, 0xf4, 0x20, 0xa7, 0xd5, - 0x58, 0x93, 0x9a, 0xec, 0xad, 0x4f, 0x8b, 0x05, 0x13, 0xfa, 0x7a, 0x4f, - 0x4c, 0xaf, 0x64, 0x63, 0xa3, 0x0c, 0x6c, 0x62, 0x34, 0x0c, 0x72, 0x51, - 0x65, 0x33, 0x12, 0x2f, 0xaa, 0x52, 0xa2, 0x9e, 0x0f, 0x30, 0x3c, 0xd0, - 0x42, 0xdc, 0x00, 0x1a, 0x86, 0xcc, 0xe4, 0x5a, 0x32, 0x3e, 0x8e, 0x41, - 0xae, 0x86, 0x3f, 0x90, 0x8b, 0xf0, 0x20, 0x99, 0xb7, 0x0c, 0x8f, 0x9b, - 0x87, 0x3f, 0xae, 0xd6, 0x86, 0x06, 0xc2, 0x2e, 0xb3, 0x92, 0x12, 0xc8, - 0x0d, 0xde, 0x94, 0xb7, 0x36, 0xb6, 0xfc, 0x0f, 0xe9, 0x93, 0xc1, 0x15, - 0xa3, 0xad, 0x41, 0xb3, 0x02, 0x81, 0x81, 0x00, 0xe8, 0x03, 0x51, 0x12, - 0xba, 0x31, 0x93, 0x0e, 0x95, 0x6b, 0x83, 0x7c, 0xc7, 0x49, 0xd2, 0xa8, - 0xf6, 0xe5, 0x83, 0x8c, 0xc9, 0x96, 0x9c, 0xd2, 0x69, 0x9c, 0xa3, 0x86, - 0xa7, 0x23, 0x0e, 0x4b, 0x98, 0xe5, 0xa3, 0xca, 0x23, 0x22, 0x02, 0x0e, - 0x8a, 0x34, 0xb8, 0x20, 0x77, 0x2e, 0xb9, 0xc8, 0xce, 0xe8, 0x1b, 0x53, - 0xcc, 0x2b, 0x9e, 0xd4, 0x39, 0x6a, 0x28, 0x4c, 0x11, 0x18, 0xe4, 0x5a, - 0xcc, 0xe7, 0x0d, 0x74, 0xb3, 0x00, 0xde, 0xc2, 0x0b, 0x39, 0x98, 0x5e, - 0x69, 0x25, 0x1c, 0x59, 0xb5, 0x72, 0x25, 0x76, 0x4e, 0x36, 0x6f, 0xd6, - 0xec, 0xe0, 0x69, 0x22, 0xed, 0x0b, 0xb2, 0x62, 0xe8, 0x74, 0x3f, 0x66, - 0xc5, 0x52, 0xe3, 0xfe, 0xe2, 0xc6, 0x6e, 0xf9, 0xf5, 0xcb, 0xe9, 0x30, - 0xf8, 0x90, 0xfb, 0x60, 0x69, 0x31, 0x94, 0x9f, 0x01, 0x21, 0xfa, 0x7b, - 0x92, 0xae, 0x06, 0xfa, -}; + 0x30, 0x82, 0x02, 0x5e, 0x02, 0x01, 0x00, 0x02, 0x81, 0x81, 0x00, 0xab, + 0xf7, 0x63, 0xc7, 0xd4, 0x3c, 0x1b, 0xda, 0xa2, 0x09, 0x05, 0xad, 0xca, + 0x67, 0xef, 0x94, 0x79, 0x01, 0x95, 0x79, 0xc9, 0x61, 0xda, 0xc5, 0xac, + 0xa1, 0xf8, 0x0f, 0x4a, 0x92, 0x0c, 0x82, 0xf7, 0x35, 0xbf, 0x05, 0x89, + 0x0e, 0x18, 0xce, 0x51, 0x4b, 0x80, 0xac, 0x2f, 0x0b, 0xd7, 0x84, 0xbc, + 0x54, 0x01, 0x94, 0x1b, 0x20, 0x8d, 0x21, 0x70, 0xd9, 0xd0, 0x4d, 0x0c, + 0x72, 0x88, 0xbe, 0x0a, 0x20, 0x6d, 0x72, 0x70, 0x5d, 0xc2, 0x79, 0x81, + 0x3a, 0xcf, 0x84, 0x4c, 0xba, 0x7e, 0x0a, 0x6c, 0x4d, 0xed, 0x54, 0xd0, + 0x77, 0xa3, 0x91, 0x71, 0x56, 0xfd, 0x2f, 0x3d, 0xc6, 0x6f, 0xa8, 0x43, + 0x52, 0xde, 0x95, 0x4d, 0x15, 0xf6, 0x43, 0xc2, 0xf2, 0x6a, 0x52, 0xf8, + 0x90, 0xcd, 0xec, 0x78, 0xcf, 0x8d, 0x69, 0x16, 0x1e, 0x76, 0x7b, 0x98, + 0xc5, 0xf5, 0xcd, 0x72, 0x77, 0xb1, 0xfb, 0x02, 0x03, 0x01, 0x00, 0x01, + 0x02, 0x81, 0x81, 0x00, 0x8f, 0xbe, 0x39, 0xc4, 0xa6, 0x4e, 0x1c, 0x46, + 0x53, 0x9d, 0x51, 0x06, 0xe5, 0x22, 0x9d, 0xeb, 0xb0, 0x7e, 0x37, 0x70, + 0xd6, 0x79, 0x9a, 0x42, 0x13, 0xbc, 0x4b, 0xba, 0x94, 0x6d, 0xa2, 0x51, + 0xb2, 0xcc, 0x55, 0x41, 0x0e, 0x40, 0x1f, 0x52, 0x0e, 0x38, 0x1b, 0x75, + 0x51, 0xda, 0x07, 0x2b, 0x67, 0xb4, 0x9c, 0xa1, 0x2d, 0x4f, 0xb7, 0x48, + 0x95, 0xa9, 0x2b, 0xe9, 0xcb, 0x96, 0xcd, 0x5f, 0x14, 0xf1, 0xe4, 0x90, + 0x94, 0x1a, 0xac, 0x3f, 0x19, 0x57, 0x75, 0x3e, 0x0f, 0x54, 0xf9, 0x18, + 0xdb, 0x44, 0x2b, 0xad, 0x66, 0x4e, 0x22, 0x54, 0x8a, 0x4b, 0xe6, 0x11, + 0xbc, 0xbe, 0xed, 0x7a, 0x20, 0x24, 0xa4, 0x24, 0xd7, 0xc9, 0xde, 0xf3, + 0x97, 0x45, 0x80, 0x81, 0x57, 0xf2, 0x3a, 0x19, 0xaf, 0x5a, 0x2f, 0x3f, + 0xb2, 0xf8, 0x39, 0x9f, 0x27, 0x58, 0x4b, 0xcd, 0xab, 0x47, 0x4a, 0xe9, + 0x02, 0x41, 0x00, 0xe3, 0x87, 0x7b, 0x1f, 0x9f, 0xed, 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0xad, 0xa0, 0xe0, + 0x98, 0x03, 0x72, 0x06, 0x3b, 0xbb, 0x24, 0xaf, 0x85, 0x02, 0x40, 0x7c, + 0x1f, 0x92, 0xe9, 0xd6, 0x6c, 0x98, 0x27, 0x3d, 0x2f, 0xa5, 0x3e, 0xa3, + 0x43, 0xf2, 0xf7, 0xd1, 0x1b, 0x79, 0x6d, 0xc0, 0x2b, 0x14, 0x36, 0x86, + 0x04, 0x12, 0x8c, 0x12, 0xfb, 0x8e, 0x0d, 0x05, 0x4f, 0x46, 0x5e, 0xb2, + 0x0d, 0x6d, 0xc8, 0x36, 0x1d, 0xa0, 0x56, 0x0c, 0xec, 0x2b, 0x2d, 0x2f, + 0x20, 0x84, 0x12, 0x4e, 0x41, 0x33, 0xf0, 0xad, 0xbf, 0x0b, 0x80, 0xf3, + 0x22, 0x2e, 0x23, 0x02, 0x41, 0x00, 0x82, 0x4c, 0x0c, 0x68, 0xb1, 0xbb, + 0x96, 0x49, 0x21, 0x96, 0xf9, 0x12, 0x8d, 0xa7, 0x28, 0xfe, 0xfb, 0x7d, + 0x30, 0xa4, 0xba, 0x26, 0x9b, 0xa8, 0x13, 0xb8, 0x01, 0xb7, 0x0d, 0x69, + 0x9e, 0x74, 0x57, 0xdd, 0x0a, 0xc7, 0xa4, 0x02, 0x2f, 0x6e, 0xbb, 0x60, + 0xb3, 0x86, 0xf8, 0xce, 0xd7, 0x6a, 0xef, 0x0a, 0xd1, 0xe0, 0x0a, 0xe1, + 0x6e, 0xef, 0xbb, 0xbc, 0x2e, 0xcc, 0xf6, 0x9a, 0x50, 0x97}; std::vector AsVector(const uint8_t* data, size_t length) { return std::vector(data, data + length); diff --git a/whitebox/reference/impl/license_whitebox_impl.cc b/whitebox/reference/impl/license_whitebox_impl.cc index 2df3604..280c5a0 100644 --- a/whitebox/reference/impl/license_whitebox_impl.cc +++ b/whitebox/reference/impl/license_whitebox_impl.cc @@ -324,11 +324,6 @@ WB_Result WB_License_ProcessLicenseResponse(WB_License_Whitebox* whitebox, return WB_RESULT_INVALID_PARAMETER; } - if (session_key_size != 256) { - DVLOG(1) << "Invalid parameter: invalid session key size."; - return WB_RESULT_INVALID_PARAMETER; - } - const RsaPrivateKey* private_key = nullptr; switch (license_key_mode) { @@ -349,6 +344,15 @@ WB_Result WB_License_ProcessLicenseResponse(WB_License_Whitebox* whitebox, CHECK(private_key); + // Defer checking the session key size until we know which private key we are + // going to use. This will allow us to verify the session key size using the + // private key (rather than using a fixed number). + if (session_key_size != private_key->KeySize()) { + DVLOG(1) << "Invalid parameter: session key size (" << session_key_size + << " != " << private_key->KeySize() << ")."; + return WB_RESULT_INVALID_PARAMETER; + } + // From talking with Intertrust, they suggested allowing an invalid session // key to propogate through the system, leading to the message verification // failing. While we could do that, in the reference, we opt to just return