27 Jul, 2018
1 commit
-
Make use of the swap macro and remove unnecessary variable *tmp*.
This makes the code easier to read and maintain.This code was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva
Signed-off-by: Herbert Xu
09 Jul, 2018
1 commit
-
Many shash algorithms set .cra_flags = CRYPTO_ALG_TYPE_SHASH. But this
is redundant with the C structure type ('struct shash_alg'), and
crypto_register_shash() already sets the type flag automatically,
clearing any type flag that was already there. Apparently the useless
assignment has just been copy+pasted around.So, remove the useless assignment from all the shash algorithms.
This patch shouldn't change any actual behavior.
Signed-off-by: Eric Biggers
Signed-off-by: Herbert Xu
22 Sep, 2017
1 commit
-
Fix checkpatch.pl warnings:
WARNING: void function return statements are not generally useful
FILE: crypto/rmd128.c:218:
FILE: crypto/rmd160.c:261:
FILE: crypto/rmd256.c:233:
FILE: crypto/rmd320.c:280:
FILE: crypto/tcrypt.c:385:
FILE: drivers/crypto/ixp4xx_crypto.c:538:
FILE: drivers/crypto/marvell/cesa.c:81:
FILE: drivers/crypto/ux500/cryp/cryp_core.c:1755:Signed-off-by: Geliang Tang
Signed-off-by: Herbert Xu
24 Nov, 2014
1 commit
-
This prefixes all crypto module loading with "crypto-" so we never run
the risk of exposing module auto-loading to userspace via a crypto API,
as demonstrated by Mathias Krause:https://lkml.org/lkml/2013/3/4/70
Signed-off-by: Kees Cook
Signed-off-by: Herbert Xu
04 Jan, 2011
1 commit
-
Signed-off-by: Adrian-Ken Rueegsegger
Signed-off-by: Herbert Xu
25 Dec, 2008
1 commit
-
This patch changes rmd256 to the new shash interface.
Signed-off-by: Herbert Xu
10 Jul, 2008
4 commits
-
Similar to the rmd128.c annotations, significantly cuts down on the
noise.Signed-off-by: Harvey Harrison
Signed-off-by: Herbert Xu -
This patch converts the relevant code in the rmd implementations to
use the pointer form of the endian swapping operations. This allows
certain architectures to generate more optimised code. For example,
on sparc64 this more than halves the CPU cycles on a typical hashing
operation.Based on a patch by David Miller.
Signed-off-by: Herbert Xu
-
This patch fixes endian issues making rmd256 work
properly on big-endian machines.Signed-off-by: Adrian-Ken Rueegsegger
Acked-by: Sebastian Siewior
Signed-off-by: Herbert Xu -
This patch adds support for the extended RIPEMD hash
algorithms RIPEMD-256 and RIPEMD-320.Signed-off-by: Adrian-Ken Rueegsegger
Signed-off-by: Herbert Xu