-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the class ReachOnlyLiquidLegionsV2Mill on the Duchy mill. (#1155)
- Loading branch information
Showing
22 changed files
with
3,590 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...chy/protocol/liquid_legions_v2/reach_only_liquid_legions_v2_encryption_utility_wrapper.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright 2023 The Cross-Media Measurement Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include "wfa/measurement/internal/duchy/protocol/liquid_legions_v2/reach_only_liquid_legions_v2_encryption_utility_wrapper.h" | ||
|
||
#include <string> | ||
|
||
#include "absl/status/statusor.h" | ||
#include "common_cpp/jni/jni_wrap.h" | ||
#include "common_cpp/macros/macros.h" | ||
#include "wfa/measurement/internal/duchy/protocol/liquid_legions_v2/reach_only_liquid_legions_v2_encryption_utility.h" | ||
#include "wfa/measurement/internal/duchy/protocol/reach_only_liquid_legions_v2_encryption_methods.pb.h" | ||
|
||
namespace wfa::measurement::internal::duchy::protocol::liquid_legions_v2 { | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlyInitializationPhase( | ||
const std::string& serialized_request) { | ||
return JniWrap<CompleteReachOnlyInitializationPhaseRequest, | ||
CompleteReachOnlyInitializationPhaseResponse>( | ||
serialized_request, CompleteReachOnlyInitializationPhase); | ||
} | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlySetupPhase( | ||
const std::string& serialized_request) { | ||
return JniWrap<CompleteReachOnlySetupPhaseRequest, | ||
CompleteReachOnlySetupPhaseResponse>( | ||
serialized_request, CompleteReachOnlySetupPhase); | ||
} | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlySetupPhaseAtAggregator( | ||
const std::string& serialized_request) { | ||
return JniWrap<CompleteReachOnlySetupPhaseRequest, | ||
CompleteReachOnlySetupPhaseResponse>( | ||
serialized_request, CompleteReachOnlySetupPhaseAtAggregator); | ||
} | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlyExecutionPhase( | ||
const std::string& serialized_request) { | ||
return JniWrap<CompleteReachOnlyExecutionPhaseRequest, | ||
CompleteReachOnlyExecutionPhaseResponse>( | ||
serialized_request, CompleteReachOnlyExecutionPhase); | ||
} | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlyExecutionPhaseAtAggregator( | ||
const std::string& serialized_request) { | ||
return JniWrap<CompleteReachOnlyExecutionPhaseAtAggregatorRequest, | ||
CompleteReachOnlyExecutionPhaseAtAggregatorResponse>( | ||
serialized_request, CompleteReachOnlyExecutionPhaseAtAggregator); | ||
} | ||
|
||
} // namespace wfa::measurement::internal::duchy::protocol::liquid_legions_v2 |
45 changes: 45 additions & 0 deletions
45
...uchy/protocol/liquid_legions_v2/reach_only_liquid_legions_v2_encryption_utility_wrapper.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2023 The Cross-Media Measurement Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef SRC_MAIN_CC_WFA_MEASUREMENT_INTERNAL_DUCHY_PROTOCOL_LIQUID_LEGIONS_V2_REACH_ONLY_LIQUID_LEGIONS_V2_ENCRYPTION_UTILITY_WRAPPER_H_ | ||
#define SRC_MAIN_CC_WFA_MEASUREMENT_INTERNAL_DUCHY_PROTOCOL_LIQUID_LEGIONS_V2_REACH_ONLY_LIQUID_LEGIONS_V2_ENCRYPTION_UTILITY_WRAPPER_H_ | ||
|
||
#include <string> | ||
|
||
#include "absl/status/statusor.h" | ||
|
||
// Wrapper methods used to generate the swig/JNI Java classes. | ||
// The only functionality of these methods are converting between proto messages | ||
// and their corresponding serialized strings, and then calling into the | ||
// reach_only_liquid_legions_v2_encryption_utility methods. | ||
namespace wfa::measurement::internal::duchy::protocol::liquid_legions_v2 { | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlyInitializationPhase( | ||
const std::string& serialized_request); | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlySetupPhase( | ||
const std::string& serialized_request); | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlySetupPhaseAtAggregator( | ||
const std::string& serialized_request); | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlyExecutionPhase( | ||
const std::string& serialized_request); | ||
|
||
absl::StatusOr<std::string> CompleteReachOnlyExecutionPhaseAtAggregator( | ||
const std::string& serialized_request); | ||
|
||
} // namespace wfa::measurement::internal::duchy::protocol::liquid_legions_v2 | ||
|
||
#endif // SRC_MAIN_CC_WFA_MEASUREMENT_INTERNAL_DUCHY_PROTOCOL_LIQUID_LEGIONS_V2_REACH_ONLY_LIQUID_LEGIONS_V2_ENCRYPTION_UTILITY_WRAPPER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.