Herbert Xu wrote:
On Wed, Mar 15, 2006 at 10:00:09PM +0100, Dag Arne Osvik wrote:
Using the best average encryption time per block from tcrypt's speed
tests gave these numbers:
ECB on Intel 288.5
ECB on AMD 286.1
CBC on Intel 510.4
CBC on AMD 334.2
Sorry for the confusion.. All of these numbers are for code currently
in the kernel. However, it seems like only ECB on Intel used the
assembly version. With the asm module running also on the AMD machine,
time for ECB on AMD dropped to 187.5 cycles per block, though CBC still
runs at 334.2 per block.
Is the 187.5 figure with your code or the existing x86-64 asm module?
If it's the existing one, what are the figures above then?
187.5 is for the existing x86-64 asm module running on an AMD Athlon 64.
None of the above numbers are for my code, since I haven't made a
kernel module of it just yet, and hence can't report tcrypt testing
results for it.
The only real news I'm presenting is that my code performs CBC-like
encryption in about 233 cycles on a 64-bit Intel Celeron. Apart from
that, I was very surprised that CBC-mode encryption in the kernel is so
slow compared to ECB. The difference is really just four xor operations
per block.
Dag Arne
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html