X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=aes%2Faes_types.h;h=6d68022b0c296ca451a9a2ee323234cd4c0bbe27;hb=7390f9235d6bc08b7fe34a5f43a04bd3b58f6ea6;hp=5e7e43baad5000ed916706e2fe91f9d11be1faf8;hpb=4f19c43af8afeb3c569eb7b4aa15907832cf8e5c;p=arm-crypto-lib.git diff --git a/aes/aes_types.h b/aes/aes_types.h index 5e7e43b..6d68022 100644 --- a/aes/aes_types.h +++ b/aes/aes_types.h @@ -29,27 +29,27 @@ #include -typedef struct{ +typedef struct __attribute__((packed)){ uint8_t ks[16]; } aes_roundkey_t; -typedef struct{ +typedef struct __attribute__((packed)){ aes_roundkey_t key[10+1]; } aes128_ctx_t; -typedef struct{ +typedef struct __attribute__((packed)){ aes_roundkey_t key[12+1]; } aes192_ctx_t; -typedef struct{ +typedef struct __attribute__((packed)){ aes_roundkey_t key[14+1]; } aes256_ctx_t; -typedef struct{ - aes_roundkey_t key[1]; /* just to avoid the warning */ +typedef struct __attribute__((packed)){ + aes_roundkey_t key[15]; /* just to avoid the warning */ } aes_genctx_t; -typedef struct{ +typedef struct __attribute__((packed)){ uint8_t s[16]; } aes_cipher_state_t;