summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/talitos.h
diff options
context:
space:
mode:
authorLEROY Christophe2017-10-06 15:04:45 +0200
committerHerbert Xu2017-10-12 16:55:27 +0200
commite4a647c49c581e877001676e658a8dab82a15967 (patch)
tree0f688041532733481a22b800f2b345642ce880c7 /drivers/crypto/talitos.h
parentcrypto: talitos - fix ctr-aes-talitos (diff)
downloadkernel-qcow2-linux-e4a647c49c581e877001676e658a8dab82a15967.tar.gz
kernel-qcow2-linux-e4a647c49c581e877001676e658a8dab82a15967.tar.xz
kernel-qcow2-linux-e4a647c49c581e877001676e658a8dab82a15967.zip
crypto: talitos - zeroize the descriptor with memset()
This patch zeroize the descriptor at allocation using memset(). This has two advantages: - It reduces the number of places where data has to be set to 0 - It avoids reading memory and loading the cache with data that will be entirely replaced. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.h')
-rw-r--r--drivers/crypto/talitos.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/talitos.h b/drivers/crypto/talitos.h
index 8dd8f40e2771..6112ff1fc334 100644
--- a/drivers/crypto/talitos.h
+++ b/drivers/crypto/talitos.h
@@ -52,8 +52,6 @@ struct talitos_ptr {
__be32 ptr; /* address */
};
-static const struct talitos_ptr zero_entry;
-
/* descriptor */
struct talitos_desc {
__be32 hdr; /* header high bits */