On Fri, Jun 22, 2007 at 03:58:59PM +0400, Evgeniy Polyakov wrote:
>
> > The crypto_alg object should contain a back pointer to the device.
> > In setkey, you have access to a tfm object which has a pointer to
> > the crypto_alg object.
> 
> crypto_alg does not contain it, or do I miss something?

You're right that it's not there as such.  However, there's
nothing stopping you from allocating struct crypto_alg + ctx
and putting your pointer there.

To make this easier, I'll add a pointer to the API explicitly.

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