[PATCH V3 00/29] bitops: add parity functions

2016-04-13 Thread zengzhaoxiu
From: Zhaoxiu Zeng When I do "grep parity -r linux", I found many parity calculations distributed in many drivers. This patch series does: 1. provide generic and architecture-specific parity calculations 2. remove drivers' local parity calculations, use bitops'

[PATCH V3 21/29] crypto: use parity functions in qat_hal

2016-04-13 Thread zengzhaoxiu
From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- drivers/crypto/qat/qat_common/qat_hal.c | 32 ++-- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/drivers/crypto/qat/qat_common/qat_hal.c

Re: [PATCH 0/3] crypto: af_alg - add TLS type encryption

2016-04-13 Thread Tadeusz Struk
Hi Fridolin, On 04/12/2016 04:13 AM, Fridolin Pokorny wrote: > we were experimenting with this. We have a prove of concept of a kernel > TLS type socket, so called AF_KTLS, which is based on Dave Watson's > RFC5288 patch. It handles both TLS and DTLS, unfortunately it is not > ready now to be

Re: [PATCH] crypto: sha1-mb - use corrcet pointer while completing jobs

2016-04-13 Thread Tim Chen
On Tue, 2016-04-12 at 09:45 +, Xiaodong Liu wrote: > In sha_complete_job, incorrect mcryptd_hash_request_ctx pointer is > used > when check and complete other jobs. If the memory of first completed > req > is freed, while still completing other jobs in the func, kernel will > crash since NULL

[PATCH] crypto: ccp - Prevent information leakage on export

2016-04-13 Thread Tom Lendacky
Prevent information from leaking to userspace by doing a memset to 0 of the export state structure before setting the structure values and copying it. This prevents un-initialized padding areas from being copied into the export area. Cc: # 3.14.x- Reported-by: Ben

[PATCH v4 0/2] Add Hisilicon Random Number Generator(RNG) support

2016-04-13 Thread Kefeng Wang
Changes since v3: - Compatible name "hisilicon,hip04-rng" and "hisilicon,hip05-rng" are used, suggested by Robe Herring - Add reviewed-by from Mathieu Poirier Changes since v2: - Remove unused RNG_RELOAD_ERR. - Add comment of seed choice in hisi_rng_init - Add head inculde linux/random.h for

[PATCH v4 2/2] hwrng: hisi: Add support for Hisilicon SoC RNG

2016-04-13 Thread Kefeng Wang
This adds the Hisilicon Random Number Generator(RNG) support, which is found in Hip04 and Hip05 soc. Reviewed-by: Mathieu Poirier Signed-off-by: Kefeng Wang --- drivers/char/hw_random/Kconfig| 13 drivers/char/hw_random/Makefile

[PATCH v4 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-13 Thread Kefeng Wang
Document the devicetree bindings for the random number generator found on Hisilicon Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/rng/hisi-rng.txt | 12 1 file changed, 12 insertions(+) create mode 100644

Re: [PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-13 Thread Stephan Mueller
Am Mittwoch, 13. April 2016, 09:07:38 schrieb Benedetto, Salvatore: Hi Salvatore, > > I don't see any particular benefit in replacing this check with a lower > boundary check only. Values other than those listed are very unlikely. > Anyway, if you feel so strong about it and other people think

RE: [PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-13 Thread Benedetto, Salvatore
> -Original Message- > From: linux-crypto-ow...@vger.kernel.org [mailto:linux-crypto- > ow...@vger.kernel.org] On Behalf Of Stephan Mueller > Sent: Tuesday, April 12, 2016 2:21 PM > To: Benedetto, Salvatore > Cc: herb...@gondor.apana.org.au;

Re: [PATCH v2 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-13 Thread Kefeng Wang
On 2016/4/12 21:54, Rob Herring wrote: > On Mon, Apr 11, 2016 at 8:16 PM, Kefeng Wang > wrote: >> >> >> On 2016/4/11 22:43, Rob Herring wrote: >>> On Thu, Apr 07, 2016 at 04:23:16PM +0800, Kefeng Wang wrote: Document the devicetree bindings for the random