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.
This commit is contained in:
Aaron Vaage
2021-04-05 12:05:15 -07:00
parent 3c513cc46c
commit f936dd2983
41 changed files with 1803 additions and 809 deletions

View File

@@ -7,20 +7,35 @@
#
# test_aead_whitebox : The target for testing the AEAD white-box.
#
# test_license_whitebox : The target for testing the license white-box. The
# white-box should use the private key provided in
# "//api/test_license_whitebox_keys.cc".
# 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.
package(default_visibility = [
"//visibility:private",
])
cc_library(
name = "test_aead_whitebox",
visibility = ["//visibility:public"],
name = "test_aead_whitebox",
visibility = ["//visibility:public"],
)
cc_library(
name = "test_license_whitebox",
visibility = ["//visibility:public"],
)
name = "general_license_whitebox_with_vmpra",
visibility = ["//visibility:public"],
)
cc_library(
name = "general_license_whitebox_without_vmpra",
visibility = ["//visibility:public"],
)
cc_library(
name = "uat_license_whitebox",
visibility = ["//visibility:public"],
)