crypto: mediatek - fix incorrect crypto key setting
authorVic Wu <vic.wu@mediatek.com>
Wed, 28 Aug 2019 06:37:16 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Sep 2019 04:36:54 +0000 (14:36 +1000)
commita3d7c50c416c378c91272e6b2905f91fde682319
treef311aa1bf2cf67aa42caca28dc92dfc6ab25bf5b
parent069ec891823a5211c48c68c9b9f1571d9647606d
crypto: mediatek - fix incorrect crypto key setting

Record crypto key to context during setkey and set the key to
transform state buffer in encrypt/decrypt process.

Signed-off-by: Vic Wu <vic.wu@mediatek.com>
Tested-by: John Crispin <john@phrozen.og>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mediatek/mtk-aes.c