From: Oleg Makarenko <mole@quadra.ru>
To: James Morris <jmorris@redhat.com>
Cc: Matt Domsch <Matt_Domsch@dell.com>,
davem@davemloft.net, linux-kernel@vger.kernel.org
Subject: Re: using crypto_digest() on non-kmalloc'd memory failures
Date: Tue, 19 Oct 2004 09:41:34 +0400 [thread overview]
Message-ID: <4174A90E.5080505@quadra.ru> (raw)
In-Reply-To: <Xine.LNX.4.44.0410181859030.25082-100000@thoron.boston.redhat.com>
James Morris wrote:
On Tue, 19 Oct 2004, Oleg Makarenko wrote:
>>Is there any better way to use crypto api for arc4 or similar ciphers?
>>Cipher block size is not always a natural choice for the crypto_yield().
>>Especially for fast ciphers (arc4) and small "block" sizes (arc4 again).
>>
>>
>
>ARC4 is a bit strange because it's a stream cipher. I guess we could add
>another encryption mode 'stream' which is optimized for one byte at a time
>operation.
>
>
>- James
>
>
That would probably require one more parameter to
cin_encrypt/cia_decrypt, something like "nblocks" which currently is
always 1 and one more struct crypto_alg field that would help upper
level to decide how many blocks it can safely encrypt/decrypt() at a
time before crypto_yield(). This value depends on algorithm speed and
should be chosen to make overhead smaller. It could be > 1 even for
fast block ciphers and should be > 1 for stream ciphers.
=oleg
next prev parent reply other threads:[~2004-10-19 5:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 19:29 using crypto_digest() on non-kmalloc'd memory failures Matt Domsch
2004-10-18 19:35 ` James Morris
2004-10-18 20:05 ` Oleg Makarenko
2004-10-18 20:16 ` David S. Miller
2004-10-18 23:04 ` James Morris
2004-10-19 5:41 ` Oleg Makarenko [this message]
2004-10-18 20:30 ` Brian Gerst
2004-10-18 22:10 ` Gene Heskett
2004-10-18 22:29 ` dupes (was Re: using crypto_digest() on non-kmalloc'd memory failures) Matt Domsch
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=4174A90E.5080505@quadra.ru \
--to=mole@quadra.ru \
--cc=Matt_Domsch@dell.com \
--cc=davem@davemloft.net \
--cc=jmorris@redhat.com \
--cc=linux-kernel@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