mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix build error with WOLFSSL_AES_DIRECT
This commit is contained in:
@ -5683,7 +5683,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
|
|||||||
|
|
||||||
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_COUNTER) || \
|
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_COUNTER) || \
|
||||||
defined(HAVE_AES_ECB) || defined(WOLFSSL_AES_CFB) || \
|
defined(HAVE_AES_ECB) || defined(WOLFSSL_AES_CFB) || \
|
||||||
defined(WOLFSSL_AES_OFB)
|
defined(WOLFSSL_AES_OFB) || defined(WOLFSSL_AES_DIRECT)
|
||||||
#define AES_SET_KEY
|
#define AES_SET_KEY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -688,7 +688,10 @@ int wc_CryptKey(const char* password, int passwordSz, byte* salt,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key != NULL) {
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
|
if (key != NULL)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
ForceZero(key, PKCS_MAX_KEY_SIZE);
|
ForceZero(key, PKCS_MAX_KEY_SIZE);
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
XFREE(key, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
XFREE(key, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
|
Reference in New Issue
Block a user