On Mon, Jan 05, 2009 at 10:02:07AM +0800, Huang Ying wrote: > The Intel AES-NI AES acceleration instructions need key_enc, key_dec > in struct crypto_aes_ctx to be 16 byte aligned, it make this easier to > move key_length to be the last one. > > Signed-off-by: Huang Ying <ying.huang@xxxxxxxxx> Patch applied. > struct crypto_aes_ctx { > - u32 key_length; > u32 key_enc[AES_MAX_KEYLENGTH_U32]; > u32 key_dec[AES_MAX_KEYLENGTH_U32]; > + u32 key_length; > }; I added a comment here so people don't break this down the track. +/* + * Please ensure that the first two fields are 16-byte aligned + * relative to the start of the structure, i.e., don't move them! + */ Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html