[PATCH] staging: crypto: fixed style erro in algapi.c

2014-12-04 Thread Joshua I. James
From: "Joshua I. James" Fixed style error identified by checkpatch. WARNING: Missing a blank line after declarations + int err = crypto_remove_alg(&inst->alg, &users); + BUG_ON(err); Signed-off-by: Joshua I. James --- crypto/algapi.c | 1 + 1 file changed, 1 insert

[PATCH] staging: crypto: fixed style error in ahash.c

2014-12-04 Thread Joshua I. James
From: "Joshua I. James" Fixed style error identified by checkpatch. WARNING: Missing a blank line after declarations + unsigned int unaligned = alignmask + 1 - (offset & alignmask); + if (nbytes > unaligned) Signed-off-by: Joshua I. James --- crypto/ahash.c | 1 +

[PATCH] staging: crypto: fixed style error in af_alg.c

2014-12-04 Thread Joshua I. James
From: "Joshua I. James" Fixed style error identified by checkpatch. ERROR: space required before the open parenthesis '(' + switch(cmsg->cmsg_type) { Signed-off-by: Joshua I. James --- crypto/af_alg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/af_

[PATCH] staging: crypto: fixed style error in aead.c

2014-12-04 Thread Joshua I. James
From: "Joshua I. James" Fixed style error identified by checkpatch. ERROR: do not use assignment in if condition + if ((err = crypto_register_instance(tmpl, inst))) { Signed-off-by: Joshua I. James --- crypto/aead.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c

[PATCH] staging: crypto: fixed style errors in ablkcipher.c

2014-12-04 Thread Joshua I. James
From: "Joshua I. James" Fixed style errors reported by checkpatch. WARNING: Missing a blank line after declarations + u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK); + return max(start, end_page); WARNING: line over 80 characters + scatterwalk_st

Re: [PATCH] crypto: caam - add support for rfc4543(gcm(aes))

2014-12-04 Thread Kim Phillips
On Thu, 6 Nov 2014 23:17:14 +0800 Herbert Xu wrote: > On Thu, Oct 30, 2014 at 06:55:07PM +0200, Tudor Ambarus wrote: > > Add AES-GMAC as an IPSec ESP mechanism to provide > > data origin authentication, but not confidentiality. > > This method is referred as ENCR_NULL_AUTH_AES_GMAC. > > > > Sign

Resend: [PATCH] CRYPTO: atmel_sha: remove unused shash fallback instance

2014-12-04 Thread Svenning Sørensen
[Sorry about the messed up tabs and line wraps in first post; I hope I managed to tame TB this time around] CRYPTO: atmel_sha: remove unused shash fallback instance. The fallback is never used, so there is no point in having it. The cra_exit routine can also be removed, since all it did was rele

[PATCH] CRYPTO: atmel_sha: remove unused shash fallback instance

2014-12-04 Thread Svenning Sørensen
CRYPTO: atmel_sha: remove unused shash fallback instance. The fallback is never used, so there is no point in having it. The cra_exit routine can also be removed, since all it did was releasing the fallback, along with the stub around cra_init, which just added an unused NULL argument. Signed-o

Re: [PATCH 00/17] Multiple changes to crypto/ansi_cprng.c

2014-12-04 Thread Stephan Mueller
Am Mittwoch, 3. Dezember 2014, 15:27:53 schrieb George Spelvin: Hi George, > > but before it goes anywhere, it really needs to pass the NIST and FIPS > > test vectors. Can you do that please and post the results? > > It of course passes the ones in testmgr.h, and I can add the others from > htt

Re: [PATCH] crypto: qat - fix problem with coalescing enable logic

2014-12-04 Thread Herbert Xu
On Tue, Dec 02, 2014 at 09:08:48PM -0800, Tadeusz Struk wrote: > Fixed issue reported by Dan Carpenter > > 410 if (adf_get_cfg_int(accel_dev, "Accelerator0", > 411ADF_ETRMGR_COALESCING_ENABLED_FORMAT, > 412 bank_num, &coalesc_enable

crypto: tcrypt - Allow speed testing of arbitrary hash functions

2014-12-04 Thread Herbert Xu
This patch allows the testing of arbitrary hash functions specified by the alg module parameter by using them in mode 300 (for sync hash) and mode 400 (for async hash). For example, you could do modprobe tcrypt mode=300 alg='vmac(aes)' Signed-off-by: Herbert Xu diff --git a/cryp