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") {
link_deps = [ "//third_party/shell-encryption:serialization_proto" ]
}
source_set("private_membership") {
public_configs = [ ":private_membership_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [
"src/internal/aes_ctr_256_with_fixed_iv.h",
"src/internal/constants.h",
"src/internal/crypto_utils.h",
"src/internal/encrypted_bucket_id.h",
"src/internal/hashed_bucket_id.h",
"src/internal/id_utils.h",
"src/internal/oprf_utils.h",
"src/internal/rlwe_id_utils.h",
"src/internal/rlwe_params.h",
"src/internal/utils.h",
"src/membership_response_map.h",
"src/private_membership_rlwe_client.h",
]
sources = [
"src/internal/aes_ctr_256_with_fixed_iv.cc",
"src/internal/crypto_utils.cc",
"src/internal/encrypted_bucket_id.cc",
"src/internal/hashed_bucket_id.cc",
"src/internal/id_utils.cc",
"src/internal/oprf_utils.cc",
"src/internal/rlwe_id_utils.cc",
"src/internal/rlwe_params.cc",
"src/internal/utils.cc",
"src/membership_response_map.cc",
"src/private_membership_rlwe_client.cc",
]
public_deps = [
":private_membership_proto",
"//base",
"//third_party/abseil-cpp:absl",
"//third_party/boringssl",
"//third_party/private-join-and-compute/src:ec_commutative_cipher",
"//third_party/shell-encryption:shell_encryption",
]
if (is_chromeos) {
source_set("private_membership") {
public_configs = [ ":private_membership_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [
"src/internal/aes_ctr_256_with_fixed_iv.h",
"src/internal/constants.h",
"src/internal/crypto_utils.h",
"src/internal/encrypted_bucket_id.h",
"src/internal/hashed_bucket_id.h",
"src/internal/id_utils.h",
"src/internal/oprf_utils.h",
"src/internal/rlwe_id_utils.h",
"src/internal/rlwe_params.h",
"src/internal/utils.h",
"src/membership_response_map.h",
"src/private_membership_rlwe_client.h",
]
sources = [
"src/internal/aes_ctr_256_with_fixed_iv.cc",
"src/internal/crypto_utils.cc",
"src/internal/encrypted_bucket_id.cc",
"src/internal/hashed_bucket_id.cc",
"src/internal/id_utils.cc",
"src/internal/oprf_utils.cc",
"src/internal/rlwe_id_utils.cc",
"src/internal/rlwe_params.cc",
"src/internal/utils.cc",
"src/membership_response_map.cc",
"src/private_membership_rlwe_client.cc",
]
public_deps = [
":private_membership_proto",
"//base",
"//third_party/abseil-cpp:absl",
"//third_party/boringssl",
"//third_party/private-join-and-compute/src:ec_commutative_cipher",
"//third_party/shell-encryption:shell_encryption",
]
}
}
if (is_chromeos) {
......
......@@ -46,52 +46,54 @@ proto_library("coefficient_polynomial_proto") {
}
# SHELL lib.
source_set("shell_encryption") {
public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [
"glog/logging.h",
"src/bits_util.h",
"src/constants.h",
"src/context.h",
"src/error_params.h",
"src/galois_key.h",
"src/int256.h",
"src/integral_types.h",
"src/montgomery.h",
"src/ntt_parameters.h",
"src/polynomial.h",
"src/prng/chacha_prng.h",
"src/prng/chacha_prng_util.h",
"src/prng/integral_prng_types.h",
"src/prng/prng.h",
"src/prng/single_thread_chacha_prng.h",
"src/relinearization_key.h",
"src/sample_error.h",
"src/status_macros.h",
"src/statusor.h",
"src/symmetric_encryption.h",
"src/symmetric_encryption_with_prng.h",
"src/transcription.h",
]
sources = [
"src/int256.cc",
"src/montgomery.cc",
"src/ntt_parameters.cc",
"src/prng/chacha_prng.cc",
"src/prng/chacha_prng_util.cc",
"src/prng/single_thread_chacha_prng.cc",
"src/relinearization_key.cc",
"src/statusor.cc",
]
public_deps = [
":serialization_proto",
"//base:base",
"//third_party/abseil-cpp:absl",
"//third_party/boringssl:boringssl",
"//third_party/protobuf:protobuf_lite",
]
if (is_chromeos) {
source_set("shell_encryption") {
public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [
"glog/logging.h",
"src/bits_util.h",
"src/constants.h",
"src/context.h",
"src/error_params.h",
"src/galois_key.h",
"src/int256.h",
"src/integral_types.h",
"src/montgomery.h",
"src/ntt_parameters.h",
"src/polynomial.h",
"src/prng/chacha_prng.h",
"src/prng/chacha_prng_util.h",
"src/prng/integral_prng_types.h",
"src/prng/prng.h",
"src/prng/single_thread_chacha_prng.h",
"src/relinearization_key.h",
"src/sample_error.h",
"src/status_macros.h",
"src/statusor.h",
"src/symmetric_encryption.h",
"src/symmetric_encryption_with_prng.h",
"src/transcription.h",
]
sources = [
"src/int256.cc",
"src/montgomery.cc",
"src/ntt_parameters.cc",
"src/prng/chacha_prng.cc",
"src/prng/chacha_prng_util.cc",
"src/prng/single_thread_chacha_prng.cc",
"src/relinearization_key.cc",
"src/statusor.cc",
]
public_deps = [
":serialization_proto",
"//base:base",
"//third_party/abseil-cpp:absl",
"//third_party/boringssl:boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
}
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