Files
whitebox/whitebox-impl/tests/BUILD
Aaron Vaage f936dd2983 Add "License Key Mode" To API
In order to support both single-key and dual-key RSA implementations
where single-key will use key 0 for both sign and encryption and where
dual-key will use key 0 for sign and key 1 for encryption.

Additional changes in this code drop:

 - Added VMP / RA override enabled tests
 - Added VMP / RA override disabled tests

This brings the partner repo in sync with the internal repo at
commit 71760b6da1ec546c65b56e2f86b39b73b53f6734.
2021-04-05 12:05:15 -07:00

95 lines
2.7 KiB
Python

# Copyright 2021 Google LLC. All Rights Reserved.
package(default_visibility = [
"//visibility:private",
])
# ==============================================================================
# Requirements
# ==============================================================================
#
# This BUILD file expects the implementation BUILD file to expose the following
# build targets so that it can link against them:
#
# test_aead_whitebox : The target for testing the AEAD white-box.
#
# general_license_whitebox_with_vmpra : The target for testing the license
# white-box against generated licenses with VMP/RA functionality.
#
# general_license_whitebox_without_vmpra : The target for testing the license
# white-box against generated licenses without VMP/RA functionality.
#
# uat_license_whitebox : The target for testing the license white-box against
# licenses from Widevine's UAT server.
# ==============================================================================
# AEAD Test Targets
# ==============================================================================
cc_test(
name = "aead_whitebox_test",
size = "small",
deps = [
"@whitebox_api//api:aead_whitebox_test",
"//impl:test_aead_whitebox",
],
)
cc_test(
name = "aead_whitebox_benchmark",
size = "small",
deps = [
"@whitebox_api//api:aead_whitebox_benchmark",
"//impl:test_aead_whitebox",
],
)
# ==============================================================================
# License Whitebox Test Targets
# ==============================================================================
cc_test(
name = "license_whitebox_test",
size = "small",
deps = [
"@whitebox_api//api:license_whitebox_test",
"//impl:general_license_whitebox_without_vmpra",
],
)
cc_test(
name = "remote_attestation_and_verification_with_vmpra_test",
size = "small",
deps = [
"@whitebox_api//api:remote_attestation_and_verification_with_vmpra_test",
"//impl:general_license_whitebox_with_vmpra",
],
)
cc_test(
name = "remote_attestation_and_verification_without_vmpra_test",
size = "small",
deps = [
"@whitebox_api//api:remote_attestation_and_verification_without_vmpra_test",
"//impl:general_license_whitebox_without_vmpra",
],
)
cc_test(
name = "license_whitebox_benchmark",
size = "small",
deps = [
"@whitebox_api//api:license_whitebox_benchmark",
"//impl:general_license_whitebox_without_vmpra",
],
)
cc_test(
name = "license_whitebox_uat_test",
size = "small",
deps = [
"@whitebox_api//api:license_whitebox_uat_test",
"//impl:uat_license_whitebox",
],
)