crypto: chcr - Add fallback for AEAD algos
authorHarsh Jain <harsh@chelsio.com>
Mon, 10 Apr 2017 12:54:01 +0000 (18:24 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Apr 2017 12:30:35 +0000 (20:30 +0800)
commit0e93708dabc0e999c7ffcf1e8661b68d96de24fd
tree8251825b7fe1edc6bab52b35ff1f703563a67c3a
parent72a56ca97dc163a7a10a654aab6635e30e781070
crypto: chcr - Add fallback for AEAD algos

Fallback to sw when
    I AAD length greater than 511
    II Zero length payload
    II No of sg entries exceeds Request size.

Signed-off-by: Harsh Jain <harsh@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/chelsio/chcr_algo.h
drivers/crypto/chelsio/chcr_crypto.h