Re: [PATCH] crypto/arc4: now arc needs blockcipher support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Sebastian Andrzej Siewior <sebastian@xxxxxxxxxxxxx>:

On Wed, Jun 27, 2012 at 02:52:47PM +0800, Herbert Xu wrote:
> On a side note: do we pull in the blkcipher block mode for each cipher now to
> gain some extra performance like the openssl project? I was under the
> impression that is in general not worth it.

You mean normal block ciphers? Does it really make that much
of a difference?

Yes. Jussi added block mode for RC4 instead that auto block-mode that is
prefered over the "automatic" one that is generated otherwise. I don't know
how much performance it brings but I would be supprised if it is a lot on an
average CPU. With this patch in I think it is a matter of time until we get
the AES-CBC & and friends block mode optimized code (which should be a little
faster since comparing to calling a function call for the XORâ?¦) you get the
idea.

Sebastian


I made quick tests with aes_generic, added block iterating loop into aes_encrypt() and aes_decrypt() and registered ecb(aes). Encryption 0.97x vs auto block-mode, decryption 1.03x. So I'd think, for real block ciphers, it makes no difference if looping is in ecb-module or in cipher module. ARC4 performance difference can be found in d366db605c8c4a9878589bc4a87e55f6063184ac commit log.

-Jussi

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux