Re: [PATCH] crypto: Add AES-NI accelerated CTR mode

2010-03-11 Thread Herbert Xu
On Thu, Mar 11, 2010 at 12:15:10PM -0800, Andrew Morton wrote: + movq TCTR_LOW, INC + movq CTR, TCTR_LOW ^^ these two lines don't assemble with gas 2.16.1: arch/x86/crypto/aesni-intel_asm.S: Assembler messages: arch/x86/crypto/aesni-intel_asm.S:752: Error: suffix or operands

Converting mac80211 CCMP to packet-at-a-time processing

2010-03-11 Thread Pavel Roskin
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

[BUGFIX] Fix AES-NI CTR optimization compiling failure with gas 2.16.1

2010-03-11 Thread Huang Ying
Andrew Morton reported that AES-NI CTR optimization failed to compile with gas 2.16.1, the error message is as follow: arch/x86/crypto/aesni-intel_asm.S: Assembler messages: arch/x86/crypto/aesni-intel_asm.S:752: Error: suffix or operands invalid for `movq' arch/x86/crypto/aesni-intel_asm.S:753: