X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=aes%2Faes_types.h;h=2768521aac580cfcf35d35049966162ce47d23b7;hp=5e7e43baad5000ed916706e2fe91f9d11be1faf8;hb=6095187b080b960d111a54f18a3b2da788d2d59d;hpb=f3456452a0f13bfe6d332aaeeada5b626dac2739 diff --git a/aes/aes_types.h b/aes/aes_types.h index 5e7e43b..2768521 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{ +typedef struct __attribute__((packed)){ aes_roundkey_t key[1]; /* just to avoid the warning */ } aes_genctx_t; -typedef struct{ +typedef struct __attribute__((packed)){ uint8_t s[16]; } aes_cipher_state_t;