Skip to contentSkip to conversation

crypto: ahash - fix ahash digest size

PATCH In review Lee Nipper 2 participants 2 messages Feb 18, 2009 – Feb 19, 2009 Crypto API

lore
Share & tools
lore

Lee Nipper

author
#0 lore raw

PATCH 1/1 crypto: ahash - fix ahash digest size

crypto_ahash_show changed to use cra_ahash for digestsize reference.

---
Makes digestsize for an ahash to be shown correctly.

 crypto/ahash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
crypto/ahash.c +1 -1
index ba5292d..b2d1ee3 100644
@@ -214,7 +214,7 @@ static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg)
 	seq_printf(m, "async        : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ?
 					     "yes" : "no");
 	seq_printf(m, "blocksize    : %u\n", alg->cra_blocksize);
-	seq_printf(m, "digestsize   : %u\n", alg->cra_hash.digestsize);
+	seq_printf(m, "digestsize   : %u\n", alg->cra_ahash.digestsize);
 }
 
 const struct crypto_type crypto_ahash_type = {
Signature · 1 line
1.6.0.4
maintainer
#1 lore raw
Quoted 3 lines · Lee Nipper

crypto_ahash_show changed to use cra_ahash for digestsize reference.

Good catch! Applied to crpyto-2.6.

Thanks,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt