Update cmac.h to move CmacType down for build compatibility

This commit is contained in:
Bill Phipps
2024-09-24 18:23:26 -04:00
committed by GitHub
parent 967dc443fa
commit 60e1c03e46

View File

@ -52,7 +52,6 @@ typedef enum CmacType {
#define WC_CMAC_TYPE_DEFINED
#endif
struct Cmac {
CmacType type;
#ifndef NO_AES
Aes aes;
byte buffer[AES_BLOCK_SIZE]; /* partially stored block */
@ -80,6 +79,7 @@ struct Cmac {
#ifdef WOLFSSL_SE050
byte useSWCrypt; /* Use SW crypt instead of SE050, before SCP03 auth */
#endif
CmacType type;
};