fallback mechanism in HASH drivers implimentetion

2015-02-13 Thread sri sowj
Hi , I am trying to understand the SHA1 (asynchronous) driver , I am not really sure regarding below mentioned scenarios,please can some help me with this? #1: When driver needs to use fallback mechanism and how does it work? #2: when do driver needs to use methods like import/export ? BR, Sris

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

Understanding HASH(SHA) Driver implementation

2015-02-13 Thread sri sowj
Hi , I am trying to analyze Linux Kernel Crypto Interface with respective to hashing(ahash for SHA1 in particular) . I am looking at omap-sham.c/atmel-sha.c as reference,which is in open source linux/driver/crypto.I need some inputs in understanding following . #1: If It need to handle a scenario

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]" im Auftrag von "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 conte

Re: AF_ALG interface not marking the end of the scatter-gather list

2015-02-13 Thread Tom Lendacky
On 02/13/2015 05:43 AM, Stephan Mueller wrote: Am Donnerstag, 12. Februar 2015, 17:41:59 schrieb Tom Lendacky: Hi Tom, I was doing some testing of the CCP driver using the AF_ALG interface and encountered a BUG_ON statement during scatter-gather DMA mapping. In algif_skcipher.c, before submit

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_ct

Re: AF_ALG interface not marking the end of the scatter-gather list

2015-02-13 Thread Stephan Mueller
Am Donnerstag, 12. Februar 2015, 17:41:59 schrieb Tom Lendacky: Hi Tom, > I was doing some testing of the CCP driver using the AF_ALG interface > and encountered a BUG_ON statement during scatter-gather DMA mapping. > > In algif_skcipher.c, before submitting a request to the the Crypto API > the