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

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

2010-03-10 Thread Herbert Xu
On Mon, Mar 01, 2010 at 02:14:36PM +0800, Huang Ying wrote: To take advantage of the hardware pipeline implementation of AES-NI instructions. CTR mode cryption is implemented in ASM to schedule multiple AES-NI instructions one after another. This way, some latency of AES-NI instruction can be

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

2010-02-28 Thread Huang Ying
To take advantage of the hardware pipeline implementation of AES-NI instructions. CTR mode cryption is implemented in ASM to schedule multiple AES-NI instructions one after another. This way, some latency of AES-NI instruction can be eliminated. Performance testing based on dm-crypt should 50%