[PATCH] crypto: caam - Add support for hashing export and import functions

2015-10-16 Thread Victoria Milhoan
Add support for the export and import functions used by hashing algorithms by specifying the size of the data saved/restored. The size of the data is provided during algorithm registration. Also, modify the structures saved/restored in order to meet the size limit of 512 bytes imposed by the the C

Re: [PATCH v3 1/5] crypto: ensure algif_hash does not pass a zero-sized state

2015-10-16 Thread Victoria Milhoan
On Thu, 15 Oct 2015 21:13:38 +0800 Herbert Xu wrote: > On Thu, Oct 15, 2015 at 01:59:44PM +0100, Russell King - ARM Linux wrote: > > > > I think the CAAM driver is pretty unfixable from a trivial point of > > view. This driver exports a huge amount of state - it contains both a > > struct caam_h

[PATCH] crypto: qat - fix crypto_get_instance_node function

2015-10-16 Thread Tadeusz Struk
qat_crypto_get_instance_node function needs to handle situation when the first dev in the list is not started. Signed-off-by: Tadeusz Struk --- drivers/crypto/qat/qat_common/qat_crypto.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/qa

Re: [PATCH] crypto: x86: Remove duplicate define of SHA1_DIGEST_SIZE

2015-10-16 Thread Tim Chen
On Wed, 2015-10-14 at 21:15 +0200, LABBE Corentin wrote: > The sha x86 crypto code use two define for the same thing: > NUM_SHA1_DIGEST_WORDS and SHA1_DIGEST_LENGTH > Replace them by SHA1_DIGEST_SIZE/4 Thanks. Acked-by: Tim Chen > > Signed-off-by: LABBE Corentin -- To unsubscribe from this l

[PATCH] hwrng: exynos - Fix unbalanced PM runtime get/puts

2015-10-16 Thread Daniel Thompson
Currently this driver calls pm_runtime_get_sync() rampantly but never puts anything back. This makes it impossible for the device to autosuspend properly; it will remain fully active after the first use. Fix in the obvious way. Signed-off-by: Daniel Thompson Cc: Kukjin Kim Cc: Krzysztof Kozlows

Re: [PATCH] crypto: add asynchronous compression support

2015-10-16 Thread Herbert Xu
On Fri, Oct 16, 2015 at 11:11:00PM +0800, Weigang Li wrote: > This patch set introduces Asynchronous Compression API. > What is proposed is a new crypto type called crypto_acomp_type, > plus new struct acomp_alg and struct crypto_acomp, together with number > of helper functions to register acomp

[PATCH] crypto: add asynchronous compression support

2015-10-16 Thread Weigang Li
This patch set introduces Asynchronous Compression API. What is proposed is a new crypto type called crypto_acomp_type, plus new struct acomp_alg and struct crypto_acomp, together with number of helper functions to register acomp type algorithms and allocate tfm instances. This is to make it sim

Re: [PATCH 1/8] crypto: hash: add zero length message hash for shax and md5

2015-10-16 Thread Ulf Hansson
On 15 October 2015 at 11:42, LABBE Corentin wrote: > On Wed, Oct 14, 2015 at 06:08:02PM +0800, Herbert Xu wrote: >> On Mon, Oct 12, 2015 at 06:53:39PM +0200, LABBE Corentin wrote: >> > Some crypto drivers cannot process empty data message and return a >> > precalculated hash for md5/sha1/sha224/sh