ODK and Shared Libraries
In this code drop we introduce the ODK dependency. The reference implementation has been updated to make use of the ODK and the related tests have been included. In addition, we have included an example of how a shared libraries can be created. This will allow make it easier to test and verify different implementations of the API. Most other changes introduce by this code drop were made to clean-up the reference implementation and limit dependencies.
This commit is contained in:
@@ -34,6 +34,36 @@ cc_library(
|
||||
"//crypto_utils:aes_ctr_encryptor",
|
||||
"//crypto_utils:crypto_util",
|
||||
"//crypto_utils:rsa_key",
|
||||
"//external:odk",
|
||||
],
|
||||
)
|
||||
|
||||
# Create a shared library of the whole api. The library will appear in the
|
||||
# target specific directory under "//bazel-bin".
|
||||
#
|
||||
# In order for this to work, the white-box source needs to be in `srcs`. If it
|
||||
# was included via `deps`, when the library is loaded, the symbols will be
|
||||
# missing.
|
||||
cc_binary(
|
||||
name = "whiteboxapi",
|
||||
srcs = [
|
||||
"aead_whitebox_impl.cc",
|
||||
"license_whitebox_impl.cc",
|
||||
],
|
||||
linkshared = True,
|
||||
deps = [
|
||||
":memory_util",
|
||||
"//api:aead_whitebox",
|
||||
"//api:license_whitebox",
|
||||
"//api:result",
|
||||
"//chromium_deps/cdm/keys:dev_certs",
|
||||
"//chromium_deps/cdm/protos:license_protocol_proto",
|
||||
"//chromium_deps/third_party/boringssl",
|
||||
"//crypto_utils:aes_cbc_decryptor",
|
||||
"//crypto_utils:aes_ctr_encryptor",
|
||||
"//crypto_utils:crypto_util",
|
||||
"//crypto_utils:rsa_key",
|
||||
"//external:odk",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -75,6 +105,7 @@ cc_test(
|
||||
deps = [
|
||||
":license_whitebox",
|
||||
":test_data",
|
||||
"//api:license_whitebox_core_message_test",
|
||||
"//api:license_whitebox_test",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user