Merge pull request #194 from ejohnstown/aes-bug

AES Bug Fix
pull/198/head
JacobBarthelmeh 2019-09-06 16:08:23 -06:00 committed by GitHub
commit e3f8d81e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6247,7 +6247,7 @@ int SendNewKeys(WOLFSSH* ssh)
#ifdef WOLFSSL_AES_COUNTER
case ID_AES128_CTR:
#endif
#if defined(HAVE_AES_CBC) && defined(WOLFSSL_AES_COUNTER)
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_COUNTER)
WLOG(WS_LOG_DEBUG, "SNK: using cipher aes128-cbc/ctr");
ret = wc_AesSetKey(&ssh->encryptCipher.aes,
ssh->keys.encKey, ssh->keys.encKeySz,