On Wed, May 14, 2008 at 08:40:39PM +0800, Herbert Xu wrote:
> 
> All ahash algorithms should provide a setkey function just like hash.
> Digest algorithms should never come down this way.  When we convert
> digest algorithms over to ahash we should add setkey functions.

Oh and for the vast majority of them we create create a common
default setkey function that they can put in their function tables.

The NULL setkey check in digest was there so that the existing
algorithms didn't have to be modified.  The ahash type does not
have this problem because there are no existing ahash algorithms.

Cheers,
-- 
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
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to