linux/arch/sparc/crypto
Julia Lawall 8202cd7206 crypto: sparc - replace memset by memzero_explicit
Memset on a local variable may be removed when it is called just before the
variable goes out of scope.  Using memzero_explicit defeats this
optimization.  A simplified version of the semantic patch that makes this
change is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x;
type T;
@@

{
... when any
T x[...];
... when any
    when exists
- memset
+ memzero_explicit
  (x,
-0,
  ...)
... when != x
    when strict
}
// </smpl>

This change was suggested by Daniel Borkmann <dborkman@redhat.com>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-12-02 22:55:48 +08:00
..
Makefile sparc64: Fix build with mix of modular vs. non-modular crypto drivers. 2012-11-09 20:55:16 -08:00
aes_asm.S sparc64: Fix unrolled AES 256-bit key loops. 2012-12-19 15:19:11 -08:00
aes_glue.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
camellia_asm.S sparc64: Fix function argument comment in camellia_sparc64_key_expand asm. 2012-09-21 12:04:51 -07:00
camellia_glue.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
crc32c_asm.S sparc64: Avoid code duplication in crypto assembler. 2012-08-31 12:11:51 -07:00
crc32c_glue.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
crop_devid.c sparc64: Add auto-loading mechanism to crypto-opcode drivers. 2012-09-15 09:46:25 -07:00
des_asm.S sparc64: Fix ECB looping constructs in AES code. 2012-12-19 15:30:07 -08:00
des_glue.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
md5_asm.S sparc64: Avoid code duplication in crypto assembler. 2012-08-31 12:11:51 -07:00
md5_glue.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
opcodes.h sparc64: Adjust crypto priorities. 2012-09-15 09:06:30 -07:00
sha1_asm.S sparc64: Avoid code duplication in crypto assembler. 2012-08-31 12:11:51 -07:00
sha1_glue.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
sha256_asm.S sparc64: Avoid code duplication in crypto assembler. 2012-08-31 12:11:51 -07:00
sha256_glue.c crypto: sparc - replace memset by memzero_explicit 2014-12-02 22:55:48 +08:00
sha512_asm.S sparc64: Avoid code duplication in crypto assembler. 2012-08-31 12:11:51 -07:00
sha512_glue.c crypto: sparc - replace memset by memzero_explicit 2014-12-02 22:55:48 +08:00