Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falcon: Bounding pow #295

Open
wants to merge 221 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
e713986
Changed relative paths to absolute paths
rasswanth-s Jun 24, 2021
305c736
Merge branch 'main' into api_path
rasswanth-s Jun 25, 2021
a83c5d2
Linting
rasswanth-s Jun 25, 2021
3d7f6e4
Added truncation
rasswanth-s Jun 26, 2021
beba85c
Changed parties
rasswanth-s Jun 26, 2021
fb3ece1
Merge branch 'main' into falcon_truncate
rasswanth-s Jun 26, 2021
08630c1
Merge branch 'OpenMined:main' into falcon_truncate
rasswanth-s Jun 26, 2021
c074f70
Linting
rasswanth-s Jun 26, 2021
917e31d
Added ABY3 Protocol folder
rasswanth-s Jun 26, 2021
9ab71d6
modified to trunc1 algorithm
rasswanth-s Jun 26, 2021
446bb30
Added more tests
rasswanth-s Jun 26, 2021
c97de58
Modified Falcon Tests
rasswanth-s Jun 26, 2021
21b24d5
Added malicious mult with truncation
rasswanth-s Jun 27, 2021
fc12970
Refactored and modified tests
rasswanth-s Jun 27, 2021
2b64e62
Merge branch 'falcon_truncate' of github.com:rasswanth-s/SyMPC into m…
rasswanth-s Jun 27, 2021
7162806
added tests and made random_gen global
rasswanth-s Jun 27, 2021
eeb1101
Merge branch 'falcon_truncate' into malicious_mult
rasswanth-s Jun 27, 2021
f38d35b
Minor refactoring
rasswanth-s Jun 28, 2021
2eb94ee
modfied redistribution and added tests
rasswanth-s Jun 28, 2021
dae7288
revert distribution and modify type annotations
rasswanth-s Jun 28, 2021
fc795c4
modified resharing
rasswanth-s Jun 28, 2021
1004af1
Added support for tensor pointer
rasswanth-s Jun 28, 2021
47b8ec8
Increased test coverage
rasswanth-s Jun 28, 2021
57bd7e9
Modified truncation algorithm name
rasswanth-s Jun 28, 2021
435f5cc
Merge branch 'OpenMined:main' into falcon_truncate
rasswanth-s Jun 28, 2021
c3c6631
Merge branch 'falcon_truncate' into malicious_mult
rasswanth-s Jun 28, 2021
965ff3d
Added triple verfication and mask
rasswanth-s Jun 29, 2021
d6ae1cb
ABY3 refactoring changes
rasswanth-s Jun 29, 2021
0a979d3
Malicious mult refactored-green
rasswanth-s Jul 1, 2021
e3210dc
modified to aby3 name_changes
rasswanth-s Jul 1, 2021
318744b
Falcon malicious mult -check-modification
rasswanth-s Jul 1, 2021
ab45280
Merge branch 'main' into malicious_mult
rasswanth-s Jul 1, 2021
de66836
modify spdz to session attribute
rasswanth-s Jul 1, 2021
b4a01b8
Modify spdz to use session and linting
rasswanth-s Jul 1, 2021
291afac
modified crypto primitive provider tests
rasswanth-s Jul 1, 2021
2054138
modify prrs tests
rasswanth-s Jul 1, 2021
6ab17c4
remove malicious not implemented
rasswanth-s Jul 1, 2021
694291d
added tests
rasswanth-s Jul 1, 2021
3e78186
Added beaver test and reduced round complexity
rasswanth-s Jul 1, 2021
a8e3884
modified przs shape and ops
rasswanth-s Jul 1, 2021
1cf4a56
Added matmul
rasswanth-s Jul 2, 2021
9dffeac
Added bit injection skel
rasswanth-s Jul 2, 2021
58a608d
Modified type annotations
rasswanth-s Jul 2, 2021
988403f
added ring_size_from_type
rasswanth-s Jul 5, 2021
82f323b
modified return type name
rasswanth-s Jul 5, 2021
ebcb1bf
changes kwargs format
rasswanth-s Jul 5, 2021
ab399e2
changed kwargs type for beaver
rasswanth-s Jul 5, 2021
4730bbe
update change from malicious_mult
rasswanth-s Jul 5, 2021
19f3bf3
extended rst to binary,prime
rasswanth-s Jul 6, 2021
8ebe2c2
modified modulus session
rasswanth-s Jul 6, 2021
e1d494f
modified session przs and rst distribution
rasswanth-s Jul 6, 2021
77f6861
Merge branch 'main' into malicious_mult
rasswanth-s Jul 6, 2021
3780127
minor refactor
rasswanth-s Jul 6, 2021
f08d8b6
minor refactor
rasswanth-s Jul 7, 2021
9d8ea49
revert prrs encoding
rasswanth-s Jul 7, 2021
0d2fb3f
Modified session tests and added test for malicious behavious in mul
rasswanth-s Jul 7, 2021
599d1b4
Merge branch 'malicious_mult' into rst_general_modulus
rasswanth-s Jul 7, 2021
300fb30
Added tests and mul for prime,binary
rasswanth-s Jul 7, 2021
fc61dae
fix ring_issue
rasswanth-s Jul 7, 2021
5ae5699
made PRIME_NUMBER global and added tests for ring_size in session
rasswanth-s Jul 8, 2021
d776256
removed hardcoding of PRIME_NUMBER and moved ring truncation to ABY3
rasswanth-s Jul 8, 2021
d8d7059
modified aby3 tests
rasswanth-s Jul 8, 2021
043961d
Revert "added ring_size_from_type"
rasswanth-s Jul 8, 2021
3b6a430
Revert "Added bit injection skel"
rasswanth-s Jul 8, 2021
8c0f4de
modified type annotations
rasswanth-s Jul 9, 2021
9119067
added tests for add,sub,mul for prime rings
rasswanth-s Jul 9, 2021
3992982
modified triple reconstruction
rasswanth-s Jul 9, 2021
5432459
Merge branch 'rst_general_modulus' of github.com:rasswanth-s/SyMPC in…
rasswanth-s Jul 9, 2021
54cc51c
Merge branch 'main' into rst_general_modulus
rasswanth-s Jul 10, 2021
9af6819
Added bit_injection and local_decomposition
rasswanth-s Jul 10, 2021
a2e0c36
linting
rasswanth-s Jul 10, 2021
d3b1e8a
Merge branch 'rst_general_modulus' of github.com:rasswanth-s/SyMPC in…
rasswanth-s Jul 10, 2021
113895e
modified mul to take session spcific config
rasswanth-s Jul 10, 2021
52835ed
Merge branch 'rst_general_modulus' of github.com:rasswanth-s/SyMPC in…
rasswanth-s Jul 10, 2021
1643f66
modified bit_injection to changes from modulus PR
rasswanth-s Jul 10, 2021
4b42691
added bit injection tests
rasswanth-s Jul 10, 2021
bda21f4
modified aby3 bit injection test
rasswanth-s Jul 10, 2021
45274ee
added select shares and tests.
rasswanth-s Jul 10, 2021
84a6019
added private compare
rasswanth-s Jul 11, 2021
9a731d6
deep copy share elements
rasswanth-s Jul 11, 2021
b230edd
modified to use list comprehension
rasswanth-s Jul 12, 2021
18a5238
modified type annotations and space
rasswanth-s Jul 13, 2021
7c18e24
Merge branch 'rst_general_modulus' of github.com:rasswanth-s/SyMPC in…
rasswanth-s Jul 13, 2021
24ab722
modified type annotations
rasswanth-s Jul 13, 2021
5882a3f
Merge branch 'bit_injection' of github.com:rasswanth-s/SyMPC into sel…
rasswanth-s Jul 13, 2021
1fe6c5a
modified to work on tensor inputs
rasswanth-s Jul 13, 2021
8633a63
Merge branch 'bit_injection' of github.com:rasswanth-s/SyMPC into pri…
rasswanth-s Jul 13, 2021
34b2be6
modified zp* generation
rasswanth-s Jul 13, 2021
7f4dbe5
added tests private compare
rasswanth-s Jul 13, 2021
93a9336
added todo for crypto provider
rasswanth-s Jul 14, 2021
e99dfc4
modified private compare algo
rasswanth-s Jul 15, 2021
9c0395e
modified random generation in session and trunc algo randomness
rasswanth-s Jul 16, 2021
9b319ed
Merge branch 'rst_general_modulus' of github.com:rasswanth-s/SyMPC in…
rasswanth-s Jul 16, 2021
315383e
Merge branch 'rst_general_modulus' of github.com:rasswanth-s/SyMPC in…
rasswanth-s Jul 16, 2021
f2a89b5
Merge branch 'bit_injection' of github.com:rasswanth-s/SyMPC into sel…
rasswanth-s Jul 16, 2021
322e98e
Merge branch 'bit_injection' of github.com:rasswanth-s/SyMPC into pri…
rasswanth-s Jul 16, 2021
85e5f5c
Merge branch 'main' of github.com:rasswanth-s/SyMPC into bit_injection
rasswanth-s Jul 16, 2021
64c2ff2
Merge branch 'main' of github.com:rasswanth-s/SyMPC into select_shares
rasswanth-s Jul 16, 2021
1ab6e80
Merge branch 'main' of github.com:rasswanth-s/SyMPC into private_compare
rasswanth-s Jul 16, 2021
f4de130
added bit decomposition
rasswanth-s Jul 17, 2021
23d0e5a
modified typo
rasswanth-s Jul 17, 2021
a030124
modified parallel execution
rasswanth-s Jul 19, 2021
b912b6a
Merge branch 'main' into bit_injection
rasswanth-s Jul 20, 2021
55ccb5c
linting
rasswanth-s Jul 20, 2021
94df036
Merge branch 'bit_injection' of github.com:rasswanth-s/SyMPC into sel…
rasswanth-s Jul 20, 2021
6bb8201
Merge branch 'bit_injection' into private_compare
rasswanth-s Jul 20, 2021
b6b5439
orchestrator ttp
rasswanth-s Jul 25, 2021
2024b09
Merge branch 'main' into bit_decom_ttp
rasswanth-s Jul 25, 2021
644a060
Merge branch 'main' of github.com:rasswanth-s/SyMPC into bit_injection
rasswanth-s Jul 25, 2021
0fbe079
modified sanity checks and added tests for local decomposition
rasswanth-s Jul 26, 2021
a63b5d0
modified comments
rasswanth-s Jul 26, 2021
2c091b9
Merge branch 'bit_injection' into select_shares
rasswanth-s Jul 26, 2021
1e8c51c
Merge branch 'main' into bit_injection
rasswanth-s Jul 27, 2021
afbd13f
modified to use xor
rasswanth-s Jul 27, 2021
bbec434
Merge branch 'bit_injection' into select_shares
rasswanth-s Jul 27, 2021
903e0bd
modified tests
rasswanth-s Jul 27, 2021
7c3123a
Merge branch 'bit_injection' into select_shares
rasswanth-s Jul 27, 2021
79010c6
increased coverage
rasswanth-s Jul 27, 2021
434998a
increased coverage
rasswanth-s Jul 27, 2021
b70b8d0
Merge branch 'OpenMined:main' into bit_decom_ttp
rasswanth-s Jul 27, 2021
ccd58ce
Merge branch 'bit_injection' into bit_decom_ttp
rasswanth-s Jul 27, 2021
5b15fb1
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Jul 27, 2021
ca7aea9
modified local decomposition
rasswanth-s Jul 27, 2021
8dc6afe
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Jul 27, 2021
de6965c
comment and name changes
rasswanth-s Jul 28, 2021
5d3eab4
Merge branch 'bit_injection' into select_shares
rasswanth-s Jul 28, 2021
9a8e626
Merge branch 'bit_injection' into bit_decom_ttp
rasswanth-s Jul 28, 2021
a5b37f4
minor format
rasswanth-s Jul 28, 2021
33b079d
added TODO comments
rasswanth-s Jul 28, 2021
3864ed9
fixed typo
rasswanth-s Jul 28, 2021
84d1476
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Jul 28, 2021
e3d17c0
added wrap function
rasswanth-s Jul 29, 2021
56516ce
added add,sub,mul support for numpy
rasswanth-s Jul 30, 2021
c453dc0
changed sanity check in mul
rasswanth-s Jul 30, 2021
0d50f02
made wrap compatible with numpy
rasswanth-s Jul 31, 2021
922d494
removed usage of zip
rasswanth-s Jul 31, 2021
899edd5
Merge branch 'bit_injection' into select_shares
rasswanth-s Jul 31, 2021
eb356c5
Merge branch 'bit_injection' into bit_decom_ttp
rasswanth-s Jul 31, 2021
0baf6fa
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Jul 31, 2021
fac9541
Merge branch 'private_compare' into wrap
rasswanth-s Jul 31, 2021
e46b967
decompose bug fix
rasswanth-s Jul 31, 2021
2f5d00d
Merge branch 'bit_injection' into select_shares
rasswanth-s Jul 31, 2021
351e040
Merge branch 'bit_injection' into bit_decom_ttp
rasswanth-s Jul 31, 2021
03b23d0
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Jul 31, 2021
14466c6
Merge branch 'private_compare' into wrap
rasswanth-s Jul 31, 2021
ba47259
added wrap to rst
rasswanth-s Jul 31, 2021
b03dae8
modified for bitwise bit injection
rasswanth-s Jul 31, 2021
ac3f09f
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Jul 31, 2021
e0101e3
Merge branch 'private_compare' into wrap
rasswanth-s Jul 31, 2021
a565e3c
add numpy support for prime rings
rasswanth-s Jul 31, 2021
ab43912
made wrap compatible with Private Compare
rasswanth-s Jul 31, 2021
7b31e0d
added wrap tests
rasswanth-s Aug 1, 2021
cbbca94
hardcoded test, and modified spdz eps,delta, global variable for nr_p…
rasswanth-s Aug 1, 2021
9465cbf
modified spdz bug
rasswanth-s Aug 1, 2021
130b279
Merge branch 'main' into bit_injection
rasswanth-s Aug 1, 2021
dece7ec
Merge branch 'bit_injection' into select_shares
rasswanth-s Aug 1, 2021
8e41617
minor change
rasswanth-s Aug 2, 2021
8d60e89
Merge branch 'bit_injection' into select_shares
rasswanth-s Aug 2, 2021
2fa3521
modified private compare to x>r
rasswanth-s Aug 2, 2021
253bb74
Merge branch 'private_compare' into wrap
rasswanth-s Aug 2, 2021
5441ab7
made private compare compatible with wrap
rasswanth-s Aug 2, 2021
6b708ec
modified numpy conversion placement
rasswanth-s Aug 2, 2021
00371e1
removed comments
rasswanth-s Aug 2, 2021
ad2a9da
reverted conversion in wrap
rasswanth-s Aug 2, 2021
71dd0a5
Merge branch 'main' into select_shares
rasswanth-s Aug 3, 2021
8913383
Merge branch 'select_shares' of github.com:rasswanth-s/SyMPC into sel…
rasswanth-s Aug 3, 2021
d2adbe9
Merge branch 'main' into bit_decom_ttp
rasswanth-s Aug 3, 2021
1a02fb8
linting
rasswanth-s Aug 3, 2021
bda2872
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Aug 3, 2021
cca8a9c
minor changes
rasswanth-s Aug 4, 2021
c0f71f6
added relu
rasswanth-s Aug 4, 2021
2a25717
Merge branch 'select_shares' into bit_decom_ttp
rasswanth-s Aug 4, 2021
5b29cb6
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Aug 4, 2021
62c61f0
Merge branch 'private_compare' into wrap
rasswanth-s Aug 4, 2021
2332578
Merge branch 'wrap' into relu
rasswanth-s Aug 4, 2021
c462b3b
added select shares with relu
rasswanth-s Aug 4, 2021
1e9f67d
modified clone to deepcopy
rasswanth-s Aug 4, 2021
8614367
Merge branch 'wrap' into relu
rasswanth-s Aug 4, 2021
f657c5f
added test for relu
rasswanth-s Aug 4, 2021
961f182
marked relu with xfail
rasswanth-s Aug 4, 2021
d1cb9d9
inverted drelu for select shares
rasswanth-s Aug 4, 2021
2b4db36
hardcoded test of select shares
rasswanth-s Aug 5, 2021
de20f41
Fix Syft commit
gmuraru Aug 5, 2021
3a8d197
hardcoded tests
rasswanth-s Aug 5, 2021
3cb6561
Merge branch 'select_shares' into bit_decom_ttp
rasswanth-s Aug 5, 2021
192b4aa
added bounding pow
rasswanth-s Aug 6, 2021
1ff9db5
removed temporary variable and fixed bug
rasswanth-s Aug 6, 2021
fd4405b
Merge branch 'main' into bit_decom_ttp
rasswanth-s Aug 7, 2021
5a59202
added comment for unused code
rasswanth-s Aug 7, 2021
a459559
added sanity checks in bit extraction and right shift
rasswanth-s Aug 8, 2021
5d069c8
Merge branch 'main' into bit_decom_ttp
rasswanth-s Aug 8, 2021
b78f222
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Aug 8, 2021
6b2fa7f
hardcoded tests in private compare
rasswanth-s Aug 8, 2021
cb6b38f
Merge branch 'private_compare' into wrap
rasswanth-s Aug 8, 2021
c361964
Merge branch 'wrap' into relu
rasswanth-s Aug 8, 2021
34ee477
Merge branch 'relu' into bounding_pow
rasswanth-s Aug 8, 2021
88f454d
Merge branch 'main' into bit_decom_ttp
rasswanth-s Aug 9, 2021
a43609a
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Aug 9, 2021
5c7ebea
modified tests for float
rasswanth-s Aug 9, 2021
dd13ba6
Merge branch 'private_compare' into wrap
rasswanth-s Aug 11, 2021
be74f3e
Merge branch 'wrap' into relu
rasswanth-s Aug 11, 2021
9a77206
Merge branch 'relu' into bounding_pow
rasswanth-s Aug 11, 2021
2435045
added separate workflow for linting
rasswanth-s Aug 11, 2021
87a04ff
removed pre-commit from test runners
rasswanth-s Aug 11, 2021
7bbb376
bump pre-commit version
rasswanth-s Aug 11, 2021
07ecd7b
modified variable names
rasswanth-s Aug 12, 2021
da8d46d
Merge branch 'lint' into bit_decom_ttp
rasswanth-s Aug 12, 2021
7bda72d
Merge branch 'main' into bit_decom_ttp
rasswanth-s Aug 12, 2021
a4a4cc7
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Aug 12, 2021
55d63e8
Merge branch 'private_compare' into wrap
rasswanth-s Aug 12, 2021
ef166c1
Merge branch 'wrap' into relu
rasswanth-s Aug 12, 2021
8ef4eab
Merge branch 'relu' into bounding_pow
rasswanth-s Aug 12, 2021
be4e6d6
modified bit extraction to list comphrehension
rasswanth-s Aug 13, 2021
db57826
Merge branch 'main' into bit_decom_ttp
rasswanth-s Aug 13, 2021
a8a3b52
Merge branch 'bit_decom_ttp' into private_compare
rasswanth-s Aug 13, 2021
32b5f72
commit to trigger CI
rasswanth-s Aug 13, 2021
0001adc
Merge branch 'main' into relu
rasswanth-s Aug 13, 2021
bc41190
Merge branch 'main' into private_compare
rasswanth-s Aug 14, 2021
3e1a85e
Merge branch 'private_compare' into wrap
rasswanth-s Aug 14, 2021
0d96ad2
Merge branch 'wrap' into relu
rasswanth-s Aug 14, 2021
b9b92e6
Merge branch 'relu' into bounding_pow
rasswanth-s Aug 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sympc/protocol/aby3/aby3.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def local_decomposition(
input_rst = []
if bitwise:
ring_bits = get_nr_bits(session.ring_size) # for bit-wise decomposition
for i in range(ring_bits):
input_rst.append(x.bit_extraction(i))
input_rst = [x.bit_extraction(idx) for idx in range(ring_bits)]

else:
input_rst.append(x)

Expand Down