aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-15 03:11:08 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-15 03:11:08 -0400
commit305f9db22d62da10c43c7fd7554ec923c2b8727e (patch)
tree209c5cf40f758cf5c8e187ef0cfd9cbea2c84d85 /drivers
parent66f6ce5e52f2f209d5bf1f06167cec888f4f4c13 (diff)
crypto: crypto4xx - Disable SHA implementation
The crypto4xx SHA implementation keeps the hash state in the tfm data structure. This breaks a fundamental requirement of ahash implementations that they must be reentrant. This patch disables the broken implementation. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/amcc/crypto4xx_core.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c
index 857e35efedac..46e899ac924e 100644
--- a/drivers/crypto/amcc/crypto4xx_core.c
+++ b/drivers/crypto/amcc/crypto4xx_core.c
@@ -1144,25 +1144,6 @@ struct crypto4xx_alg_common crypto4xx_alg[] = {
1144 } 1144 }
1145 } 1145 }
1146 }}, 1146 }},
1147 /* Hash SHA1 */
1148 { .type = CRYPTO_ALG_TYPE_AHASH, .u.hash = {
1149 .init = crypto4xx_hash_init,
1150 .update = crypto4xx_hash_update,
1151 .final = crypto4xx_hash_final,
1152 .digest = crypto4xx_hash_digest,
1153 .halg.digestsize = SHA1_DIGEST_SIZE,
1154 .halg.base = {
1155 .cra_name = "sha1",
1156 .cra_driver_name = "sha1-ppc4xx",
1157 .cra_priority = CRYPTO4XX_CRYPTO_PRIORITY,
1158 .cra_flags = CRYPTO_ALG_ASYNC,
1159 .cra_blocksize = SHA1_BLOCK_SIZE,
1160 .cra_ctxsize = sizeof(struct crypto4xx_ctx),
1161 .cra_init = crypto4xx_sha1_alg_init,
1162 .cra_exit = crypto4xx_alg_exit,
1163 .cra_module = THIS_MODULE,
1164 }
1165 }},
1166}; 1147};
1167 1148
1168/** 1149/**