From: Stephan Mueller <smueller@chronox.de>
To: Tadeusz Struk <tadeusz.struk@intel.com>,
Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Subject: akcipher: continuous memory for input/output
Date: Wed, 08 Jul 2015 17:27:15 +0200 [thread overview]
Message-ID: <4018710.nx8zEmrfD4@tauon.atsec.com> (raw)
Hi Herbert, Tadeusz,
I looked a bit further into the akcipher code to see how we can add an AF_ALG
there.
What currently wonders me is the akcipher_request_set_crypt function: the
memory for input/output buffers is *no* scatter list but a plain buffer. I
think I can understand that for raw RSA operations as the input/output is not
overly large.
But according to Tadeusz it may be viable to register hybrid asym ciphers with
the akcipher API. If there is a full blown hybrid asym cipher we have to
handle potentially large chunks of data. I am now wondering whether a flat
buffer still makes sense or whether the akcipher should be converted to
scatter lists as all the other cipher types.
If it shall stay as is, how would we be handling larger buffers?
Thanks
Stephan
next reply other threads:[~2015-07-08 15:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 15:27 Stephan Mueller [this message]
2015-07-08 15:29 ` akcipher: continuous memory for input/output Herbert Xu
2015-07-08 15:54 ` Stephan Mueller
2015-07-10 13:36 ` 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=4018710.nx8zEmrfD4@tauon.atsec.com \
--to=smueller@chronox.de \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=tadeusz.struk@intel.com \
/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