]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - zeroize the descriptor with memset()
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 6 Oct 2017 13:04:45 +0000 (15:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:27 +0000 (22:55 +0800)
commit81b39da30f2a64e5499e5be3d26233375f2365b0
tree0f688041532733481a22b800f2b345642ce880c7
parenta5decd51758a5b71056ec92fc91ea0cb28999484
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>
drivers/crypto/talitos.c
drivers/crypto/talitos.h