]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Move static cipher alg & mode settings to init
authorPascal van Leeuwen <pascalvanl@gmail.com>
Fri, 30 Aug 2019 07:40:52 +0000 (09:40 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Sep 2019 04:36:55 +0000 (14:36 +1000)
commit853d2a6b2acb02e511600494a14eae52a46a895b
tree1e3ea8ac04ab921bc9699fcd5f8a416064cf0ed2
parente3911c8bceb10fbf4675198443ec27f463ebd348
crypto: inside-secure - Move static cipher alg & mode settings to init

ctx->alg and ctx->mode were set from safexcel_send_req through the
various safexcel_encrypt and _decrypt routines, but this makes little
sense as these are static per ciphersuite. So moved to _init instead,
in preparation of adding more ciphersuites.

Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c