# Copyright 2020 Google LLC. All Rights Reserved. package(default_visibility = ["//visibility:public"]) cc_library( name = "result", hdrs = [ "result.h", ], ) cc_library( name = "aead_whitebox", hdrs = [ "aead_whitebox.h", ], deps = [ ":result", ], ) cc_library( name = "license_whitebox", hdrs = [ "license_whitebox.h", ], deps = [ ":result", ], ) cc_library( name = "test_data", testonly = True, hdrs = [ "test_data.h", ], ) cc_library( name = "license_test_helper", testonly = True, srcs = ["license_test_helper.cc"], hdrs = ["license_test_helper.h"], deps = [ "//chromium_deps/base", "//chromium_deps/cdm/keys:dev_certs", "//chromium_deps/cdm/protos:license_protocol_proto", "//crypto_utils:aes_cbc_encryptor", "//crypto_utils:crypto_util", "//crypto_utils:rsa_key", ], ) cc_library( name = "aead_whitebox_test", testonly = True, srcs = [ "aead_whitebox_create_test.cc", "aead_whitebox_decrypt_test.cc", "aead_whitebox_encrypt_test.cc", ], deps = [ ":aead_whitebox", ":test_data", "//chromium_deps/testing:gtest", ], ) cc_library( name = "license_whitebox_test", testonly = True, srcs = [ "license_whitebox_create_test.cc", "license_whitebox_decrypt_test.cc", "license_whitebox_get_secret_string_test.cc", "license_whitebox_sign_renewal_request_test.cc", "license_whitebox_verify_renewal_response_test.cc", ], deps = [ ":license_test_helper", ":license_whitebox", ":test_data", "//chromium_deps/cdm/keys:api", "//chromium_deps/cdm/protos:license_protocol_proto", "//chromium_deps/testing:gtest", "//crypto_utils:rsa_key", ], )