From ab5ce46bf393a228e9ff65ee783647bb8768620e Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 29 Jan 2025 11:08:16 +0100 Subject: [PATCH] ascon: move key to start of struct to avoid gaps in the struct --- wolfssl/wolfcrypt/ascon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/ascon.h b/wolfssl/wolfcrypt/ascon.h index eb285edac..a674be161 100644 --- a/wolfssl/wolfcrypt/ascon.h +++ b/wolfssl/wolfcrypt/ascon.h @@ -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 */