Commit a8891f7a authored by Amr Aboelkher's avatar Amr Aboelkher Committed by Commit Bot

PSM: Support PSM libs on ChromeOS platform only

In that way, PSM libs are being supported on ChromeOS only. However,
due to the current device_management_backend structure, PSM protos
can be used by multiple platforms too.

Bug: chromium:1124157
Change-Id: I0e9e6f2f2c55a5088ef1484262ada3f984ff5b88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2389202Reviewed-by: default avatarYves Arrouye <drcrash@chromium.org>
Reviewed-by: default avatarAmr Aboelkher <amraboelkher@google.com>
Reviewed-by: default avatarAmr Aboelkher <amraboelkher@chromium.org>
Commit-Queue: Amr Aboelkher <amraboelkher@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803784}
parent 4e92608d
...@@ -34,45 +34,47 @@ proto_library("private_membership_proto") { ...@@ -34,45 +34,47 @@ proto_library("private_membership_proto") {
link_deps = [ "//third_party/shell-encryption:serialization_proto" ] link_deps = [ "//third_party/shell-encryption:serialization_proto" ]
} }
source_set("private_membership") { if (is_chromeos) {
public_configs = [ ":private_membership_config" ] source_set("private_membership") {
configs -= [ "//build/config/compiler:chromium_code" ] public_configs = [ ":private_membership_config" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
public = [ configs += [ "//build/config/compiler:no_chromium_code" ]
"src/internal/aes_ctr_256_with_fixed_iv.h", public = [
"src/internal/constants.h", "src/internal/aes_ctr_256_with_fixed_iv.h",
"src/internal/crypto_utils.h", "src/internal/constants.h",
"src/internal/encrypted_bucket_id.h", "src/internal/crypto_utils.h",
"src/internal/hashed_bucket_id.h", "src/internal/encrypted_bucket_id.h",
"src/internal/id_utils.h", "src/internal/hashed_bucket_id.h",
"src/internal/oprf_utils.h", "src/internal/id_utils.h",
"src/internal/rlwe_id_utils.h", "src/internal/oprf_utils.h",
"src/internal/rlwe_params.h", "src/internal/rlwe_id_utils.h",
"src/internal/utils.h", "src/internal/rlwe_params.h",
"src/membership_response_map.h", "src/internal/utils.h",
"src/private_membership_rlwe_client.h", "src/membership_response_map.h",
] "src/private_membership_rlwe_client.h",
sources = [ ]
"src/internal/aes_ctr_256_with_fixed_iv.cc", sources = [
"src/internal/crypto_utils.cc", "src/internal/aes_ctr_256_with_fixed_iv.cc",
"src/internal/encrypted_bucket_id.cc", "src/internal/crypto_utils.cc",
"src/internal/hashed_bucket_id.cc", "src/internal/encrypted_bucket_id.cc",
"src/internal/id_utils.cc", "src/internal/hashed_bucket_id.cc",
"src/internal/oprf_utils.cc", "src/internal/id_utils.cc",
"src/internal/rlwe_id_utils.cc", "src/internal/oprf_utils.cc",
"src/internal/rlwe_params.cc", "src/internal/rlwe_id_utils.cc",
"src/internal/utils.cc", "src/internal/rlwe_params.cc",
"src/membership_response_map.cc", "src/internal/utils.cc",
"src/private_membership_rlwe_client.cc", "src/membership_response_map.cc",
] "src/private_membership_rlwe_client.cc",
public_deps = [ ]
":private_membership_proto", public_deps = [
"//base", ":private_membership_proto",
"//third_party/abseil-cpp:absl", "//base",
"//third_party/boringssl", "//third_party/abseil-cpp:absl",
"//third_party/private-join-and-compute/src:ec_commutative_cipher", "//third_party/boringssl",
"//third_party/shell-encryption:shell_encryption", "//third_party/private-join-and-compute/src:ec_commutative_cipher",
] "//third_party/shell-encryption:shell_encryption",
]
}
} }
if (is_chromeos) { if (is_chromeos) {
......
...@@ -46,52 +46,54 @@ proto_library("coefficient_polynomial_proto") { ...@@ -46,52 +46,54 @@ proto_library("coefficient_polynomial_proto") {
} }
# SHELL lib. # SHELL lib.
source_set("shell_encryption") { if (is_chromeos) {
public_configs = [ ":shell_encryption_config1" ] source_set("shell_encryption") {
configs -= [ "//build/config/compiler:chromium_code" ] public_configs = [ ":shell_encryption_config1" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
public = [ configs += [ "//build/config/compiler:no_chromium_code" ]
"glog/logging.h", public = [
"src/bits_util.h", "glog/logging.h",
"src/constants.h", "src/bits_util.h",
"src/context.h", "src/constants.h",
"src/error_params.h", "src/context.h",
"src/galois_key.h", "src/error_params.h",
"src/int256.h", "src/galois_key.h",
"src/integral_types.h", "src/int256.h",
"src/montgomery.h", "src/integral_types.h",
"src/ntt_parameters.h", "src/montgomery.h",
"src/polynomial.h", "src/ntt_parameters.h",
"src/prng/chacha_prng.h", "src/polynomial.h",
"src/prng/chacha_prng_util.h", "src/prng/chacha_prng.h",
"src/prng/integral_prng_types.h", "src/prng/chacha_prng_util.h",
"src/prng/prng.h", "src/prng/integral_prng_types.h",
"src/prng/single_thread_chacha_prng.h", "src/prng/prng.h",
"src/relinearization_key.h", "src/prng/single_thread_chacha_prng.h",
"src/sample_error.h", "src/relinearization_key.h",
"src/status_macros.h", "src/sample_error.h",
"src/statusor.h", "src/status_macros.h",
"src/symmetric_encryption.h", "src/statusor.h",
"src/symmetric_encryption_with_prng.h", "src/symmetric_encryption.h",
"src/transcription.h", "src/symmetric_encryption_with_prng.h",
] "src/transcription.h",
sources = [ ]
"src/int256.cc", sources = [
"src/montgomery.cc", "src/int256.cc",
"src/ntt_parameters.cc", "src/montgomery.cc",
"src/prng/chacha_prng.cc", "src/ntt_parameters.cc",
"src/prng/chacha_prng_util.cc", "src/prng/chacha_prng.cc",
"src/prng/single_thread_chacha_prng.cc", "src/prng/chacha_prng_util.cc",
"src/relinearization_key.cc", "src/prng/single_thread_chacha_prng.cc",
"src/statusor.cc", "src/relinearization_key.cc",
] "src/statusor.cc",
public_deps = [ ]
":serialization_proto", public_deps = [
"//base:base", ":serialization_proto",
"//third_party/abseil-cpp:absl", "//base:base",
"//third_party/boringssl:boringssl", "//third_party/abseil-cpp:absl",
"//third_party/protobuf:protobuf_lite", "//third_party/boringssl:boringssl",
] "//third_party/protobuf:protobuf_lite",
]
}
} }
if (is_chromeos) { if (is_chromeos) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment