[PATCH 3/3 V4] crypto: Simplify the ahash_finup implementation

2014-03-13 Thread Marek Vasut
The ahash_def_finup() can make use of the request save/restore functions, thus make it so. This simplifies the code a little and unifies the code paths. Note that the same remark about free()ing the req-priv applies here, the req-priv can only be free()'d after the original request was restored.

[PATCH 1/3 V4] crypto: Fix the pointer voodoo in unaligned ahash

2014-03-13 Thread Marek Vasut
Add documentation for the pointer voodoo that is happening in crypto/ahash.c in ahash_op_unaligned(). This code is quite confusing, so add a beefy chunk of documentation. Moreover, make sure the mangled request is completely restored after finishing this unaligned operation. This means restoring

[PATCH 2/3 V4] crypto: Pull out the functions to save/restore request

2014-03-13 Thread Marek Vasut
The functions to save original request within a newly adjusted request and it's counterpart to restore the original request can be re-used by more code in the crypto/ahash.c file. Pull these functions out from the code so they're available. Signed-off-by: Marek Vasut ma...@denx.de Cc: David S.

Re: [PATCH 1/2] SHA1 transform: x86_64 AVX2 optimization - assembly code-v2

2014-03-13 Thread Marek Vasut
On Wednesday, March 12, 2014 at 07:47:43 PM, chandramouli narayanan wrote: This git patch adds x86_64 AVX2 optimization of SHA1 transform to crypto support. The patch has been tested with 3.14.0-rc1 kernel. On a Haswell desktop, with turbo disabled and all cpus running at maximum frequency,

Re: [PATCH 2/2] SHA1 transform: x86_64 AVX2 optimization - glue build-v2

2014-03-13 Thread Marek Vasut
On Wednesday, March 12, 2014 at 07:47:50 PM, chandramouli narayanan wrote: This git patch adds the glue, build and configuration changes to include x86_64 AVX2 optimization of SHA1 transform to crypto support. The patch has been tested with 3.14.0-rc1 kernel. Changes from the initial