]> 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)
commit384cbf53ffc83cac589f69c6408b82384754a5f7
tree1e3ea8ac04ab921bc9699fcd5f8a416064cf0ed2
parent65666bbcd840ee5e0ef03b529b1ffcab199eee0c
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