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)
commit93369b5d06c7c45f2c9c62106c7a030f92c0eb9e
tree1e3ea8ac04ab921bc9699fcd5f8a416064cf0ed2
parenta3d7c50c416c378c91272e6b2905f91fde682319
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