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

2010-03-12 Thread Pavel Roskin
On Fri, 2010-03-12 at 11:49 +0100, Roberto Sassu wrote: > Hello > > i'm not expert with cryptographic modules, but i played sometime with the > "authenc" module, which is AEAD, and i applied it to the filesystem > "ecryptfs". > In the forwarded message i added a brief description of what i do an

ABLKCIPHER

2010-03-12 Thread Dimitrios Siganos
Hi, I am trying to write an ABLKCIPHER algorithm for my hardware crypto engine and I have a few questions: 1) In struct ablkcipher_alg, what do these fields do? I see some implementations use them and some not. Do I need to implement them? int (*givencrypt)(struct skcipher_givcrypt_reques

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

2010-03-12 Thread Roberto Sassu
Hello i'm not expert with cryptographic modules, but i played sometime with the "authenc" module, which is AEAD, and i applied it to the filesystem "ecryptfs". In the forwarded message i added a brief description of what i do and i hope this can be a useful example for you. --- Begin Message --

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

2010-03-12 Thread Avi Kivity
On 03/12/2010 10:50 AM, David Miller wrote: From: Avi Kivity Date: Fri, 12 Mar 2010 10:44:58 +0200 Strange, that people can install a new kernel, but not a new assembler. Someone shouldn't have to upgrade their tools to build the kernel. The kernel would still build, just witho

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

2010-03-12 Thread David Miller
From: Avi Kivity Date: Fri, 12 Mar 2010 10:44:58 +0200 > Strange, that people can install a new kernel, but not a new > assembler. Someone shouldn't have to upgrade their tools to build the kernel. And we work very hard to make sure this is the case except in the most unavoidable situations. --

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

2010-03-12 Thread Avi Kivity
On 03/12/2010 10:42 AM, David Miller wrote: From: Avi Kivity Date: Fri, 12 Mar 2010 10:37:33 +0200 Eventually you'll port the entire assembler into macros, as instructions are introduced more frequently that people upgrade their assemblers. Maybe we should disable the new features and warn

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

2010-03-12 Thread David Miller
From: Avi Kivity Date: Fri, 12 Mar 2010 10:37:33 +0200 > Eventually you'll port the entire assembler into macros, as > instructions are introduced more frequently that people upgrade their > assemblers. Maybe we should disable the new features and warn people > (and distros) to upgrade their too

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

2010-03-12 Thread Avi Kivity
On 03/12/2010 09:01 AM, Huang Ying wrote: 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 `m