Messages in this thread | | | Date | Thu, 14 Aug 2003 22:50:56 -0500 | From | Matt Mackall <> | Subject | Re: [PATCH] cryptoapi: Fix sleeping |
| |
On Fri, Aug 15, 2003 at 01:39:03PM +1000, James Morris wrote: > On Thu, 14 Aug 2003, Matt Mackall wrote: > > > Leaves no room actually. I figured this would be easy to move around > > after the fact. > > Ok. > > > On the subject of flags, what's the best way for an algorithm init > > function to get at the tfm structures (and thereby the flags) given a > > ctxt? Pointer math on a ctxt? > > The algorithms should not access the tfm structure. In the case of > ciphers, we pass the tfm flags in via setkey. > > What do you need this for?
This is back to turning off padding and getting at the raw hash transforms, and we were talking about doing this via flags. The FIPS-180-1 padding is done in sha1.c:digest which has no visibility to such flags.
-- Matt Mackall : http://www.selenic.com : of or relating to the moon - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |