OSDN Git Service

crypto: inside-secure - rework the alg type settings in the context
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 14 May 2018 13:10:57 +0000 (15:10 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:11:36 +0000 (00:11 +0800)
commit3a5ca230bbb64b5a6330559671bd67cfd8b4a170
treebe3677ac83de1f624f2984541c6f878220132f1a
parent8ac1283e4aaa14ea7eeadb9afb7dcaa40145282f
crypto: inside-secure - rework the alg type settings in the context

This patches reworks the way the algorithm type is set in the context,
by using the fact that the decryption algorithms are just a combination
of the algorithm encryption type and CONTEXT_CONTROL_TYPE_NULL_IN.

This will help having simpler code when adding the AEAD support, to
avoid ending up with an endless switch case block.

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