summaryrefslogtreecommitdiff
path: root/crypto/tgr192.c
diff options
context:
space:
mode:
authorMarcelo Cerri <marcelo.cerri@canonical.com>2017-02-27 09:38:26 -0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-03-09 18:34:39 +0800
commit25fe465280e3f2048e38757579b5913b5bf500b4 (patch)
treea7b27cef68cf4f1642a55b4cbe6fa75bd7b020f8 /crypto/tgr192.c
parentcf197f2b42c64f6cb65596e3cc40af58610cadc8 (diff)
downloadlinux-crypto-25fe465280e3f2048e38757579b5913b5bf500b4.tar.gz
linux-crypto-25fe465280e3f2048e38757579b5913b5bf500b4.zip
crypto: ctr - Propagate NEED_FALLBACK bit
When requesting a fallback algorithm, we should propagate the NEED_FALLBACK bit when search for the underlying algorithm. This will prevents drivers from allocating unnecessary fallbacks that are never called. For instance, currently the vmx-crypto driver will use the following chain of calls when calling the fallback implementation: p8_aes_ctr -> ctr(p8_aes) -> aes-generic However p8_aes will always delegate its calls to aes-generic. With this patch, p8_aes_ctr will be able to use ctr(aes-generic) directly as its fallback. The same applies to aes_s390. Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tgr192.c')
0 files changed, 0 insertions, 0 deletions