Re: AW: Best way to align key in AES context

2015-02-13 Thread Tadeusz Struk
On 02/11/2015 02:28 AM, Markus Stockhausen wrote: I want to ensure that the key data in an AES ctx structure is 8 byte aligned to avoid aligment exceptions afterwards. Other fields don't need that restriction. At the moment I'm using the following (ugly) implementation. struct ppc_aes_ctx {

AW: AW: Best way to align key in AES context

2015-02-13 Thread Markus Stockhausen
Von: linux-crypto-ow...@vger.kernel.org [linux-crypto-ow...@vger.kernel.org]quot; im Auftrag von quot;Tadeusz Struk [tadeusz.st...@intel.com] Gesendet: Freitag, 13. Februar 2015 15:47 An: Markus Stockhausen Cc: linux-crypto@vger.kernel.org Betreff: Re: AW: Best way to align key in AES

Re: AW: AW: Best way to align key in AES context

2015-02-13 Thread Tadeusz Struk
On 02/13/2015 08:49 AM, Markus Stockhausen wrote: thanks for the tip. I will at least move the data definitions to the beginning of my structure. But while it sounds logical for data types that are directly created from that structure I'm unsure about a context. If I understand it

AW: Best way to align key in AES context

2015-02-11 Thread Markus Stockhausen
Hi, I want to ensure that the key data in an AES ctx structure is 8 byte aligned to avoid aligment exceptions afterwards. Other fields don't need that restriction. At the moment I'm using the following (ugly) implementation. struct ppc_aes_ctx { u32 rounds; u32 *key_enc;