[PATCH v2 2/3] crypto: qat - add MMP FW support to accel engine

2015-07-14 Thread Tadeusz Struk
Add code that loads the MMP firmware Signed-off-by: Tadeusz Struk --- drivers/crypto/qat/qat_common/adf_accel_devices.h |2 + drivers/crypto/qat/qat_common/adf_accel_engine.c | 42 ++-- .../crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c |1 .../crypto/qat/qat_dh895x

[PATCH v2 0/3] crypto: qat - add RSA support to qat driver

2015-07-14 Thread Tadeusz Struk
This series adds RSA support to the qat driver. First patch adds the logic in FW loader to load the Modular Math Processor(MMP) firmware to the device's internal memory. Second patch adds logic to load MMP firmware from disk. Third patch adds the actual RSA implementation. It also contains minor cl

[PATCH v2 3/3] crypto: qat - Add support for RSA algorithm

2015-07-14 Thread Tadeusz Struk
Add RSA support to QAT driver. Removed unused RNG rings. Signed-off-by: Tadeusz Struk --- drivers/crypto/qat/Kconfig |2 drivers/crypto/qat/qat_common/Makefile |1 drivers/crypto/qat/qat_common/adf_common_drv.h | 10 drivers/crypto/qat/qat_common/adf_init

[PATCH v2 1/3] crypto: qat - add support for MMP FW

2015-07-14 Thread Tadeusz Struk
From: Pingchao Yang Load Modular Math Processor(MMP) firmware into QAT devices to support public key algorithm acceleration. Signed-off-by: Pingchao Yang Signed-off-by: Tadeusz Struk --- drivers/crypto/qat/qat_common/adf_accel_devices.h |1 + drivers/crypto/qat/qat_common/adf_common_drv.

Re: [PATCH 3/3] crypto: qat - Add support for RSA algorithm

2015-07-14 Thread Tadeusz Struk
On 07/13/2015 11:46 PM, Herbert Xu wrote: > As we discussed a while ago, the hardware implementation must not > support a smaller feature set than the software implementation. > > So please either add a software fallback for unsupported key sizes, > or ensure that the software implementation also

Re: [PATCH 3/5] crypto: aes-ce-ccm - Convert to new AEAD interface

2015-07-14 Thread Ard Biesheuvel
On 14 July 2015 at 10:53, Herbert Xu wrote: > This patch converts the ARM64 aes-ce-ccm implementation to the > new AEAD interface. > > Signed-off-by: Herbert Xu Reviewed-by: Ard Biesheuvel Tested-by: Ard Biesheuvel > --- > > arch/arm64/crypto/aes-ce-ccm-glue.c | 69 > +

[PATCH 4/5] crypto: nx - Convert ccm to new AEAD interface

2015-07-14 Thread Herbert Xu
This patch converts the nx ccm and 4309 implementations to the new AEAD interface. Signed-off-by: Herbert Xu --- drivers/crypto/nx/nx-aes-ccm.c | 153 +++-- drivers/crypto/nx/nx.c | 21 ++--- drivers/crypto/nx/nx.h |6 - 3 files changed

[PATCH 1/5] crypto: testmgr - Disable rfc4309 test and convert test vectors

2015-07-14 Thread Herbert Xu
This patch disables the rfc4309 test while the conversion to the new seqiv calling convention takes place. It also replaces the rfc4309 test vectors with ones that will work with the new IV convention. Signed-off-by: Herbert Xu --- crypto/testmgr.c |2 crypto/testmgr.h | 1738

[PATCH 5/5] crypto: testmgr - Reenable rfc4309 test

2015-07-14 Thread Herbert Xu
Now that all implementations of rfc4309 have been converted we can reenable the test. Signed-off-by: Herbert Xu --- crypto/testmgr.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f89b028..d0a42bd 100644 --- a/crypto/testmgr.c ++

[PATCH 2/5] crypto: ccm - Convert to new AEAD interface

2015-07-14 Thread Herbert Xu
This patch converts generic ccm and its associated transforms to the new AEAD interface. Signed-off-by: Herbert Xu --- crypto/ccm.c | 388 ++- 1 file changed, 224 insertions(+), 164 deletions(-) diff --git a/crypto/ccm.c b/crypto/ccm.c i

[PATCH 3/5] crypto: aes-ce-ccm - Convert to new AEAD interface

2015-07-14 Thread Herbert Xu
This patch converts the ARM64 aes-ce-ccm implementation to the new AEAD interface. Signed-off-by: Herbert Xu --- arch/arm64/crypto/aes-ce-ccm-glue.c | 69 ++-- 1 file changed, 43 insertions(+), 26 deletions(-) diff --git a/arch/arm64/crypto/aes-ce-ccm-glue.c

[PATCH 0/5] crypto: aead - Convert ccm to new interface

2015-07-14 Thread Herbert Xu
Hi: This series converts all implementations of CCM to the new AEAD interface. Note that arm and nx are compile-tested only. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: se

Re: [PATCH 0/2] Uncomment VSX enable routine for instructions access

2015-07-14 Thread Herbert Xu
Leonidas S. Barbosa wrote: > enable_kernel_vsx() was commented since anything was using > it. It changes with vmx_crypto driver that call VSX instructions > and need kernel_vsx enabled in order to do it properly. Without > a way to enable VSX instruction vmx_crypto fails into an exception. > > Th

Re: [PATCH] crypto: Drop owner assignment from platform_driver

2015-07-14 Thread Herbert Xu
On Fri, Jul 10, 2015 at 02:46:16PM +0900, Krzysztof Kozlowski wrote: > platform_driver does not need to set an owner because > platform_driver_register() will set it. > > Signed-off-by: Krzysztof Kozlowski Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: h