Re: [1/1 take 2] HIFN: preliminary HIFN 795x driver for new async cryptoapi.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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~} <herbert@xxxxxxxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux