]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - aes/aes_types.h
few changes to aes, nothing of importance
[arm-crypto-lib.git] / aes / aes_types.h
index d69dd9fddf5c651fd5f28d7dc8f4daba6e7c0c80..6d68022b0c296ca451a9a2ee323234cd4c0bbe27 100644 (file)
@@ -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
 
 #include <stdint.h>
 
-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;