From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: linux-crypto@vger.kernel.org
Cc: Sebastian Siewior <linux-crypto@ml.breakpoint.cc>,
Herbert Xu <herbert@gondor.apana.org.au>
Subject: Re: [1/1 take 2] HIFN: preliminary HIFN 795x driver for new async cryptoapi.
Date: Tue, 5 Jun 2007 19:02:45 +0400 [thread overview]
Message-ID: <20070605150245.GA29400@2ka.mipt.ru> (raw)
In-Reply-To: <20070605130731.GA4643@2ka.mipt.ru>
On Tue, Jun 05, 2007 at 05:07:31PM +0400, Evgeniy Polyakov (johnpol@2ka.mipt.ru) wrote:
> This is tricky, hifn requires to have a key per crypto setup, so this
> one must be in a crypto context, but context is not used right now, so
> yes, it supports only one user. I will update it to use context, since
> it is smaller that hifn_device.
Hmm, I was wrong, it is not possible (from first view).
Here is a sequence of events to setup a crypto session:
1. user calls setkey, which results in tfm. It is possible to get a
context from tfm. Context can be initialized via cra_init() callback in
registered algorithm. But there is no way to provide a private pointer
into that callback. So, there is no way to provide a pointer to
hifn_device and thus tfm context can not find a hardware device to setup
this session.
Herbert, could you please elaborate how to provide a private pointer
into cra_init without searching via static lists of all devices?
--
Evgeniy Polyakov
next prev parent reply other threads:[~2007-06-05 15:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-04 13:42 [1/1 take 2] HIFN: preliminary HIFN 795x driver for new async cryptoapi Evgeniy Polyakov
2007-06-05 12:56 ` Sebastian Siewior
2007-06-05 13:07 ` Evgeniy Polyakov
2007-06-05 15:02 ` Evgeniy Polyakov [this message]
2007-06-22 7:34 ` Herbert Xu
2007-06-22 11:58 ` Evgeniy Polyakov
2007-06-22 12:37 ` Herbert Xu
2007-06-22 13:32 ` Evgeniy Polyakov
2007-06-09 5:02 ` Herbert Xu
2007-06-22 7:28 ` Herbert Xu
2007-06-22 11:57 ` Evgeniy Polyakov
2007-06-22 12:29 ` Sebastian Siewior
2007-06-22 12:36 ` Herbert Xu
2007-06-22 12:39 ` Evgeniy Polyakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070605150245.GA29400@2ka.mipt.ru \
--to=johnpol@2ka.mipt.ru \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@ml.breakpoint.cc \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox