- Add a flag ENABLE_LICENSE_PROTOCOL_2_2, when the flag is enabled
- Hash the license request in WB_License_ProcessLicenseResponse, i.e.
the request used for the key derivation, which ensures the key
derivation message to be a string of constant size 64 bytes.
- Hash the license request in WB_License_SignLicenseRequest. Note that
the function takes license request (or hashed) + odk message as
parameter for odk v17 or above.
- Enable the flag just for Chrome and ChromeOS for now.
We may change the implementation to hash inside the white-box in the
future.
Also included a few other misc changes, e.g. updating the DEPS of
boringssl and googletest which are already in the white-box directory,
adding a test main etc.
108 lines
2.7 KiB
Python
108 lines
2.7 KiB
Python
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
local_repository(
|
|
name = "whitebox_api",
|
|
path = "../whitebox",
|
|
)
|
|
|
|
git_repository(
|
|
name = "glog_repo",
|
|
commit = "3ba8976592274bc1f907c402ce22558011d6fc5e", # 2020-02-16
|
|
remote = "https://github.com/google/glog.git",
|
|
)
|
|
|
|
git_repository(
|
|
name = "com_github_gflags_gflags",
|
|
commit = "2e227c3daae2ea8899f49858a23f3d318ea39b57", # 2020-01-15
|
|
remote = "https://github.com/gflags/gflags.git",
|
|
)
|
|
|
|
git_repository(
|
|
name = "abseil_repo",
|
|
commit = "fcb104594b0bb4b8ac306cb2f55ecdad40974683", # 2018-12-04
|
|
remote = "https://github.com/abseil/abseil-cpp.git",
|
|
)
|
|
|
|
git_repository(
|
|
name = "boringssl_repo",
|
|
commit = "d345d68d5c4b5471290ebe13f090f1fd5b7e8f58", # 2022-09-14
|
|
remote = "https://github.com/google/boringssl.git",
|
|
)
|
|
|
|
git_repository(
|
|
name = "googletest_repo",
|
|
commit = "b796f7d44681514f58a683a3a71ff17c94edb0c1", # 2023-01-17
|
|
remote = "https://github.com/google/googletest.git",
|
|
)
|
|
|
|
# We use "com_google_protobuf" instead of "protobuf_repo" because Bazel's proto
|
|
# rules implicitly depend on @com_google_protobuf. See
|
|
# https://bazel.build/blog/2017/02/27/protocol-buffers.html.
|
|
git_repository(
|
|
name = "com_google_protobuf",
|
|
remote = "https://github.com/google/protobuf.git",
|
|
tag = "v3.8.0",
|
|
)
|
|
|
|
# bazel_skylib is required by google protobuf.
|
|
git_repository(
|
|
name = "bazel_skylib",
|
|
remote = "https://github.com/bazelbuild/bazel-skylib.git",
|
|
tag = "1.0.2",
|
|
)
|
|
|
|
# Protobuf library support. Not included in the recent protobuf release.
|
|
http_archive(
|
|
name = "zlib",
|
|
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
|
|
sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30",
|
|
strip_prefix = "zlib-1.2.13",
|
|
urls = ["https://zlib.net/zlib-1.2.13.tar.gz"],
|
|
)
|
|
|
|
# ODK
|
|
new_git_repository(
|
|
name = "odk_repo",
|
|
build_file = "@whitebox_api//external:odk.BUILD",
|
|
commit = "2bfd670424232fbff4e38f25d06cb28ee4c88b61", # 17.1
|
|
remote = "https://widevine-partner.googlesource.com/oemcrypto_core_message.git",
|
|
repo_mapping = {"@whitebox" : "@whitebox_api"}
|
|
)
|
|
|
|
bind(
|
|
name = "glog",
|
|
actual = "@glog_repo//:glog",
|
|
)
|
|
|
|
bind(
|
|
name = "gflags",
|
|
actual = "@com_github_gflags_gflags//:gflags",
|
|
)
|
|
|
|
bind(
|
|
name = "boringssl",
|
|
actual = "@boringssl_repo//:crypto",
|
|
)
|
|
|
|
bind(
|
|
name = "gtest",
|
|
actual = "@googletest_repo//:gtest",
|
|
)
|
|
|
|
bind(
|
|
name = "gtest_main",
|
|
actual = "@googletest_repo//:gtest_main",
|
|
)
|
|
|
|
bind(
|
|
name = "protobuf",
|
|
actual = "@com_google_protobuf//:protobuf",
|
|
)
|
|
|
|
bind(
|
|
name = "odk",
|
|
actual = "@odk_repo//:odk",
|
|
)
|