add mbedtls crypto wrapper.

add tests files for new aead ciphers
add custom lib path support
fix some typo
This commit is contained in:
Zou Yong 2017-03-21 19:24:53 +08:00
parent 9e25cc6bb4
commit 5e2bf92ef6
30 changed files with 898 additions and 145 deletions

11
tests/libmbedtls/install.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
MBEDTLS_VER=2.4.2
if [ ! -d mbedtls-$MBEDTLS_VER ]; then
wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz || exit 1
tar xf mbedtls-$MBEDTLS_VER-gpl.tgz || exit 1
fi
pushd mbedtls-$MBEDTLS_VER
make SHARED=1 CFLAGS=-fPIC && sudo make install || exit 1
sudo ldconfig
popd