From: Vladimir Zapolskiy <vzapolskiy@gmail.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
Subject: crypto_alg and alignment
Date: Fri, 1 Apr 2011 11:07:27 +0300 [thread overview]
Message-ID: <AANLkTinXJP27s54yyPtmGBWADSLRZ6YfOFgcciycYGy=@mail.gmail.com> (raw)
Hello Herbert,
I'm trying to implement a driver for one hardware crypto engine, and
on the current stage I work with AES algorithm, and I have a couple of
open questions.
1) What shall be guaranteed from crypto engine by providing
cra_blocksize and cra_alignmask values in crypto_alg definition? If
they are provided, can I rely that in ablkcipher request I get
aligned source and destination, and size of each chunk in sglist is
aligned to cra_blocksize?
2) I've taken a look at
http://www.mail-archive.com/linux-crypto@vger.kernel.org/msg04903.html
and I wonder, is someone working with SOCK_STREAM protocol
realization for AF_ALG? And is there some planned activities about
implementing setsockopt support for ALG_SET_IV, ALG_SET_OP etc. in
algif_skcipher?
Thank you in advance.
With best wishes,
Vladimir
next reply other threads:[~2011-04-01 8:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 8:07 Vladimir Zapolskiy [this message]
2011-04-02 14:41 ` crypto_alg and alignment 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='AANLkTinXJP27s54yyPtmGBWADSLRZ6YfOFgcciycYGy=@mail.gmail.com' \
--to=vzapolskiy@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).