Getting Started

Download the Prebuilt libENI

See libENI releases for the latest release.

  • libeni-dev: for ENI operation developers
  • libeni: for general ENI users.

Prerequisites

libeni-dev libeni
  • Boost >= 1.58
  • OpenSSL >= 1.0.2
  • OpenSSL >= 1.0.2

See Prerequisites for platform specific prerequisites guide.

Install

tar zxvf libeni.tgz --strip-components 1 -C ${LIBENI_PATH}

Validate the Shared Libraries

cd ${LIBENI_PATH}/lib
sha512sum -c *.so.sha512

You should get a list of OKs if all libraries are good.

eni_caesar_cipher.so: OK
eni_crypto.so: OK
eni_reverse.so: OK
eni_scrypt.so: OK

Test Manually

See Testing Prebuilt ENI Operations for how to test the prebuilt shared libraries of ENI operations.

Build From Source

Prerequisites

  • Boost >= 1.58
  • CMake >= 3.1
  • OpenSSL >= 1.0.2
  • SkyPat >= 3.1.1 (see SkyPat releases)

Download Source Code

git clone https://github.com/CyberMiles/libeni.git ${LIBENI_PATH}

Build with CMake

cd ${LIBENI_PATH}
mkdir build
cd build
cmake ..
make

Run Tests

In your build directory, run ctest. The result looks like the below.

Test project ${LIBENI_PATH}/build
    Start 1: crypto_unittests
1/7 Test #1: crypto_unittests .................   Passed    0.02 sec
    Start 2: t0000-smoke
2/7 Test #2: t0000-smoke ......................   Passed    0.01 sec
    Start 3: t0001-testlib
3/7 Test #3: t0001-testlib ....................   Passed    0.03 sec
    Start 4: t0002-examples-eni-reverse
4/7 Test #4: t0002-examples-eni-reverse .......   Passed    0.02 sec
    Start 5: t0003-examples-eni-caesar
5/7 Test #5: t0003-examples-eni-caesar ........   Passed    0.02 sec
    Start 6: t0004-tools-eni-crypto
6/7 Test #6: t0004-tools-eni-crypto ...........   Passed    0.07 sec
    Start 7: unittests
7/7 Test #7: unittests ........................   Passed    0.01 sec

100% tests passed, 0 tests failed out of 7

Label Time Summary:
auto          =   0.15 sec*proc (5 tests)
regression    =   0.15 sec*proc (5 tests)
unittest      =   0.03 sec*proc (2 tests)

Total Test time (real) =   0.19 sec

See Testing/Temporary/LastTest.log for the detailed output of all tests.