# Copyright 2020 Google LLC. All Rights Reserved. package(default_visibility = [ "//visibility:private", ]) cc_library( name = "whitebox_common", srcs = [ "common_whitebox.cc", "get_random_bytes.cc", ], visibility = ["//visibility:private"], ) cc_library( name = "aead_whitebox", srcs = [ "aead_whitebox.cc", ], visibility = ["//visibility:public"], deps = [ ":whitebox_common", "@whitebox_api_repo//api:aead_whitebox", "@whitebox_api_repo//api:result", ], ) cc_library( name = "license_whitebox", srcs = [ "license_whitebox.cc", ], deps = [ ":whitebox_common", "@whitebox_api_repo//api:license_whitebox", "@whitebox_api_repo//api:result", ], ) cc_library( name = "test_data", testonly = True, srcs = [ "test_data.cc", ], hdrs = [ "test_data_aead_init.h", "test_data_license_init.h", ], deps = [ "@whitebox_api_repo//api:test_data", "@whitebox_api_repo//crypto_utils:rsa_test_keys", ], ) cc_test( name = "aead_whitebox_test", size = "small", timeout = "moderate", deps = [ ":aead_whitebox", ":test_data", "@whitebox_api_repo//api:aead_whitebox_test", ], ) cc_test( name = "license_whitebox_test", size = "small", timeout = "moderate", deps = [ ":license_whitebox", ":test_data", "@whitebox_api_repo//api:license_whitebox_test", ], ) cc_test( name = "remote_attestation_and_verification_test", size = "small", timeout = "moderate", deps = [ ":license_whitebox", ":test_data", "@whitebox_api_repo//api:remote_attestation_and_verification_test", ], ) cc_test( name = "aead_whitebox_benchmark", size = "small", deps = [ ":aead_whitebox", ":test_data", "@whitebox_api_repo//api:aead_whitebox_benchmark", ], ) cc_test( name = "license_whitebox_benchmark", size = "large", deps = [ ":license_whitebox", ":test_data", "@whitebox_api_repo//api:license_whitebox_benchmark", ], ) cc_test( name = "license_whitebox_golden_data", size = "small", srcs = [ "license_whitebox_golden_data_init_data.cc", ], deps = [ ":license_whitebox", "@whitebox_api_repo//api:license_whitebox_golden_data", ], )