forked from FederatedAI/FATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrsa_intersect_transfer_variable.py
More file actions
61 lines (48 loc) · 3.23 KB
/
Copy pathrsa_intersect_transfer_variable.py
File metadata and controls
61 lines (48 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# 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.
#
################################################################################
#
# AUTO GENERATED TRANSFER VARIABLE CLASS. DO NOT MODIFY
#
################################################################################
from federatedml.transfer_variable.base_transfer_variable import BaseTransferVariables
# noinspection PyAttributeOutsideInit
class RsaIntersectTransferVariable(BaseTransferVariables):
def __init__(self, flowid=0):
super().__init__(flowid)
self.guest_pubkey_ids = self._create_variable(name='guest_pubkey_ids', src=['guest'], dst=['host'])
self.host_pubkey_ids = self._create_variable(name='host_pubkey_ids', src=['host'], dst=['guest'])
self.host_prvkey_ids = self._create_variable(name='host_prvkey_ids', src=['host'], dst=['guest'])
self.guest_prvkey_ids = self._create_variable(name='guest_prvkey_ids', src=['guest'], dst=['host'])
self.host_sign_guest_ids = self._create_variable(name='host_sign_guest_ids', src=['host'], dst=['guest'])
self.guest_sign_host_ids = self._create_variable(name='guest_sign_host_ids', src=['guest'], dst=['host'])
self.intersect_ids = self._create_variable(name='intersect_ids', src=['guest'], dst=['host'])
self.host_intersect_ids = self._create_variable(name='host_intersect_ids', src=['host'], dst=['guest'])
self.host_pubkey = self._create_variable(name='host_pubkey', src=['host'], dst=['guest'])
self.guest_pubkey = self._create_variable(name='guest_pubkey', src=['guest'], dst=['host'])
self.cache_version_info = self._create_variable(name='cache_version_info', src=['guest'], dst=['host'])
self.cache_version_match_info = self._create_variable(name='cache_version_match_info', src=['host'],
dst=['guest'])
self.intersect_guest_ids = self._create_variable(name='intersect_guest_ids', src=['guest'], dst=['host'])
self.intersect_guest_ids_process = self._create_variable(name='intersect_guest_ids_process', src=['host'],
dst=['guest'])
self.intersect_host_ids_process = self._create_variable(name='intersect_host_ids_process', src=['host'],
dst=['guest'])
self.rsa_pubkey = self._create_variable(name='rsa_pubkey', src=['host'], dst=['guest'])
self.cardinality = self._create_variable(name='cardinality', src=['guest'], dst=['host'])
self.host_filter = self._create_variable(name="host_filter", src=['host'], dst=['guest'])