Update Simulcrypt ECMg
This commit is contained in:
118
common/BUILD
118
common/BUILD
@@ -16,10 +16,30 @@ filegroup(
|
||||
name = "binary_release_files",
|
||||
srcs = [
|
||||
"certificate_type.h",
|
||||
"default_device_security_profile_list.h",
|
||||
"security_profile_list.h",
|
||||
"status.h",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "playready_interface",
|
||||
hdrs = ["playready_interface.h"],
|
||||
deps = [
|
||||
"//util:error_space",
|
||||
"//protos/public:license_protocol_cc_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "playready_sdk_impl",
|
||||
hdrs = ["playready_sdk_impl.h"],
|
||||
deps = [
|
||||
":playready_interface",
|
||||
"//protos/public:license_protocol_cc_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "content_id_util",
|
||||
srcs = ["content_id_util.cc"],
|
||||
@@ -27,6 +47,7 @@ cc_library(
|
||||
deps = [
|
||||
":error_space",
|
||||
":status",
|
||||
"//base",
|
||||
"//license_server_sdk/internal:sdk",
|
||||
"//protos/public:errors_cc_proto",
|
||||
"//protos/public:external_license_cc_proto",
|
||||
@@ -67,9 +88,14 @@ cc_library(
|
||||
hdrs = ["security_profile_list.h"],
|
||||
deps = [
|
||||
":client_id_util",
|
||||
":device_status_list",
|
||||
"//base",
|
||||
"//external:protobuf",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//protos/public:client_identification_cc_proto",
|
||||
"//protos/public:device_certificate_status_cc_proto",
|
||||
"//protos/public:device_common_cc_proto",
|
||||
"//protos/public:device_security_profile_data_cc_proto",
|
||||
"//protos/public:provisioned_device_info_cc_proto",
|
||||
"//protos/public:security_profile_cc_proto",
|
||||
],
|
||||
@@ -80,6 +106,7 @@ cc_test(
|
||||
timeout = "short",
|
||||
srcs = ["security_profile_list_test.cc"],
|
||||
deps = [
|
||||
":client_id_util",
|
||||
":security_profile_list",
|
||||
"//base",
|
||||
"//external:protobuf",
|
||||
@@ -90,6 +117,40 @@ cc_test(
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "default_device_security_profile_list",
|
||||
srcs = ["default_device_security_profile_list.cc"],
|
||||
hdrs = ["default_device_security_profile_list.h"],
|
||||
deps = [
|
||||
":client_id_util",
|
||||
":device_status_list",
|
||||
":security_profile_list",
|
||||
"//base",
|
||||
"//external:protobuf",
|
||||
"//protos/public:client_identification_cc_proto",
|
||||
"//protos/public:device_certificate_status_cc_proto",
|
||||
"//protos/public:device_common_cc_proto",
|
||||
"//protos/public:provisioned_device_info_cc_proto",
|
||||
"//protos/public:security_profile_cc_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "default_device_security_profile_list_test",
|
||||
timeout = "short",
|
||||
srcs = ["default_device_security_profile_list_test.cc"],
|
||||
deps = [
|
||||
":client_id_util",
|
||||
":default_device_security_profile_list",
|
||||
"//base",
|
||||
"//external:protobuf",
|
||||
"//testing:gunit_main",
|
||||
"@abseil_repo//absl/memory",
|
||||
"//protos/public:device_common_cc_proto",
|
||||
"//protos/public:security_profile_cc_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "status",
|
||||
srcs = ["status.cc"],
|
||||
@@ -120,6 +181,8 @@ cc_library(
|
||||
"certificate_client_cert.cc",
|
||||
"certificate_client_cert.h",
|
||||
"client_cert.cc",
|
||||
"dual_certificate_client_cert.cc",
|
||||
"dual_certificate_client_cert.h",
|
||||
"keybox_client_cert.cc",
|
||||
],
|
||||
hdrs = [
|
||||
@@ -132,6 +195,7 @@ cc_library(
|
||||
":ec_key",
|
||||
":ec_util",
|
||||
":error_space",
|
||||
":hash_algorithm",
|
||||
":openssl_util",
|
||||
":random_util",
|
||||
":rsa_key",
|
||||
@@ -155,8 +219,11 @@ cc_test(
|
||||
srcs = ["client_cert_test.cc"],
|
||||
deps = [
|
||||
":client_cert",
|
||||
":ec_key",
|
||||
":ec_test_keys",
|
||||
":error_space",
|
||||
":hash_algorithm",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":sha_util",
|
||||
@@ -179,6 +246,8 @@ cc_library(
|
||||
":client_cert",
|
||||
":drm_service_certificate",
|
||||
":error_space",
|
||||
":hash_algorithm",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":status",
|
||||
"//base",
|
||||
@@ -211,6 +280,8 @@ cc_test(
|
||||
deps = [
|
||||
":client_cert",
|
||||
":device_status_list",
|
||||
":hash_algorithm",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":status",
|
||||
@@ -235,6 +306,8 @@ cc_library(
|
||||
":certificate_type",
|
||||
":ec_key",
|
||||
":error_space",
|
||||
":hash_algorithm",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":sha_util",
|
||||
":signer_public_key",
|
||||
@@ -258,6 +331,8 @@ cc_test(
|
||||
":ec_key",
|
||||
":ec_test_keys",
|
||||
":error_space",
|
||||
":hash_algorithm",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":test_drm_certificates",
|
||||
@@ -338,9 +413,12 @@ cc_library(
|
||||
srcs = ["rsa_key.cc"],
|
||||
hdrs = ["rsa_key.h"],
|
||||
deps = [
|
||||
":hash_algorithm",
|
||||
":rsa_util",
|
||||
":sha_util",
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/strings",
|
||||
"//external:openssl",
|
||||
],
|
||||
)
|
||||
@@ -371,6 +449,7 @@ cc_library(
|
||||
testonly = 1,
|
||||
hdrs = ["mock_rsa_key.h"],
|
||||
deps = [
|
||||
":hash_algorithm",
|
||||
":rsa_key",
|
||||
"//testing:gunit",
|
||||
],
|
||||
@@ -384,9 +463,11 @@ cc_library(
|
||||
"ec_util.h",
|
||||
],
|
||||
deps = [
|
||||
":hash_algorithm",
|
||||
":openssl_util",
|
||||
":private_key_util",
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/memory",
|
||||
"//external:openssl",
|
||||
],
|
||||
@@ -415,9 +496,11 @@ cc_library(
|
||||
deps = [
|
||||
":aes_cbc_util",
|
||||
":ec_util",
|
||||
":hash_algorithm",
|
||||
":openssl_util",
|
||||
":sha_util",
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/memory",
|
||||
"//external:openssl",
|
||||
],
|
||||
@@ -671,6 +754,7 @@ cc_library(
|
||||
hdrs = ["signature_util.h"],
|
||||
deps = [
|
||||
":aes_cbc_util",
|
||||
":hash_algorithm",
|
||||
":rsa_key",
|
||||
":sha_util",
|
||||
":status",
|
||||
@@ -774,6 +858,7 @@ cc_library(
|
||||
":status",
|
||||
":x509_cert",
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//protos/public:client_identification_cc_proto",
|
||||
@@ -795,6 +880,7 @@ cc_library(
|
||||
":rsa_util",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//util/gtl:map_util",
|
||||
@@ -813,6 +899,7 @@ cc_test(
|
||||
":aes_cbc_util",
|
||||
":drm_root_certificate",
|
||||
":drm_service_certificate",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":rsa_util",
|
||||
@@ -849,6 +936,7 @@ cc_library(
|
||||
":rsa_key",
|
||||
":status",
|
||||
"//base",
|
||||
"@abseil_repo//absl/base:core_headers",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//external:openssl",
|
||||
@@ -887,6 +975,7 @@ cc_library(
|
||||
deps = [
|
||||
":certificate_type",
|
||||
":error_space",
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":status",
|
||||
":x509_cert",
|
||||
@@ -901,6 +990,7 @@ cc_test(
|
||||
timeout = "short",
|
||||
srcs = ["vmp_checker_test.cc"],
|
||||
deps = [
|
||||
":hash_algorithm_util",
|
||||
":rsa_key",
|
||||
":vmp_checker",
|
||||
"//base",
|
||||
@@ -1012,6 +1102,7 @@ cc_library(
|
||||
hdrs = ["signer_public_key.h"],
|
||||
deps = [
|
||||
":ec_key",
|
||||
":hash_algorithm",
|
||||
":rsa_key",
|
||||
"@abseil_repo//absl/memory",
|
||||
"//protos/public:drm_certificate_cc_proto",
|
||||
@@ -1024,6 +1115,7 @@ cc_test(
|
||||
deps = [
|
||||
":ec_key",
|
||||
":ec_test_keys",
|
||||
":hash_algorithm",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":signer_public_key",
|
||||
@@ -1041,3 +1133,29 @@ cc_library(
|
||||
"//common/oemcrypto_core_message/odk:kdo",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "hash_algorithm",
|
||||
hdrs = ["hash_algorithm.h"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "hash_algorithm_util",
|
||||
srcs = ["hash_algorithm_util.cc"],
|
||||
hdrs = ["hash_algorithm_util.h"],
|
||||
deps = [
|
||||
":hash_algorithm",
|
||||
"//base",
|
||||
"//protos/public:hash_algorithm_cc_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "hash_algorithm_util_test",
|
||||
srcs = ["hash_algorithm_util_test.cc"],
|
||||
deps = [
|
||||
":hash_algorithm",
|
||||
":hash_algorithm_util",
|
||||
"//testing:gunit_main",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user