Re: cbc(aes-aesni) a givcipher?

2015-08-19 Thread Herbert Xu
On Wed, Aug 19, 2015 at 12:31:13PM +0200, Stephan Mueller wrote: with the latest cryptodev-2.6 tree I find the following: name : cbc(aes) driver : cbc(aes-aesni) module : kernel priority : 300 refcnt : 1 selftest : passed internal : no

Re: Recent AEAD change: testmgr.c change needed?

2015-08-19 Thread Herbert Xu
Hi Staphan: On Wed, Aug 19, 2015 at 11:48:05AM +0200, Stephan Mueller wrote: The recent AEAD change seems to trigger a need to change something in testmgr.c. I ran my test tool trying to invoke all possible permutations of cra_name and cra_driver_name ciphers and got the following:

Re: [PATCH] crypto: sahara: Use dmam_alloc_coherent

2015-08-19 Thread Herbert Xu
On Tue, Aug 18, 2015 at 11:36:05AM +0530, Vaishali Thakkar wrote: This patch moves the data allocated using dma_alloc_coherent to the corresponding managed interface. To be compatible with the change, various gotos are replaced with direct returns and unneeded labels are dropped.

Re: [PATCH] crypto: cmac - allow usage in FIPS mode

2015-08-19 Thread Herbert Xu
On Wed, Aug 19, 2015 at 08:42:07AM +0200, Stephan Mueller wrote: CMAC is an approved cipher in FIPS 140-2. The patch allows the use of CMAC with TDES and AES in FIPS mode. Signed-off-by: Stephan Mueller smuel...@chronox.de Applied. -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page:

un4i-ss-cipher.c warning

2015-08-19 Thread Michal Suchanek
Hello, when building a kernel with sunxi crypto driver as merged into the sinxi-wip branch I get a compiler warning. I am not sure this is the latest version of the driver. It does not seem to be in mainline yet. Thanks Michal In file included from

Re: cbc(aes-aesni) a givcipher?

2015-08-19 Thread Stephan Mueller
Am Mittwoch, 19. August 2015, 12:11:03 schrieb Stephan Mueller: Hi, Hi Herbert, with the latest cryptodev-2.6 tree I find the following: name : cbc(aes) driver : cbc(aes-aesni) module : kernel priority : 300 refcnt : 1 selftest : passed internal

Re: [PATCH v1 2/4] dmaengine: xgene-dma: Add support for CRC32C calculation via DMA engine

2015-08-19 Thread Vinod Koul
On Thu, Jul 30, 2015 at 05:41:06PM +0530, Rameshwar Prasad Sahu wrote: + /* Invalidate unused source address field */ + for (; i 4; i++) + xgene_dma_invalidate_buffer(xgene_dma_lookup_ext8(desc2, i)); + + /* Check whether requested buffer processed */ + if

Re: [PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-08-19 Thread Vinod Koul
On Thu, Jul 30, 2015 at 05:41:07PM +0530, Rameshwar Prasad Sahu wrote: + nents = sg_nents(req-src); + sg_count = dma_map_sg(dev, req-src, nents, DMA_TO_DEVICE); + if (!sg_count) { + dev_err(dev, Failed to map src sg); + return -ENOMEM; mapping error

[PATCH] crypto: cmac - allow usage in FIPS mode

2015-08-19 Thread Stephan Mueller
CMAC is an approved cipher in FIPS 140-2. The patch allows the use of CMAC with TDES and AES in FIPS mode. Signed-off-by: Stephan Mueller smuel...@chronox.de --- crypto/testmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index d0a42bd..a865ea9

Recent AEAD change: testmgr.c change needed?

2015-08-19 Thread Stephan Mueller
Hi Herbert, The recent AEAD change seems to trigger a need to change something in testmgr.c. I ran my test tool trying to invoke all possible permutations of cra_name and cra_driver_name ciphers and got the following: [11152.816179] alg: No test for gcm_base(ctr(aes-asm),ghash-generic)

cbc(aes-aesni) a givcipher?

2015-08-19 Thread Stephan Mueller
Hi Herbert, with the latest cryptodev-2.6 tree I find the following: name : cbc(aes) driver : cbc(aes-aesni) module : kernel priority : 300 refcnt : 1 selftest : passed internal : no type : givcipher async: no blocksize: 16 min keysize :

Re: crypto: broken Kconfig option CRYPTO_NULL2

2015-08-19 Thread Herbert Xu
On Wed, Aug 19, 2015 at 09:49:37AM +0200, Valentin Rothberg wrote: your commit 149a39717dcc (crypto: aead - Add type-safe geniv init/exit helpers) has shown up in Linux next (i.e., next-20150818) adding the following lines of code to crypto/Kconfig: Thanks but this was fixed two days ago.

Re: crypto: broken Kconfig option CRYPTO_NULL2

2015-08-19 Thread Valentin Rothberg
On Wed, Aug 19, 2015 at 9:52 AM, Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Aug 19, 2015 at 09:49:37AM +0200, Valentin Rothberg wrote: your commit 149a39717dcc (crypto: aead - Add type-safe geniv init/exit helpers) has shown up in Linux next (i.e., next-20150818) adding the

crypto: broken Kconfig option CRYPTO_NULL2

2015-08-19 Thread Valentin Rothberg
Hi Herbert, your commit 149a39717dcc (crypto: aead - Add type-safe geniv init/exit helpers) has shown up in Linux next (i.e., next-20150818) adding the following lines of code to crypto/Kconfig: @@ -150,12 +152,15 @@ config CRYPTO_GF128MUL [...] +config CRYPTO_NULL2 + select