From: Stephan Mueller <smueller@chronox.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
Subject: Re: [PATCH 1/2] crypto: skcipher - Add top-level skcipher interface
Date: Sun, 23 Aug 2015 20:16:45 +0200 [thread overview]
Message-ID: <2086835.vbcqvJ9BvG@tachyon.chronox.de> (raw)
In-Reply-To: <20150821092754.GA6854@gondor.apana.org.au>
Am Freitag, 21. August 2015, 17:27:54 schrieb Herbert Xu:
Hi Herbert,
> On Fri, Aug 21, 2015 at 11:24:08AM +0200, Stephan Mueller wrote:
> > If I understand the patch set correctly, a caller uses the skcipher API
> > and
> > the API sets up the synchronous or asynchronous callbacks depending on the
> > chosen cipher implementation.
> >
> > Now, does a caller always need to create an skcipher_request and always
> > need the async logic of providing a callback function and the like, even
> > though a synchronous cipher is chosen? I.e. the caller has no means to
> > use a synchronous cipher operation any more.
> >
> > It looks to me like that, but I would like to confirm.
>
> No you can still use it synchronously. When allocating it you
> should do this:
>
> crypto_alloc_skcipher(name, 0, CRYPTO_ALG_ASYNC)
>
> When setting up the request just leave the callback and data as
> NULL.
Thank you. The sync and async skcipher API:
Tested-by: Stephan Mueller <smueller@chronox.de>
--
Ciao
Stephan
next prev parent reply other threads:[~2015-08-23 18:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 7:20 [PATCH 0/2] crypto: skcipher - Introduce new skcipher interface Herbert Xu
2015-08-20 7:21 ` [PATCH 1/2] crypto: skcipher - Add top-level " Herbert Xu
2015-08-21 9:24 ` Stephan Mueller
2015-08-21 9:27 ` Herbert Xu
2015-08-23 18:16 ` Stephan Mueller [this message]
2015-08-20 7:21 ` [PATCH 2/2] crypto: testmgr - Use new " Herbert Xu
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=2086835.vbcqvJ9BvG@tachyon.chronox.de \
--to=smueller@chronox.de \
--cc=herbert@gondor.apana.org.au \
--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