From: Pavel Roskin <proski@gnu.org>
To: linux-crypto@vger.kernel.org
Subject: Converting mac80211 CCMP to packet-at-a-time processing
Date: Fri, 12 Mar 2010 00:29:22 -0500 [thread overview]
Message-ID: <1268371762.6763.26.camel@mj> (raw)
Hello!
The CCMP encryption in mac80211 uses crypto API to encrypt 16 bytes at a
time. I believe this is not the best approach if hardware acceleration
is used. The ixp4xx_crypto driver doesn't even provide the "aes"
ciphers. It only provides block ciphers, such as "cbc(des)".
It would be much better if mac80211 could encrypt the whole packet at a
time. Actually, that's what the WEP code is doing.
I realize that CCMP is a more sophisticated cipher, so maybe it's not so
easy. "ccm(aes)" is probably the closest thing to what is needed, but
it's not even a block cipher, it's an AEAD.
Unfortunately, I don't see any examples of AEAD use in the kernel other
than the crypto testing module. And I'm not even sure if "ccm(aes)" is
the right choice for CCMP.
I'll appreciate if somebody with a cryptographic background could have a
look at net/mac80211/aes_ccm.c and suggest whether it could be converted
to packet-at-a-time processing.
--
Regards,
Pavel Roskin
next reply other threads:[~2010-03-12 5:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 5:29 Pavel Roskin [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-12 10:49 Converting mac80211 CCMP to packet-at-a-time processing Roberto Sassu
2010-03-13 3:42 ` Pavel Roskin
2010-03-13 12:28 ` Herbert Xu
2010-03-16 6:21 ` Pavel Roskin
2010-03-18 8:19 ` 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=1268371762.6763.26.camel@mj \
--to=proski@gnu.org \
--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).