OSDN Git Service

crypto: inside-secure - make the key and context size computation dynamic
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 14 May 2018 13:10:59 +0000 (15:10 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:11:38 +0000 (00:11 +0800)
commitce6795593ba572ace9195b8e573e15f86fb411dd
tree03e9396fd0178b1b0e9a75abfdeae85c8f5e977e
parentfef0cfe577e9c8c75ba574d669eec55ac6ab0bad
crypto: inside-secure - make the key and context size computation dynamic

This patches makes the key and context size computation dynamic when
using memzero_explicit() on these two arrays. This is safer, cleaner and
will help future modifications of the driver when these two parameters
sizes will changes (the context size will be bigger when using AEAD
algorithms).

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c