note: The original mbed TLS build instructions are in the file mbedTLS.md
Milagro TLS has only been built and tested on Linux and Mac with the GCC tool chain.
First install the mpin-crypto library and then the mbed TLS library.
CMake is required to build the library and can usually be installed from the operating system package manager.
- sudo apt-get install cmake
If not, then you can download it from www.cmake.org
- git clone https://github.com/miracl/milagro-crypto
- cd milagro-crypto
- mkdir release
- cd release
- cmake -D CMAKE_INSTALL_PREFIX=/opt/amcl -D USE_ANONYMOUS=on -D WORD_LENGTH=64 -D BUILD_WCC=on -D BUILD_MPIN=on ..
- make
- make test
- sudo make install
- git clone https://github.com/miracl/milagro-tls
- cd milagro-tls
- mkdir release
- cd release
- cmake -D AMCL_INSTALL_DIR=/opt/amcl ..
- make
- make test
- sudo make install