目录

README for mbed TLS with MILAGRO

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

Compiling mpin-crypto

  1. git clone https://github.com/miracl/milagro-crypto
  2. cd milagro-crypto
  3. mkdir release
  4. cd release
  5. cmake -D CMAKE_INSTALL_PREFIX=/opt/amcl -D USE_ANONYMOUS=on -D WORD_LENGTH=64 -D BUILD_WCC=on -D BUILD_MPIN=on ..
  6. make
  7. make test
  8. sudo make install

Compiling mbed TLS

  1. git clone https://github.com/miracl/milagro-tls
  2. cd milagro-tls
  3. mkdir release
  4. cd release
  5. cmake -D AMCL_INSTALL_DIR=/opt/amcl ..
  6. make
  7. make test
  8. sudo make install
邀请码