Skip to content

Commit 886ce2b

Browse files
authored
version 5.0.0 (#8)
Version 5.0.0
1 parent a22f73d commit 886ce2b

File tree

161 files changed

+10777
-5755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+10777
-5755
lines changed

.clang-format

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
Language: Cpp
2-
BasedOnStyle: Google
3-
DerivePointerAlignment: false
4-
AllowShortFunctionsOnASingleLine: Empty
5-
BinPackArguments: false
6-
BinPackParameters: false
1+
Language: Cpp
2+
BasedOnStyle: Google
3+
4+
DerivePointerAlignment: false
5+
AllowShortFunctionsOnASingleLine: Empty
6+
AllowAllParametersOfDeclarationOnNextLine: false
7+
AllowAllArgumentsOnNextLine: false
8+
BinPackArguments: false
9+
BinPackParameters: false
710

811
# The include rules below structures includes as
912
#

.clang-tidy

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Checks: '-*,bugprone-*,performance-*,readability-*,google-global-names-in-headers,cert-dcl59-cpp,-bugprone-easily-swappable-parameters,-readability-identifier-length,-readability-magic-numbers,-readability-function-cognitive-complexity,-readability-function-size'
22

3+
CheckOptions:
4+
- key: performance-unnecessary-value-param.AllowedTypes
5+
value: shared_ptr;unique_ptr
6+
37
# Enabled checks:
48
# - bugprone
59
# - performance

.github/workflows/Test.yml

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ jobs:
3535
shell: bash
3636
run: bear make -s -j4
3737

38-
- name: Test
39-
working-directory: ${{runner.workspace}}/build
40-
shell: bash
41-
run: ctest -C $BUILD_TYPE
42-
4338
- name: Coverage
4439
shell: bash
4540
run: |

.gitignore

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ build/
33
.cache/
44

55
# do not track compiled documentation files
6-
doc/
7-
8-
# build files for examples
9-
examples/build/
6+
doc/html
107

118
# misc IDE stuff
129
secure-computation-library.*

CMakeLists.txt

+34-13
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,28 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -pedantic -
3636

3737
set(SCL_SOURCE_FILES
3838
src/scl/util/str.cc
39-
40-
src/scl/primitives/prg.cc
41-
src/scl/primitives/sha3.cc
42-
src/scl/primitives/sha256.cc
39+
src/scl/util/prg.cc
40+
src/scl/util/sha3.cc
41+
src/scl/util/sha256.cc
4342

4443
src/scl/math/mersenne61.cc
4544
src/scl/math/mersenne127.cc
4645

4746
src/scl/net/config.cc
4847
src/scl/net/mem_channel.cc
49-
src/scl/net/tcp_channel.cc
5048
src/scl/net/threaded_sender.cc
51-
src/scl/net/tcp_utils.cc
5249
src/scl/net/network.cc
5350
src/scl/net/discovery/server.cc
54-
src/scl/net/discovery/client.cc)
51+
src/scl/net/discovery/client.cc
52+
53+
src/scl/simulation/simulator.cc
54+
src/scl/simulation/simulate_recv_time.cc
55+
src/scl/simulation/config.cc
56+
src/scl/simulation/event.cc
57+
src/scl/simulation/measurement.cc
58+
src/scl/simulation/result.cc
59+
src/scl/simulation/channel.cc
60+
src/scl/simulation/context.cc)
5561

5662
if(WITH_EC MATCHES ON)
5763
set(SCL_SOURCE_FILES ${SCL_SOURCE_FILES}
@@ -86,12 +92,15 @@ endif()
8692

8793
if(CMAKE_BUILD_TYPE MATCHES "Debug")
8894

95+
enable_testing()
96+
8997
set(SCL_TEST_SOURCE_FILES
9098
test/scl/main.cc
9199

92-
test/scl/primitives/test_prg.cc
93-
test/scl/primitives/test_sha3.cc
94-
test/scl/primitives/test_sha256.cc
100+
test/scl/util/test_prg.cc
101+
test/scl/util/test_sha3.cc
102+
test/scl/util/test_sha256.cc
103+
test/scl/util/test_traits.cc
95104

96105
test/scl/gf7.cc
97106
test/scl/math/test_mersenne61.cc
@@ -101,21 +110,33 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
101110
test/scl/math/test_la.cc
102111
test/scl/math/test_ff.cc
103112
test/scl/math/test_z2k.cc
113+
test/scl/math/test_poly.cc
104114

105115
test/scl/ss/test_additive.cc
106-
test/scl/ss/test_poly.cc
107116
test/scl/ss/test_shamir.cc
108117
test/scl/ss/test_feldman.cc
109118

110119
test/scl/net/util.cc
111120
test/scl/net/test_config.cc
112121
test/scl/net/test_mem_channel.cc
122+
test/scl/net/test_tcp.cc
113123
test/scl/net/test_tcp_channel.cc
114124
test/scl/net/test_threaded_sender.cc
115125
test/scl/net/test_network.cc
116126
test/scl/net/test_discover.cc
117-
118-
test/scl/p/test_simple.cc)
127+
test/scl/net/test_shared_deque.cc
128+
test/scl/net/test_channel.cc
129+
130+
test/scl/protocol/test_protocol.cc
131+
132+
test/scl/simulation/test_simulator.cc
133+
test/scl/simulation/test_config.cc
134+
test/scl/simulation/test_event.cc
135+
test/scl/simulation/test_context.cc
136+
test/scl/simulation/test_result.cc
137+
test/scl/simulation/test_measurement.cc
138+
test/scl/simulation/test_mem_channel_buffer.cc
139+
test/scl/simulation/test_env.cc)
119140

120141
if(WITH_EC MATCHES ON)
121142
set(SCL_TEST_SOURCE_FILES ${SCL_TEST_SOURCE_FILES}

0 commit comments

Comments
 (0)