Browse Source

Fix key sizes

pull/1152/head
Max Lv 8 years ago
parent
commit
32057ed3c5
2 changed files with 7 additions and 1 deletions
  1. 6
      .travis.yml
  2. 2
      src/aead.c

6
.travis.yml

@ -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:

2
src/aead.c

@ -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");

Loading…
Cancel
Save