You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+17-61
Original file line number
Diff line number
Diff line change
@@ -10,63 +10,31 @@ Thirdparty networking is also supported. See `frontend_cryptoTools/tutorial/Netw
10
10
11
11
## Install
12
12
13
-
The library is *cross platform* and has been tested on both Windows, Linux and Mac. There are two library dependencies including [Boost 1.69](http://www.boost.org/) (networking), and two **optional dependencies** on, [Miracl](https://www.miracl.com/index), [Relic](https://github.com/relic-toolkit/relic/) for elliptic curves. The version of Miracl used by this library requires specific configuration and therefore we advise using the cloned repository that we provide.
14
-
13
+
The library is *cross platform* and has been tested on both Windows, Linux and Mac. There are two **optional dependencies** including [Boost 1.69](http://www.boost.org/) (networking), and [Relic](https://github.com/relic-toolkit/relic/) for elliptic curves.
* Clone the Visual Studio port [Relic](https://github.com/ladnir/relic).
32
-
* Use the CMake command `cmake . -DMULTI=OPENMP -DCMAKE_INSTALL_PREFIX:PATH=C:\libs -DCMAKE_GENERATOR_PLATFORM=x64` generate a Visual Studio solution
33
-
* Optional: Build with gmp/mpir for faster performance.
34
-
* Install it to `C:\libs` (build the `INSTALL` VS project).
35
-
* Edit the config file [libOTe/cryptoTools/cryptoTools/Common/config.h](https://github.com/ladnir/cryptoTools/blob/master/cryptoTools/Common/config.h) to include `#define ENABLE_RELIC`.
36
-
37
-
**Enabling Miracl (for elliptic curves):**
38
-
*`cd cryptoTools/thirdparty/win`
39
-
*`getMiracl.ps1 ` (If the Miracl script fails to find visual studio 2017, manually open and build the Miracl solution.)
40
-
*`cd ../..`
41
-
* Edit the config file [libOTe/cryptoTools/cryptoTools/Common/config.h](https://github.com/ladnir/cryptoTools/blob/master/cryptoTools/Common/config.h) to include `#define ENABLE_MIRACL`.
42
-
43
-
**IMPORTANT:**
44
-
By default, the build system needs the NASM compiler to be located
45
-
at `C:\NASM\nasm.exe`. In the event that it isn't, there are two options, install it,
46
-
or enable the pure c++ implementation:
47
-
* Remove `cryptoTools/Crypto/asm/sha_win64.asm` from the cryptoTools Project.
48
-
* Edit the config file [libOTe/cryptoTools/cryptoTools/Common/config.h](https://github.com/ladnir/cryptoTools/blob/master/cryptoTools/Common/config.h) to remove `#define ENABLE_NASM`.
27
+
* See `cmake .` for build options.
49
28
50
-
**Other options:**
51
-
* The implementation of binary circuits in cryptoTools (`BetaCircuit`) can be enabled by edit the config file [libOTe/cryptoTools/cryptoTools/Common/config.h](https://github.com/ladnir/cryptoTools/blob/master/cryptoTools/Common/config.h) to include `#define ENABLE_CIRCUITS`.
52
-
53
-
54
-
**IMPORTANT:** By default, the build system needs the NASM compiler to be located
55
-
at `C:\NASM\nasm.exe`. In the event that it isn't, there are two options, install it,
56
-
or enable the pure c++ implementation:
57
-
* Remove `cryptoTools/Crypto/asm/sha_win64.asm` from the cryptoTools Project.
58
-
* Edit the config file [libOTe/cryptoTools/cryptoTools/Common/config.h](https://github.com/ladnir/cryptoTools/blob/master/cryptoTools/Common/config.h) to remove `#define ENABLE_NASM`.
59
-
60
-
61
-
Build the solution within visual studio or with `MSBuild`. To see all the command line options, execute the program
62
-
63
-
`frontend.exe`
64
-
29
+
**Enable elliptic curves using:**
30
+
*`cmake . -DENABLE_RELIC=ON`: Build the library with integration to the
31
+
[Relic](https://github.com/relic-toolkit/relic/) library. Requires that
32
+
relic is built with `cmake . -DMULTI=OPENMP` and installed.
65
33
34
+
**Boost and visual studio:** If boost does not build with visual studio 2017+
0 commit comments