]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix crypto_cipher_init() EVP initialization
authorJouni Malinen <j@w1.fi>
Sun, 16 Aug 2009 19:26:59 +0000 (22:26 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Aug 2009 19:26:59 +0000 (22:26 +0300)
commit108f9dd49b8192583ac9789a19626aeb53add8d6
tree669fbc8ae5c501e0f78566f9542be8378210cb05
parent7cba52d8523869237c0f7708cfac39a98558490d
Fix crypto_cipher_init() EVP initialization

Better not specify EVP_CIPHER again for the second init call since that
will override key length with the default value. The previous version
was likely to work since most use cases would be likely to use the
default key length. Anyway, better make this handle variable length
ciphers (mainly, RC4), too, just in case it is needed in the future.
src/crypto/crypto_openssl.c