forked from wolfSSL/wolfssl
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:
@ -11830,6 +11830,8 @@ static int ChachaAEADDecrypt(WOLFSSL* ssl, byte* plain, const byte* input,
|
|||||||
#endif /* HAVE_AEAD */
|
#endif /* HAVE_AEAD */
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(BUILD_AESGCM) || defined(HAVE_AESCCM)
|
||||||
|
|
||||||
#if (!defined(HAVE_FIPS) && !defined(HAVE_SELFTEST)) || \
|
#if (!defined(HAVE_FIPS) && !defined(HAVE_SELFTEST)) || \
|
||||||
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))
|
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))
|
||||||
/* The following type is used to share code between AES-GCM and AES-CCM. */
|
/* 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
|
#define AES_CCM_ENCRYPT wc_AesCcmEncrypt
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static WC_INLINE int EncryptDo(WOLFSSL* ssl, byte* out, const byte* input,
|
static WC_INLINE int EncryptDo(WOLFSSL* ssl, byte* out, const byte* input,
|
||||||
word16 sz, int asyncOkay)
|
word16 sz, int asyncOkay)
|
||||||
|
Reference in New Issue
Block a user