X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=aes%2Faes_types.h;h=2768521aac580cfcf35d35049966162ce47d23b7;hb=1cdc772d04bae747c339badaa99f6132eedbcd2f;hp=d69dd9fddf5c651fd5f28d7dc8f4daba6e7c0c80;hpb=3f2f2071c47e2e424af71cc85697f3eb26c24277;p=arm-crypto-lib.git diff --git a/aes/aes_types.h b/aes/aes_types.h index d69dd9f..2768521 100644 --- a/aes/aes_types.h +++ b/aes/aes_types.h @@ -1,6 +1,6 @@ /* aes.h */ /* - This file is part of the AVR-Crypto-Lib. + This file is part of the ARM-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -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;