mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-29 04:03:45 +00:00
Fix key sizes
This commit is contained in:
@@ -13,6 +13,12 @@ before_install:
|
||||
- ./configure --prefix=/usr && make
|
||||
- sudo make install
|
||||
- popd
|
||||
- wget https://tls.mbed.org/download/start/mbedtls-2.4.0-gpl.tgz
|
||||
- tar xvf mbedtls-2.4.0-gpl.tgz
|
||||
- pushd mbedtls-2.4.0-gpl
|
||||
- make
|
||||
- sudo make install
|
||||
- popd
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
|
||||
+1
-1
@@ -740,7 +740,7 @@ aead_key_init(int method, const char *pass)
|
||||
}
|
||||
|
||||
cipher->key_len = crypto_derive_key(cipher, pass, cipher->key,
|
||||
supported_aead_ciphers_key_size[cipher->method], 2);
|
||||
supported_aead_ciphers_key_size[method], 2);
|
||||
|
||||
if (cipher->key_len == 0) {
|
||||
FATAL("Cannot generate key and nonce");
|
||||
|
||||
Reference in New Issue
Block a user