diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-08-30 18:30:38 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-08-30 18:30:38 -0400 |
commit | 0a7d5f8ce960e74fa22986bda4af488539796e49 (patch) | |
tree | e29ad17808a5c3410518e22dae8dfe94801b59f3 /drivers/crypto/padlock-aes.c | |
parent | 0165508c80a2b5d5268d9c5dfa9b30c534a33693 (diff) | |
parent | dc709bd190c130b299ac19d596594256265c042a (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/crypto/padlock-aes.c')
-rw-r--r-- | drivers/crypto/padlock-aes.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c index 17ee684144f9..b643d71298a9 100644 --- a/drivers/crypto/padlock-aes.c +++ b/drivers/crypto/padlock-aes.c | |||
@@ -59,6 +59,9 @@ | |||
59 | #define AES_EXTENDED_KEY_SIZE 64 /* in uint32_t units */ | 59 | #define AES_EXTENDED_KEY_SIZE 64 /* in uint32_t units */ |
60 | #define AES_EXTENDED_KEY_SIZE_B (AES_EXTENDED_KEY_SIZE * sizeof(uint32_t)) | 60 | #define AES_EXTENDED_KEY_SIZE_B (AES_EXTENDED_KEY_SIZE * sizeof(uint32_t)) |
61 | 61 | ||
62 | /* Whenever making any changes to the following | ||
63 | * structure *make sure* you keep E, d_data | ||
64 | * and cword aligned on 16 Bytes boundaries!!! */ | ||
62 | struct aes_ctx { | 65 | struct aes_ctx { |
63 | struct { | 66 | struct { |
64 | struct cword encrypt; | 67 | struct cword encrypt; |
@@ -66,8 +69,10 @@ struct aes_ctx { | |||
66 | } cword; | 69 | } cword; |
67 | u32 *D; | 70 | u32 *D; |
68 | int key_length; | 71 | int key_length; |
69 | u32 E[AES_EXTENDED_KEY_SIZE]; | 72 | u32 E[AES_EXTENDED_KEY_SIZE] |
70 | u32 d_data[AES_EXTENDED_KEY_SIZE]; | 73 | __attribute__ ((__aligned__(PADLOCK_ALIGNMENT))); |
74 | u32 d_data[AES_EXTENDED_KEY_SIZE] | ||
75 | __attribute__ ((__aligned__(PADLOCK_ALIGNMENT))); | ||
71 | }; | 76 | }; |
72 | 77 | ||
73 | /* ====== Key management routines ====== */ | 78 | /* ====== Key management routines ====== */ |