diff options
author | Harsh Jain <harsh@chelsio.com> | 2017-06-23 16:15:11 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-12 12:38:08 +0200 |
commit | d3f1d2f7863137c5d71e64041b48968db29b149e (patch) | |
tree | e355670658068522a14a1d71698c9d036c0b6869 /drivers/crypto/chelsio/chcr_crypto.h | |
parent | crypto: caam - properly set IV after {en,de}crypt (diff) | |
download | linux-d3f1d2f7863137c5d71e64041b48968db29b149e.tar.xz linux-d3f1d2f7863137c5d71e64041b48968db29b149e.zip |
crypto: chcr - Avoid algo allocation in softirq.
Thsi patch fixes calling "crypto_alloc_cipher" call in bottom halves.
Pre allocate aes cipher required to update Tweak value for XTS.
Signed-off-by: Harsh Jain <harsh@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/chelsio/chcr_crypto.h')
-rw-r--r-- | drivers/crypto/chelsio/chcr_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h index a4f95b014b46..30af1ee17b87 100644 --- a/drivers/crypto/chelsio/chcr_crypto.h +++ b/drivers/crypto/chelsio/chcr_crypto.h @@ -155,6 +155,7 @@ struct ablk_ctx { struct crypto_skcipher *sw_cipher; + struct crypto_cipher *aes_generic; __be32 key_ctx_hdr; unsigned int enckey_len; unsigned char ciph_mode; |