244 lines
6.2 KiB
Python
244 lines
6.2 KiB
Python
# Copyright 2020 Google LLC. All Rights Reserved. This file and proprietary
|
|
# source code may only be used and distributed under the Widevine
|
|
# License Agreement.
|
|
{
|
|
'target_defaults': {
|
|
'type': 'executable',
|
|
'includes': [
|
|
'oemcrypto_fuzztests.gypi',
|
|
],
|
|
},
|
|
'variables': {
|
|
# Flag to select appropriate underlying oemcrypto implementation when
|
|
# buiding fuzz binaries.
|
|
'oemcrypto_implementation_version%': 'opk',
|
|
'oemcrypto_dir': '../..',
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'oemcrypto_opk_copy_buffer_fuzz',
|
|
'sources': [
|
|
'oemcrypto_copy_buffer_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_deactivate_usage_entry_fuzz',
|
|
'sources': [
|
|
'oemcrypto_deactivate_usage_entry_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_decrypt_cenc_fuzz',
|
|
'sources': [
|
|
'oemcrypto_decrypt_cenc_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_decrypt_hash_fuzz',
|
|
'sources': [
|
|
'oemcrypto_decrypt_hash_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_dispatcher_fuzz',
|
|
'include_dirs': [
|
|
'<(oemcrypto_dir)/opk/serialization/common/include',
|
|
'<(oemcrypto_dir)/opk/serialization/os_interfaces',
|
|
],
|
|
'dependencies': [
|
|
'<(oemcrypto_dir)/opk/serialization/tee/tee.gyp:opk_tee',
|
|
],
|
|
'sources': [
|
|
'oemcrypto_opk_dispatcher_fuzz.cc',
|
|
'<(oemcrypto_dir)/opk/serialization/test/tos_secure_buffers.c',
|
|
'<(oemcrypto_dir)/opk/serialization/test/tos_logging.c',
|
|
'<(oemcrypto_dir)/opk/serialization/test/tos_shared_memory.c',
|
|
'<(oemcrypto_dir)/opk/serialization/test/tos_transport_interface.c',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_entitled_key_session_fuzz',
|
|
'sources': [
|
|
'oemcrypto_entitled_key_session_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generate_certificate_key_pair_first_stage_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generate_certificate_key_pair_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generate_certificate_key_pair_second_stage_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generate_certificate_key_pair_fuzz.cc',
|
|
],
|
|
'defines': [
|
|
'SECOND_STAGE',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generate_rsa_signature_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generate_rsa_signature_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generic_decrypt_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generic_decrypt_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generic_encrypt_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generic_encrypt_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generic_sign_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generic_sign_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_generic_verify_fuzz',
|
|
'sources': [
|
|
'oemcrypto_generic_verify_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_get_boot_certificate_chain_fuzz',
|
|
'sources': [
|
|
'oemcrypto_get_boot_certificate_chain_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_get_device_information_fuzz',
|
|
'sources': [
|
|
'oemcrypto_get_device_information_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_get_device_signed_csr_payload_fuzz',
|
|
'sources': [
|
|
'oemcrypto_get_device_signed_csr_payload_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_get_key_handle_fuzz',
|
|
'sources': [
|
|
'oemcrypto_get_key_handle_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_get_random_fuzz',
|
|
'sources': [
|
|
'oemcrypto_get_random_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_install_oem_private_key_fuzz',
|
|
'sources': [
|
|
'oemcrypto_install_oem_private_key_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_license_request_fuzz',
|
|
'sources': [
|
|
'oemcrypto_license_request_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_entitled_content_keys_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_entitled_content_keys_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_license_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_license_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_provisioning_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_provisioning_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_release_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_release_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_renewal_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_renewal_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_usage_entry_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_usage_entry_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_load_usage_table_header_fuzz',
|
|
'sources': [
|
|
'oemcrypto_load_usage_table_header_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_move_usage_entry_fuzz',
|
|
'sources': [
|
|
'oemcrypto_move_usage_entry_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_provisioning_request_fuzz',
|
|
'sources': [
|
|
'oemcrypto_provisioning_request_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_query_key_control_fuzz',
|
|
'sources': [
|
|
'oemcrypto_query_key_control_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_release_request_fuzz',
|
|
'sources': [
|
|
'oemcrypto_release_request_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_renewal_request_fuzz',
|
|
'sources': [
|
|
'oemcrypto_renewal_request_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_report_usage_fuzz',
|
|
'sources': [
|
|
'oemcrypto_report_usage_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_reuse_usage_entry_fuzz',
|
|
'sources': [
|
|
'oemcrypto_reuse_usage_entry_fuzz.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oemcrypto_opk_shrink_usage_table_header_fuzz',
|
|
'sources': [
|
|
'oemcrypto_shrink_usage_table_header_fuzz.cc',
|
|
],
|
|
},
|
|
],
|
|
}
|