Re: [PATCH] x86, crypto: ported aes-ni implementation to x86

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

 



Mathias Krause <minipli@xxxxxxxxxxxxxx> wrote:
> The AES-NI instructions are also available in legacy mode so the x86
> architecture may profit from those, too.
> 
> To illustrate the performance gain here's a short summary of the tcrypt
> speed test on a Core i5 M 520 running at 2.40GHz comparing both
> assembler implementations:
> 
>                             aes-i586   aes-ni-i586   delta
> 256 bit, 8kB blocks, ECB:  46.81 MB/s   164.46 MB/s   +251%
> 256 bit, 8kB blocks, CBC:  43.89 MB/s    62.18 MB/s    +41%
> 384 bit, 8kB blocks, LRW:  42.24 MB/s   142.90 MB/s   +238%
> 512 bit, 8kB blocks, XTS:  43.41 MB/s   148.67 MB/s   +242%
> 
> Signed-off-by: Mathias Krause <minipli@xxxxxxxxxxxxxx>

Nice work :)

I have to say though that I'll love this een more if we could
avoid duplicating those assembly files somehow.  Is this possible?

Oh and those CBC numbers look out of whack.  I'd expect CBC to be
way faster as it's done directly by the hardware unlike the
other modes.  What numbers do you get in 64-bit before/after
your patch?

If the hardware CBC is really so much slower then maybe we should
stop using it.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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