Re: sha512: make it work, undo percpu message schedule

2012-01-10 Thread Adrian-Ken Rueegsegger
On 01/11/2012 01:00 AM, Alexey Dobriyan wrote: > commit f9e2bca6c22d75a289a349f869701214d63b5060 > aka "crypto: sha512 - Move message schedule W[80] to static percpu area" > created global message schedule area. [snip] > I personally don't understand this changelog entry: > > "The message

[PATCH] crypto: ripemd - Set module author and update email address.

2010-12-26 Thread Adrian-Ken Rueegsegger
Signed-off-by: Adrian-Ken Rueegsegger --- crypto/rmd128.c |3 ++- crypto/rmd160.c |3 ++- crypto/rmd256.c |3 ++- crypto/rmd320.c |3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/crypto/rmd128.c b/crypto/rmd128.c index 1ceb673..8a0f68b 100644 --- a/crypto

Re: [BUG] SLOB breaks Crypto

2010-05-18 Thread Adrian-Ken Rueegsegger
Herbert Xu wrote: > On Tue, May 18, 2010 at 10:17:35AM +0200, Adrian-Ken Rueegsegger wrote: >> As noted in my other mail [1] it seems like the HMAC tests trigger these >> errors. > > Thanks for all the detective work! > > I think the problem is

Re: [BUG] SLOB breaks Crypto

2010-05-18 Thread Adrian-Ken Rueegsegger
Matt Mackall schrieb: > On Mon, 2010-05-17 at 23:50 +0200, Adrian-Ken Rueegsegger wrote: >> Geert Uytterhoeven wrote: >>> On Fri, Mar 19, 2010 at 02:33, Herbert Xu >>> wrote: >>>> On Thu, Mar 18, 2010 at 10:24:41PM +0100, michael-...@fami-braun.de wrote:

Re: [BUG] SLOB breaks Crypto

2010-05-17 Thread Adrian-Ken Rueegsegger
Geert Uytterhoeven wrote: > On Fri, Mar 19, 2010 at 02:33, Herbert Xu wrote: >> On Thu, Mar 18, 2010 at 10:24:41PM +0100, michael-...@fami-braun.de wrote: >>> Pekka Enberg schrieb: Even with CONFIG_DEBUG_SLAB enabled or with CONFIG_SLUB and CONFIG_SLUB_DEBUG_ON? >>> no, these options hav

Re: [BUG] SLOB breaks Crypto

2010-05-14 Thread Adrian-Ken Rueegsegger
Hi, Herbert Xu wrote: > On Thu, Mar 18, 2010 at 10:24:41PM +0100, michael-...@fami-braun.de wrote: >> Pekka Enberg schrieb: >>> Even with CONFIG_DEBUG_SLAB enabled or with CONFIG_SLUB and >>> CONFIG_SLUB_DEBUG_ON? >> no, these options have not been / are not enabled. > > Can you please try it wit

Re: [PATCH] crypto/arc4: convert this stream cipher into a block cipher

2010-02-12 Thread Adrian-Ken Rueegsegger
Hi, Sebastian Andrzej Siewior schrieb: > the state has been moved from ctx into iv. That way encrypt()/decrypt() can > deliver the same result for a given IV. This patch makes the cipher work with > dm-crypt not that it is a good thing. However, the performance may have > improved :) > The name is

[PATCH] crypto: Fix dead links.

2009-02-24 Thread Adrian-Ken Rueegsegger
Signed-off-by: Adrian-Ken Rueegsegger --- crypto/gf128mul.c |2 +- crypto/sha256_generic.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/gf128mul.c b/crypto/gf128mul.c index ecbeaa1..a90d260 100644 --- a/crypto/gf128mul.c +++ b/crypto/gf128mul.c

[PATCH] crypto: shash - fix module refcount

2009-01-30 Thread Adrian-Ken Rueegsegger
Module reference counting for shash is incorrect: when a new shash transformation is created the refcount is not increased as it should. Signed-off-by: Adrian-Ken Rueegsegger --- crypto/shash.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/crypto/shash.c b

[PATCH 2/2 v4] crypto: sha512 - Switch to shash

2008-12-07 Thread Adrian-Ken Rueegsegger
This patch changes sha512 and sha384 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/sha512_generic.c | 112 +-- 2 files changed, 60 insertions(+), 54 del

[PATCH 0/2 v4] Switch remaining algorithms to shash

2008-12-07 Thread Adrian-Ken Rueegsegger
This resend contains the fixed up sha512 patches to switch the last remaining algorithm to shash. The first patch is now correct also in the case of preemption. The second patch remains unchanged. Adrian -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a m

[PATCH 1/2 v4] crypto: sha512 - Move message schedule W[80] to static percpu area

2008-12-07 Thread Adrian-Ken Rueegsegger
The message schedule W (u64[80]) is too big for the stack. In order for this algorithm to be used with shash it is moved to a static percpu area. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/sha512_generic.c | 17 + 1 files changed, 9 insertions

[PATCH] crypto: sha512 - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes sha512 and sha384 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/sha512_generic.c | 112 +-- 2 files changed, 60 insertions(+), 54 del

[PATCH 0/1] Resend correct sha512 shash patch

2008-12-04 Thread Adrian-Ken Rueegsegger
I am resending patch 2 of the series since I accidentially submitted the sha512 shash patch which does not contain the needed Kconfig changes. My apologies for the mixup, Adrian -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [EMAIL PROTECTED]

[PATCH 4/4 v3] crypto: michael_mic - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes michael_mic to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/michael_mic.c | 72 - 2 files changed, 42 insertions(+), 32 deletions(-) diff -

[PATCH 3/4 v3] crypto: wp512 - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes wp512, wp384 and wp256 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/wp512.c | 121 ++-- 2 files changed, 66 insertions(+), 57 deletions(-)

[PATCH 2/4 v3] crypto: sha512 - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes sha512 and sha384 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/sha512_generic.c | 112 +-- 1 files changed, 59 insertions(+), 53 deletions(-) diff --git a/crypto/sha512_gen

[PATCH 1/4 v3] crypto: sha512 - Move message schedule W[80] to static percpu area

2008-12-04 Thread Adrian-Ken Rueegsegger
The message schedule W (u64[80]) is too big for the stack. In order for this algorithm to be used with shash it is moved to a static percpu area. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/sha512_generic.c | 17 + 1 files changed, 9 insertions

[PATCH 0/4 v3] Switch remaining algorithms to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This series contains the fixed up patches to convert the remaining hash algorithms to use shash. The first patch now moves the message schedule W from struct sha512_ctx to a static percpu area. The sha512 patch is adjusted to accomodate the changes from patch 1 while the last two patches remain u

Re: [PATCH 1/4 v2] crypto: sha512 - Remove W (message schedule) from struct sha512_ctx

2008-12-04 Thread Adrian-Ken Rueegsegger
Herbert Xu wrote: > On Thu, Dec 04, 2008 at 10:32:07AM +0100, Adrian-Ken Rueegsegger wrote: >> static void >> -sha512_transform(u64 *state, u64 *W, const u8 *input) >> +sha512_transform(u64 *state, const u8 *input) >> { >> u64 a, b, c, d, e, f, g,

[PATCH 4/4 v2] crypto: michael_mic - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes michael_mic to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/michael_mic.c | 72 - 2 files changed, 42 insertions(+), 32 deletions(-) diff -

[PATCH 3/4 v2] crypto: wp512 - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes wp512, wp384 and wp256 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/wp512.c | 121 ++-- 2 files changed, 66 insertions(+), 57 deletions(-)

[PATCH 2/4 v2] crypto: sha512 - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This patch changes sha512 and sha384 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig |2 +- crypto/sha512_generic.c | 107 -- 2 files changed, 57 insertions(+), 52 del

[PATCH 1/4 v2] crypto: sha512 - Remove W (message schedule) from struct sha512_ctx

2008-12-04 Thread Adrian-Ken Rueegsegger
The message schedule W[80] is calculated anew when sha512_transform is executed. Therefore it is local to that function and does not need to be defined in struct sha512_ctx. Note: the sha256 algorithm already does it this way. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> ---

[PATCH 0/4 v2] Switch remaining algorithms to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
This series contains the fixed up patches to convert the remaining hash algorithms to use the new shash interface. The first patch is left unchanged and removes the message schedule W from struct sha512_ctx. The last three patches now contain the needed Kconfig dependencies. Adrian -- To unsubsc

Re: [PATCH 4/4][RFC] crypto: michael_mic - Switch to shash

2008-12-04 Thread Adrian-Ken Rueegsegger
Herbert Xu wrote: > On Thu, Dec 04, 2008 at 01:18:12AM +0100, Adrian-Ken Rueegsegger wrote: >> struct michael_mic_ctx { >> +u32 l, r; >> +}; >> + >> +struct michael_mic_desc_ctx { >> u8 pending[4]; >> size_t pending_len; >> &g

Re: [PATCH 0/4] Switch remaining algorithms to shash

2008-12-03 Thread Adrian-Ken Rueegsegger
Hello Herbert, Herbert Xu wrote: > On Thu, Dec 04, 2008 at 01:18:08AM +0100, Adrian-Ken Rueegsegger wrote: >> The first patch removes the message schedule W from struct sha512_ctx >> since it gets calculated anew on each execution of sha512_transform. This >> reduces t

[PATCH 4/4][RFC] crypto: michael_mic - Switch to shash

2008-12-03 Thread Adrian-Ken Rueegsegger
This patch changes michael_mic to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/michael_mic.c | 72 - 1 files changed, 41 insertions(+), 31 deletions(-) diff --git a/crypto/michael_mic.c b/

[PATCH 3/4] crypto: wp512 - Switch to shash

2008-12-03 Thread Adrian-Ken Rueegsegger
This patch changes wp512, wp384 and wp256 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/wp512.c | 121 ++-- 1 files changed, 65 insertions(+), 56 deletions(-) diff --git a/crypto/wp5

[PATCH 2/4] crypto: sha512 - Switch to shash

2008-12-03 Thread Adrian-Ken Rueegsegger
This patch changes sha512 and sha384 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/sha512_generic.c | 107 -- 1 files changed, 56 insertions(+), 51 deletions(-) diff --git a/crypto/sha512_gener

[PATCH 1/4] crypto: sha512 - Remove W (message schedule) from struct sha512_ctx

2008-12-03 Thread Adrian-Ken Rueegsegger
The message schedule W[80] is calculated anew when sha512_transform is executed. Therefore it is local to that function and does not need to be defined in struct sha512_ctx. Note: the sha256 algorithm already does it this way. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> ---

[PATCH 0/4] Switch remaining algorithms to shash

2008-12-03 Thread Adrian-Ken Rueegsegger
This series converts the remaining hash algorithms to use the new shash interface. The first patch removes the message schedule W from struct sha512_ctx since it gets calculated anew on each execution of sha512_transform. This reduces the size of sha512_ctx considerably and will allow it to be reg

[PATCH 5/5] crypto: michael_mic - Switch to shash

2008-12-02 Thread Adrian-Ken Rueegsegger
This patch changes michael_mic to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/michael_mic.c | 63 ++--- 1 files changed, 33 insertions(+), 30 deletions(-) diff --git a/crypto/michael_mic.c b/

[PATCH 4/5] crypto: tgr192 - Switch to shash

2008-12-02 Thread Adrian-Ken Rueegsegger
This patch changes tgr192, tgr160 and tgr128 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/tgr192.c | 135 +-- 1 files changed, 71 insertions(+), 64 deletions(-) diff --git a/crypto/tg

[PATCH 3/5] crypto: sha256 - Switch to shash

2008-12-02 Thread Adrian-Ken Rueegsegger
This patch changes sha256 and sha224 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/sha256_generic.c | 104 +- 1 files changed, 56 insertions(+), 48 deletions(-) diff --git a/crypto/sha256_gener

[PATCH 2/5] crypto: md5 - Switch to shash

2008-12-02 Thread Adrian-Ken Rueegsegger
This patch changes md5 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/md5.c | 50 -- 1 files changed, 28 insertions(+), 22 deletions(-) diff --git a/crypto/md5.c b/crypto/md5.c index 3

[PATCH 1/5] crypto: md4 - Switch to shash

2008-12-02 Thread Adrian-Ken Rueegsegger
This patch changes md4 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/md4.c | 52 +--- 1 files changed, 29 insertions(+), 23 deletions(-) diff --git a/crypto/md4.c b/crypto/md4.c index a

[PATCH] crypto: sha1 - Switch to shash

2008-12-01 Thread Adrian-Ken Rueegsegger
This patch changes sha1 to the new shash interface. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/sha1_generic.c | 56 +++- 1 files changed, 31 insertions(+), 25 deletions(-) diff --git a/crypto/sha1_generic.c b/

[PATCH] libcrc32c: Fix "crc32c undefined" compilation error

2008-11-10 Thread Adrian-Ken Rueegsegger
es the compile error. This patch has been compile-tested only. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- lib/libcrc32c.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c index 38b17ab..244f548 100644 --- a

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-06-02 Thread Adrian-Ken Rueegsegger
Adrian-Ken Rueegsegger wrote: > Neil Horman wrote: >> On Sat, May 31, 2008 at 08:46:22AM +1000, Herbert Xu wrote: >>> On Fri, May 30, 2008 at 07:26:38PM +0200, Adrian-Ken Rüegsegger wrote: >>>> I was wondering why you created your own test vectors. Wouldn't >

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-06-02 Thread Adrian-Ken Rueegsegger
case 4 as requested. Sorry again for the trouble Thanks a lot for clearing this up! I don't know if this is appropriate but in any case: Acked-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> Adrian > > > Patch to add checking of DES3 test vectors using CBC mode. FIPS-

[RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160

2008-06-02 Thread Adrian-Ken Rueegsegger
This patch fixes the usage of RIPEMD-160 in xfrm_algo which in turn allows hmac(rmd160) to be used as authentication mechanism in IPsec ESP and AH (see RFC 2857). Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- net/xfrm/xfrm_algo.c |4 ++-- 1 files changed, 2 insertions

[RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160

2008-06-02 Thread Adrian-Ken Rueegsegger
This patch makes HMAC-RIPEMD-160 usable with IPsec/XFRM. The RIPEMD-160 implementation is currently in the cryptodev-2.6 tree. Since I have no IPsec test setup the patch has not (yet) been tested with IPsec and is thus marked as RFC. I will put together a test environment which will take some time

Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160

2008-06-02 Thread Adrian-Ken Rueegsegger
Herbert Xu wrote: > On Mon, Jun 02, 2008 at 09:02:08AM +0200, Adrian-Ken Rueegsegger wrote: >> Yes, that would be the other way to do it. Is there a preference or specific >> reason >> for renaming the hash algorithm than changing the reference to the algorithm? > > I

Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160

2008-06-02 Thread Adrian-Ken Rueegsegger
Sebastian Siewior wrote: > * Adrian-Ken Rueegsegger | 2008-06-01 19:16:18 [+0200]: > >> This patch fixes the usage of RIPEMD-160 in xfrm_algo which in turn >> allows hmac(rmd160) to be used as authentication mechanism in IPsec >> ESP and AH (see RFC 2857). >>

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-06-01 Thread Adrian-Ken Rueegsegger
Neil Horman wrote: > On Sun, Jun 01, 2008 at 06:09:46PM +0200, Adrian-Ken Rueegsegger wrote: >> Neil Horman wrote: >>> On Sun, Jun 01, 2008 at 03:10:14AM +0200, Adrian-Ken Rueegsegger wrote: >>>> Neil Horman wrote: [snip] >>>> These tests both seem to f

[RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160

2008-06-01 Thread Adrian-Ken Rueegsegger
This patch makes HMAC-RIPEMD-160 usable with IPsec/XFRM. Since I have no IPsec test setup the patch has not (yet) been tested with IPsec and is thus marked as RFC. I will put together a test environment which will take some time. In the meantime it would be great if somebody who already has a work

[RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160

2008-06-01 Thread Adrian-Ken Rueegsegger
This patch fixes the usage of RIPEMD-160 in xfrm_algo which in turn allows hmac(rmd160) to be used as authentication mechanism in IPsec ESP and AH (see RFC 2857). Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- net/xfrm/xfrm_algo.c |4 ++-- 1 files changed, 2 insertions

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-06-01 Thread Adrian-Ken Rueegsegger
Neil Horman wrote: > On Sun, Jun 01, 2008 at 03:44:23AM +0200, Adrian-Ken Rueegsegger wrote: >> Neil Horman wrote: >>> On Sat, May 31, 2008 at 08:46:22AM +1000, Herbert Xu wrote: >>>> On Fri, May 30, 2008 at 07:26:38PM +0200, Adrian-Ken Rüegsegger wrote: >>>

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-06-01 Thread Adrian-Ken Rueegsegger
Neil Horman wrote: > On Sun, Jun 01, 2008 at 03:10:14AM +0200, Adrian-Ken Rueegsegger wrote: >> Neil Horman wrote: >>> On Sat, May 24, 2008 at 10:06:25AM +1000, Herbert Xu wrote: >>>> Could you document the source of these vectors in the patch >>>&g

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-05-31 Thread Adrian-Ken Rueegsegger
Neil Horman wrote: > On Sat, May 31, 2008 at 08:46:22AM +1000, Herbert Xu wrote: >> On Fri, May 30, 2008 at 07:26:38PM +0200, Adrian-Ken Rüegsegger wrote: >>> I was wondering why you created your own test vectors. Wouldn't >>> standardized test vectors by NIST or ANSI be preferable? >> If you coul

Re: [PATCH] tcrypt: add self test for des3_ebe cipher operating in cbc mode

2008-05-31 Thread Adrian-Ken Rueegsegger
Neil Horman wrote: > On Sat, May 24, 2008 at 10:06:25AM +1000, Herbert Xu wrote: >> Could you document the source of these vectors in the patch >> description please? > > Sure, reposting > > Patch to add checking of DES3 test vectors using CBC mode. FIPS-140-2 > compliance mandates that any sup

[PATCH 2/3] [CRYPTO] rmd256: Fix endian problems

2008-05-20 Thread Adrian-Ken Rueegsegger
This patch fixes endian issues making rmd256 work properly on big-endian machines. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/rmd256.c | 37 + 1 files changed, 9 insertions(+), 28 deletions(-) diff --git a/crypto/rmd256.c b/

[PATCH 3/3] [CRYPTO] rmd320: Fix endian problems

2008-05-20 Thread Adrian-Ken Rueegsegger
This patch fixes endian issues making rmd320 work properly on big-endian machines. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/rmd320.c | 37 + 1 files changed, 9 insertions(+), 28 deletions(-) diff --git a/crypto/rmd320.c b/

[PATCH 0/3] [CRYPTO] ripemd: Fix endian issues

2008-05-20 Thread Adrian-Ken Rueegsegger
These patches fix the endian issues reported by Sebastian Siewior for the three remaining RIPEMD modules rmd160, rmd256 and rmd320. crypto/rmd160.c | 37 + crypto/rmd256.c | 37 + crypto/rmd320.c | 37 +-

[PATCH 1/3] [CRYPTO] rmd160: Fix endian problems

2008-05-20 Thread Adrian-Ken Rueegsegger
This patch fixes endian issues making rmd160 work properly on big-endian machines. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/rmd160.c | 37 + 1 files changed, 9 insertions(+), 28 deletions(-) diff --git a/crypto/rmd160.c b/

[PATCH] [CRYPTO] rmd128: Fix endian problems

2008-05-18 Thread Adrian-Ken Rueegsegger
This patch is based on Sebastian Siewior's patch and fixes endian issues making rmd128 work properly on big-endian machines. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- I put the le32_to_cpu call in the ROUND-define so code-size is smaller compared to Sebastians pa

[RESEND][PATCH 3/4][CRYPTO] tcrypt: Add test vectors for RIPEMD-256 and RIPEMD-320.

2008-05-08 Thread Adrian-Ken Rueegsegger
This patch adds test vectors for RIPEMD-256 and RIPEMD-320 hash algorithms. The test vectors are taken from <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html> Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/tcrypt.c | 21 - crypto/tcr

[RESEND][PATCH 2/4][CRYPTO] RIPEMD: Add support for RIPEMD-256 and RIPEMD-320.

2008-05-08 Thread Adrian-Ken Rueegsegger
This patch adds support for the extended RIPEMD hash algorithms RIPEMD-256 and RIPEMD-320. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Makefile |2 + crypto/rmd256.c | 362 crypto/rmd320.c

[RESEND][PATCH 1/4][CRYPTO] RIPEMD: put all common RIPEMD values in header file.

2008-05-08 Thread Adrian-Ken Rueegsegger
This patch puts all common RIPEMD values in the appropriate header file. Initial values and constants are the same for all variants of RIPEMD. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/rmd128.c | 16 crypto/rmd160.c

[RESEND][PATCH 4/4][CRYPTO] RIPEMD: Add Kconfig entries for extended RIPEMD hash algorithms

2008-05-08 Thread Adrian-Ken Rueegsegger
This patch adds Kconfig entries for RIPEMD-256 and RIPEMD-320. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index cfc521a..5

[RESEND][PATCH 0/4][CRYPTO] add support for extended RIPEMD hash algorithms

2008-05-08 Thread Adrian-Ken Rueegsegger
Resending because of missing sign-off. These patches add RIPEMD-256/320 support to the cryptoapi. The first patch extracts all common values of the RIPEMD algorithms to the proper header file. The second patch contains the actual implementation of the extended hash algorithms RIPEMD-256 and RIPE

[PATCH 5/5][CRYPTO] RIPEMD: Add Kconfig entries for extended RIPEMD hash algorithms

2008-05-07 Thread Adrian-Ken Rueegsegger
This patch adds Kconfig entries for RIPEMD-256 and RIPEMD-320. --- crypto/Kconfig | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index cfc521a..5963a95 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -264,6 +264

[PATCH 4/5][CRYPTO] tcrypt: Add test vectors for RIPEMD-256 and RIPEMD-320

2008-05-07 Thread Adrian-Ken Rueegsegger
This patch adds test vectors for RIPEMD-256 and RIPEMD-320 hash algorithms. The test vectors are taken from --- crypto/tcrypt.c | 21 - crypto/tcrypt.h | 136 +++ 2 files change

[PATCH 3/5][CRYPTO] RIPEMD: Add support for RIPEMD-256 and RIPEMD-320

2008-05-07 Thread Adrian-Ken Rueegsegger
implementation by Antoon Bosselaers, ESAT-COSIC + * + * Copyright (c) 2008 Adrian-Ken Rueegsegger + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the

[PATCH 1/5][CRYPTO] RIPEMD: fix Makefile entry for rmd128.o

2008-05-07 Thread Adrian-Ken Rueegsegger
This patch fixes module building for rmd128.o. --- crypto/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index c21b455..1efb556 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -27,7 +27,7 @@ obj-$(CONFIG_CRYPTO_XCBC) += xc

[PATCH 2/5][CRYPTO] RIPEMD: put all common RIPEMD values in header file

2008-05-07 Thread Adrian-Ken Rueegsegger
This patch puts all common RIPEMD values in the appropriate header file. Initial values and constants are the same for all variants of RIPEMD. --- crypto/rmd128.c | 16 crypto/rmd160.c | 20 ++-- include/crypto/ripemd.h | 17 +

[PATCH 0/5][CRYPTO] add support for extended RIPEMD hash algorithms

2008-05-07 Thread Adrian-Ken Rueegsegger
These patches add RIPEMD-256/320 support to the cryptoapi and fix the makefile entry for rmd128.o The first patch contains a fix for to crypto/Makefile so rmd128.o is dependent on CONFIG_CRYPTO_RMD128. The second patch extracts all common values of the RIPEMD algorithms to the proper header file.

[PATCH 0/3][CRYPTO] RIPEMD: add support for RIPEMD hash algorithms.

2008-05-04 Thread Adrian-Ken Rueegsegger
These patches add RIPEMD-128/160 support to the cryptoapi. The first patch contains the actual implementation of the hash algorithms. It is based on the sample implementation by Antoon Bosselaers (ESAT-COSIC) found at: The second p

[PATCH 2/3]CRYPTO] RIPEMD: add test vectors for RIPEMD-128 and RIPEMD-160.

2008-05-04 Thread Adrian-Ken Rueegsegger
This patch adds test vectors for RIPEMD-128 and RIPEMD-160 hash algorithms and digests (HMAC). The test vectors are taken from ISO:IEC 10118-3 (2004) and RFC2286. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/tcrypt.c | 31 ++- crypto/tcrypt.h

[PATCH 1/3][CRYPTO] RIPEMD: add support for RIPEMD hash algorithms.

2008-05-04 Thread Adrian-Ken Rueegsegger
This patch adds support for RIPEMD-128 and RIPEMD-160 hash algorithms. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Makefile |2 + crypto/rmd128.c | 343 + crypto/rmd160.c

[PATCH 3/3][CRYPTO] RIPEMD: add Kconfig entries for RIPEMD hash algorithms.

2008-05-04 Thread Adrian-Ken Rueegsegger
This patch adds Kconfig entries for RIPEMD-128 and RIPEMD-160. Signed-off-by: Adrian-Ken Rueegsegger <[EMAIL PROTECTED]> --- crypto/Kconfig | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index 864456c..c