mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
ascon: move key to start of struct to avoid gaps in the struct
This commit is contained in:
@ -63,10 +63,10 @@ enum {
|
||||
};
|
||||
|
||||
typedef struct wc_AsconAEAD128 {
|
||||
AsconState state;
|
||||
byte lastBlkSz;
|
||||
/* needed throughout both encrypt and decrypt */
|
||||
word64 key[ASCON_AEAD128_KEY_SZ/sizeof(word64)];
|
||||
AsconState state;
|
||||
byte lastBlkSz;
|
||||
byte KeySet:1; /* has the key been processed */
|
||||
byte NonceSet:1; /* has the nonce been processed */
|
||||
byte ADSet:1; /* has the associated data been processed */
|
||||
|
Reference in New Issue
Block a user