aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-08-26 04:34:10 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:46:22 -0400
commit6010439f47e6b308c031dad7d99686030ef942dd (patch)
treec59d65017014dec1f0c01e6372c7a92f3284a5e9 /include
parente4d5b79c661c7cfca9d8d5afd040a295f128d3cb (diff)
[CRYPTO] padlock: Convert padlock-sha to use crypto_hash
This patch converts padlock-sha to use crypto_hash for its fallback. It also changes the fallback selection to use selection by type instead of name. This is done through the new CRYPTO_ALG_NEED_FALLBACK bit, which is set if and only if an algorithm needs a fallback of the same type. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/linux/crypto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index d4f9948b64b1..187c6ea91959 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -43,6 +43,12 @@
43#define CRYPTO_ALG_ASYNC 0x00000080 43#define CRYPTO_ALG_ASYNC 0x00000080
44 44
45/* 45/*
46 * Set this bit if and only if the algorithm requires another algorithm of
47 * the same type to handle corner cases.
48 */
49#define CRYPTO_ALG_NEED_FALLBACK 0x00000100
50
51/*
46 * Transform masks and values (for crt_flags). 52 * Transform masks and values (for crt_flags).
47 */ 53 */
48#define CRYPTO_TFM_MODE_MASK 0x000000ff 54#define CRYPTO_TFM_MODE_MASK 0x000000ff