Skip to content

Commit 8ca8827

Browse files
committed
Isolate forward declaration of Gmac
1 parent 20911f2 commit 8ca8827

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

wolfssl/wolfcrypt/aes.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,6 @@ struct Aes {
401401

402402
#ifndef WC_AES_TYPE_DEFINED
403403
typedef struct Aes Aes;
404-
#ifdef HAVE_AESGCM
405-
typedef struct Gmac Gmac;
406-
#endif
407404
#define WC_AES_TYPE_DEFINED
408405
#endif
409406

@@ -463,6 +460,12 @@ struct Aes {
463460
struct Gmac {
464461
Aes aes;
465462
};
463+
464+
#ifndef WC_AESGCM_TYPE_DEFINED
465+
typedef struct Gmac Gmac;
466+
#define WC_AESGCM_TYPE_DEFINED
467+
#endif
468+
466469
#endif /* HAVE_AESGCM */
467470
#endif /* HAVE_FIPS */
468471

0 commit comments

Comments
 (0)