Fix key sizes

This commit is contained in:
Max Lv
2017-01-31 16:22:33 +08:00
parent 37594afb5d
commit 32057ed3c5
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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
View File
@@ -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");