Remove Init Data From WB_License_Create

Rather than having init data for the license white-box be passed in
via WB_License_Create, this changes it so that it is assumed that
the private key is compiled into the white-box code.

Minor changes in this code drop include:
  - Updating the git attributes to avoid line-ending conflicts between
    different operating systems

  - Resolving a linking issue seen on Windows

  - Removing default parameter for padding in conformance tests
This commit is contained in:
Aaron Vaage
2020-12-04 14:25:24 -08:00
parent 6b00ecfb33
commit 8ff9df8eeb
37 changed files with 609 additions and 616 deletions

View File

@@ -10,12 +10,6 @@ cc_library(
visibility = ["//visibility:public"],
)
cc_library(
name = "export",
hdrs = ["export.h"],
visibility = ["//visibility:private"],
)
cc_library(
name = "aead_whitebox",
hdrs = [
@@ -23,7 +17,6 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
":export",
":result",
],
)
@@ -35,16 +28,24 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
":export",
":result",
],
)
cc_library(
name = "test_data",
name = "test_public_key",
testonly = True,
hdrs = [
"test_data.h",
"test_public_key.h",
],
visibility = ["//visibility:public"],
)
cc_library(
name = "aead_test_data",
testonly = True,
hdrs = [
"aead_test_data.h",
],
visibility = ["//visibility:public"],
)
@@ -90,10 +91,11 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
":aead_test_data",
":aead_whitebox",
":test_data",
"//chromium_deps/testing",
],
alwayslink = True,
)
cc_library(
@@ -104,13 +106,14 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
":aead_test_data",
":aead_whitebox",
":test_data",
"//benchmarking:data_source",
"//benchmarking:measurements",
"//chromium_deps/base:glog",
"//chromium_deps/testing",
],
alwayslink = True,
)
cc_library(
@@ -134,15 +137,17 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
":aead_test_data",
":golden_data",
":license_whitebox",
":test_data",
":test_license_builder",
":test_public_key",
"//chromium_deps/cdm/keys:api",
"//chromium_deps/cdm/protos:license_protocol_proto",
"//chromium_deps/testing",
"//crypto_utils:rsa_key",
],
alwayslink = True,
)
cc_library(
@@ -160,15 +165,17 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
":aead_test_data",
":license_whitebox",
":test_data",
":test_license_builder",
":test_public_key",
"//benchmarking:data_source",
"//benchmarking:measurements",
"//chromium_deps/base:glog",
"//chromium_deps/testing",
"//crypto_utils:crypto_util",
],
alwayslink = True,
)
cc_library(
@@ -182,4 +189,5 @@ cc_library(
":license_whitebox",
"//chromium_deps/testing",
],
alwayslink = True,
)