Linux cryptographic layer development
 help / color / mirror / Atom feed
* Bogus sha1 implementation in crypto4xx
@ 2009-07-14 13:06 Herbert Xu
  2009-07-14 13:46 ` Steffen Klassert
  2009-07-29 22:58 ` Shasi Pulijala
  0 siblings, 2 replies; 7+ messages in thread
From: Herbert Xu @ 2009-07-14 13:06 UTC (permalink / raw)
  To: James Hsiao, Shasi Pulijala; +Cc: Linux Crypto Mailing List

Hi:

I just noticed that the sha1 implementation in crypto4xx is
fundamentally broken.  It stores the hash state in the context
of the tfm, instead of the context of the request.

This means that at any one time you can only have one entity
using the tfm, which is infeasible for an asynchronous hash.

So I'm going to disable the sha1 part of crypto4xx until this
is fixed.

This hasn't caused a problem before because we haven't started
using ahash yet, apart from tcrypt which is single-threaded.
I'm currently in the process of converting authenc (hence IPsec)
across, which means that we will soon rely on the fact that
you can have multiple hash operations ongoing at once.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-31  3:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 13:06 Bogus sha1 implementation in crypto4xx Herbert Xu
2009-07-14 13:46 ` Steffen Klassert
2009-07-14 14:43   ` Herbert Xu
2009-07-15  5:37     ` Steffen Klassert
2009-07-15  5:37       ` Herbert Xu
2009-07-29 22:58 ` Shasi Pulijala
2009-07-31  3:27   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox