This is almost a repost of an earlier series. I got rid of the
aes_common module and the x86_64 selects the generic version.
Sebastian
Signed-off-by: Sebastian Siewior <[email protected]>
---
crypto/aes_generic.c | 325 +++++++++++++++++++++++++++-----------------------
1 files changed, 176 insertions(+), 149 deletions(-)
This patch exports four tables and the set_key() routine. This ressources
can be shared by other AES implementations (aes-x86_64 for instance).
The decryption key has been turned around (deckey[0] is the first piece
of the key instead of deckey[keylen+20]). The encrypt/decrypt functions
are looking now identical (except they are using different tables and
key).
Signed-off-by: Sebastian Siewior <[email protected]>
---
crypto/aes_generic.c | 249 ++++++++++++++++++++++++--------------------------
include/crypto/aes.h | 16 +++
2 files changed, 136 insertions(+), 129 deletions(-)
The setkey() function can be shared with the generic algorithm.
Signed-off-by: Sebastian Siewior <[email protected]>
---
arch/x86/crypto/aes-x86_64-asm_64.S | 68 ++++----
arch/x86/crypto/aes_64.c | 282 +----------------------------------
crypto/Kconfig | 1 +
3 files changed, 38 insertions(+), 313 deletions(-)
On Sun, Oct 28, 2007 at 01:30:09PM +0100, Sebastian Siewior wrote:
>
> The setkey() function can be shared with the generic algorithm.
>
> Signed-off-by: Sebastian Siewior <[email protected]>
Beautiful. All applied. Thanks Sebastian!
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
* Herbert Xu | 2007-11-08 21:26:33 [+0800]:
>On Sun, Oct 28, 2007 at 01:30:09PM +0100, Sebastian Siewior wrote:
>>
>> The setkey() function can be shared with the generic algorithm.
>>
>> Signed-off-by: Sebastian Siewior <[email protected]>
>
>Beautiful. All applied. Thanks Sebastian!
thx. There is also one for i586 (if you are in merge mode :))
Sebastian