]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit945e8d628dc60accf993bafa47f4a482bdaa0263
treebe3677ac83de1f624f2984541c6f878220132f1a
parent9339b086080966e42dd5532a735dbbf6e1d26c7f
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