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; u

Re: rfc4543 testvectors in testmgr.h kernel

2015-02-11 Thread Marcus Meissner
On Tue, Feb 10, 2015 at 07:39:22PM +0200, Jussi Kivilinna wrote: > On 10.02.2015 18:22, Marcus Meissner wrote: > > Hi Jussi, > > > > We were trying to use rfc4543(gcm(aes)) in the kernel for FIPS mode, > > but the testvectors seem to fail. > > You probably need to add '.fips_allowed = 1,' in test