Add chacha20-ietf crypto (#590)
* Add chacha20-ietf crypto * fix chacha20-ietf * PEP8 * Update sodium.py (#1) pep8
This commit is contained in:
10
tests/chacha20-ietf.json
Normal file
10
tests/chacha20-ietf.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"server":"127.0.0.1",
|
||||
"server_port":8388,
|
||||
"local_port":1081,
|
||||
"password":"salsa20_password",
|
||||
"timeout":60,
|
||||
"method":"chacha20-ietf",
|
||||
"local_address":"127.0.0.1",
|
||||
"fast_open":false
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -d libsodium-1.0.1 ]; then
|
||||
wget https://github.com/jedisct1/libsodium/releases/download/1.0.1/libsodium-1.0.1.tar.gz || exit 1
|
||||
tar xf libsodium-1.0.1.tar.gz || exit 1
|
||||
if [ ! -d libsodium-1.0.11 ]; then
|
||||
wget https://github.com/jedisct1/libsodium/releases/download/1.0.11/libsodium-1.0.11.tar.gz || exit 1
|
||||
tar xf libsodium-1.0.11.tar.gz || exit 1
|
||||
fi
|
||||
pushd libsodium-1.0.1
|
||||
pushd libsodium-1.0.11
|
||||
./configure && make -j2 && make install || exit 1
|
||||
sudo ldconfig
|
||||
popd
|
||||
|
Reference in New Issue
Block a user