Add a guard for AES-GCM and AES-CCM for the change in Encrypt for the

AES-AEAD type and macros.
This commit is contained in:
John Safranek
2019-02-13 12:23:12 -08:00
parent cd7f8cc653
commit 3223920fd9

View File

@ -11830,6 +11830,8 @@ static int ChachaAEADDecrypt(WOLFSSL* ssl, byte* plain, const byte* input,
#endif /* HAVE_AEAD */
#if defined(BUILD_AESGCM) || defined(HAVE_AESCCM)
#if (!defined(HAVE_FIPS) && !defined(HAVE_SELFTEST)) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))
/* The following type is used to share code between AES-GCM and AES-CCM. */
@ -11847,6 +11849,8 @@ static int ChachaAEADDecrypt(WOLFSSL* ssl, byte* plain, const byte* input,
#define AES_CCM_ENCRYPT wc_AesCcmEncrypt
#endif
#endif
static WC_INLINE int EncryptDo(WOLFSSL* ssl, byte* out, const byte* input,
word16 sz, int asyncOkay)