In order to reproduce the issue in the white-box and VMP+RA, padding must be used in the license. This change updates the VMP+RA test to run every test with and without padding. The expected test outcomes should not different between padding and no padding. This change brings the partner repo in sync with the internal repo at commit abcc1f9bebf1f36a108a84155ae821b8764ec4ad.
121 lines
2.4 KiB
Python
121 lines
2.4 KiB
Python
# 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",
|
|
],
|
|
)
|