Skip to content

Commit

Permalink
Isolate forward declaration of Gmac
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleb-himes committed Jun 12, 2024
1 parent cd8b266 commit 057a9be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wolfssl/wolfcrypt/aes.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,6 @@ struct Aes {

#ifndef WC_AES_TYPE_DEFINED
typedef struct Aes Aes;
#ifdef HAVE_AESGCM
typedef struct Gmac Gmac;
#endif
#define WC_AES_TYPE_DEFINED
#endif

Expand Down Expand Up @@ -463,6 +460,12 @@ struct Aes {
struct Gmac {
Aes aes;
};

#ifndef WC_AESGCM_TYPE_DEFINED
typedef struct Gmac Gmac;
#define WC_AESGCM_TYPE_DEFINED
#endif

#endif /* HAVE_AESGCM */
#endif /* HAVE_FIPS */

Expand Down

0 comments on commit 057a9be

Please sign in to comment.