Re: hwrng: pasemi_rng.c: Migrate to managed API

2016-08-29 Thread Darren Stevens
Hello PrasannaKumar On 25/08/2016, PrasannaKumar Muralidharan wrote: >> I will propose to use devm_ioremap_resource() instead for removing this >> hardcoded 0x100, but i cannot find any user of this driver in any dts. >> (And so cannot check that this 0x100 is given in any DT resource node) > >> I

[RFC PATCH] crypto: caam - convert from ablkcipher -> skcipher

2016-08-29 Thread Horia Geantă
(a)blkcipher is being deprecated in favcur of skcipher. The main difference is that IV generation is moved out of crypto algorithms. Signed-off-by: Horia Geantă --- Herbert, The handling of IV generation is blindly following the lines of previous commit: 479bcc7c5b9e "crypto: caam - Convert aut

Re: [PATCHv3 03/11] crypto: omap-sham: implement context export/import APIs

2016-08-29 Thread Tero Kristo
On 09/08/16 13:06, Herbert Xu wrote: On Thu, Aug 04, 2016 at 01:28:38PM +0300, Tero Kristo wrote: Context export/import are now required for ahash algorithms due to required support in algif_hash. Implement these for OMAP SHA driver, saving and restoring the internal state of the driver. Signed

[PATCH v2] crypto: hide unused label

2016-08-29 Thread Arnd Bergmann
A recent change left an existing label unused in some configurations, as seen from a gcc warning: crypto/xor.c: In function 'calibrate_xor_blocks': crypto/xor.c:156:1: error: label 'out' defined but not used [-Werror=unused-label] This adds an #ifdef around it to match the one around the respect

[PATCH] crypto: hide unused label

2016-08-29 Thread Arnd Bergmann
crypto/xor.c: In function 'calibrate_xor_blocks': crypto/xor.c:156:1: error: label 'out' defined but not used [-Werror=unused-label] Signed-off-by: Arnd Bergmann Fixes: 39457acda913 ("crypto: xor - skip speed test if the xor function is selected automatically") --- crypto/xor.c | 2 ++ 1 file

[PATCH] crypto: qat - fix constants table DMA

2016-08-29 Thread Giovanni Cabiddu
From: Maksim Lukoshkov Copy const_tab array into DMA-able memory (accesible by qat hw). Signed-off-by: Maksim Lukoshkov Signed-off-by: Giovanni Cabiddu --- drivers/crypto/qat/qat_common/adf_admin.c | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/dr

[PATCH v3] crypto: caam - fix IV loading for authenc (giv)decryption

2016-08-29 Thread Horia Geantă
For algorithms that implement IV generators before the crypto ops, the IV needed for decryption is initially located in req->src scatterlist, not in req->iv. Avoid copying the IV into req->iv by modifying the (givdecrypt) descriptors to load it directly from req->src. aead_givdecrypt() is no longe

[PATCH 2/2] crypto: arm/sha1-neon - add support for building in Thumb2 mode

2016-08-29 Thread Ard Biesheuvel
The ARMv7 NEON module is explicitly built in ARM mode, which is not supported by the Thumb2 kernel. So remove the explicit override, and leave it up to the build environment to decide whether the core SHA1 routines are assembled as ARM or as Thumb2 code. Signed-off-by: Ard Biesheuvel --- arch/ar

[PATCH 1/2] crypto: arm/ghash-ce - add missing async import/export

2016-08-29 Thread Ard Biesheuvel
Since commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero"), all ahash drivers are required to implement import()/export(), and must have a non-zero statesize. Fix this for the ARM Crypto Extensions GHASH implementation. Fixes: 8996eafdcbad ("crypto: ahash - ensure statesize is non-

Re: [PATCH v2] crypto: caam - fix IV loading for authenc (giv)decryption

2016-08-29 Thread Horia Ioan Geanta Neag
On 8/26/2016 6:33 PM, Horia Geantă wrote: > For algorithms that implement IV generators before the crypto ops, > the IV needed for decryption is initially located in req->src > scatterlist, not in req->iv. > > Avoid copying the IV into req->iv by modifying the (givdecrypt) > descriptors to load it