summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Toromanoff <nicolas.toromanoff@foss.st.com>2021-11-30 10:54:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-12-11 08:48:05 +0300
commitd703c7a994ee34b7fa89baf21631fca0aa9f17fc (patch)
treeb928effa0387da9e0c1b7bdd1ef854ca8dba67d3 /scripts
parent41c76690b0990efacd15d35cfb4e77318cd80ebb (diff)
downloadlinux-d703c7a994ee34b7fa89baf21631fca0aa9f17fc.tar.xz
crypto: stm32/cryp - fix xts and race condition in crypto_engine requests
Don't erase key: If key is erased before the crypto_finalize_.*_request() call, some pending process will run with a key={ 0 }. Moreover if the key is reset at end of request, it breaks xts chaining mode, as for last xts block (in case input len is not a multiple of block) a new AES request is started without calling again set_key(). Fixes: 9e054ec21ef8 ("crypto: stm32 - Support for STM32 CRYP crypto module") Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions