From: Eric Biggers Date: Wed, 3 Jan 2018 19:16:22 +0000 (-0800) Subject: crypto: hash - introduce crypto_hash_alg_has_setkey() X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ea91baca141381b1960721832ff21392f770c4;p=pandora-kernel.git crypto: hash - introduce crypto_hash_alg_has_setkey() commit cd6ed77ad5d223dc6299fb58f62e0f5267f7e2ba upstream. Templates that use an shash spawn can use crypto_shash_alg_has_setkey() to determine whether the underlying algorithm requires a key or not. But there was no corresponding function for ahash spawns. Add it. Note that the new function actually has to support both shash and ahash algorithms, since the ahash API can be used with either. Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed