All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
@ 2008-06-01 17:16 Adrian-Ken Rueegsegger
  2008-06-01 17:16 ` Adrian-Ken Rueegsegger
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-06-01 17:16 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto

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 working IPsec environment could test this patch.

-Adrian


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-01 17:16 [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160 Adrian-Ken Rueegsegger
@ 2008-06-01 17:16 ` Adrian-Ken Rueegsegger
  2008-06-02  5:49   ` Herbert Xu
  2008-06-02  6:51   ` Sebastian Siewior
  0 siblings, 2 replies; 12+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-06-01 17:16 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, 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 <rueegsegger@swiss-it.ch>
---
 net/xfrm/xfrm_algo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
index ac765dd..23a2cc0 100644
--- a/net/xfrm/xfrm_algo.c
+++ b/net/xfrm/xfrm_algo.c
@@ -200,8 +200,8 @@ static struct xfrm_algo_desc aalg_list[] = {
 	}
 },
 {
-	.name = "hmac(ripemd160)",
-	.compat = "ripemd160",
+	.name = "hmac(rmd160)",
+	.compat = "rmd160",
 
 	.uinfo = {
 		.auth = {
-- 
1.5.2.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-01 17:16 ` Adrian-Ken Rueegsegger
@ 2008-06-02  5:49   ` Herbert Xu
  2008-06-02  6:51   ` Sebastian Siewior
  1 sibling, 0 replies; 12+ messages in thread
From: Herbert Xu @ 2008-06-02  5:49 UTC (permalink / raw)
  To: Adrian-Ken Rueegsegger; +Cc: linux-crypto

On Sun, Jun 01, 2008 at 07:16:18PM +0200, Adrian-Ken Rueegsegger wrote:
> 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 <rueegsegger@swiss-it.ch>

Please submit this patch to davem@davemloft.net and cc
netdev@vger.kernel.org.  Thanks!
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-01 17:16 ` Adrian-Ken Rueegsegger
  2008-06-02  5:49   ` Herbert Xu
@ 2008-06-02  6:51   ` Sebastian Siewior
  2008-06-02  7:02     ` Adrian-Ken Rueegsegger
  1 sibling, 1 reply; 12+ messages in thread
From: Sebastian Siewior @ 2008-06-02  6:51 UTC (permalink / raw)
  To: Adrian-Ken Rueegsegger; +Cc: herbert, linux-crypto

* 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).
>
>Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
>---
> net/xfrm/xfrm_algo.c |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
>index ac765dd..23a2cc0 100644
>--- a/net/xfrm/xfrm_algo.c
>+++ b/net/xfrm/xfrm_algo.c
>@@ -200,8 +200,8 @@ static struct xfrm_algo_desc aalg_list[] = {
> 	}
> },
> {
>-	.name = "hmac(ripemd160)",
>-	.compat = "ripemd160",
>+	.name = "hmac(rmd160)",
>+	.compat = "rmd160",

On the other hand you could rename the algorithm itself couldn't you?

Sebastian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02  6:51   ` Sebastian Siewior
@ 2008-06-02  7:02     ` Adrian-Ken Rueegsegger
  2008-06-02  7:04       ` Herbert Xu
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-06-02  7:02 UTC (permalink / raw)
  To: Sebastian Siewior; +Cc: herbert, linux-crypto

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).
>>
>> Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
>> ---
>> net/xfrm/xfrm_algo.c |    4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
>> index ac765dd..23a2cc0 100644
>> --- a/net/xfrm/xfrm_algo.c
>> +++ b/net/xfrm/xfrm_algo.c
>> @@ -200,8 +200,8 @@ static struct xfrm_algo_desc aalg_list[] = {
>> 	}
>> },
>> {
>> -	.name = "hmac(ripemd160)",
>> -	.compat = "ripemd160",
>> +	.name = "hmac(rmd160)",
>> +	.compat = "rmd160",
> 
> On the other hand you could rename the algorithm itself couldn't you?

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?

Thanks,
Adrian

> 
> Sebastian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02  7:02     ` Adrian-Ken Rueegsegger
@ 2008-06-02  7:04       ` Herbert Xu
  2008-06-02  7:09         ` Adrian-Ken Rueegsegger
  0 siblings, 1 reply; 12+ messages in thread
From: Herbert Xu @ 2008-06-02  7:04 UTC (permalink / raw)
  To: Adrian-Ken Rueegsegger; +Cc: Sebastian Siewior, linux-crypto

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 think the rmd name is fine.  The existing entry in IPsec has
never worked (since we didn't have the implementation) so it
isn't an issue.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02  7:04       ` Herbert Xu
@ 2008-06-02  7:09         ` Adrian-Ken Rueegsegger
  2008-06-02  7:11           ` Herbert Xu
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-06-02  7:09 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Sebastian Siewior, linux-crypto

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 think the rmd name is fine.  The existing entry in IPsec has
> never worked (since we didn't have the implementation) so it
> isn't an issue.

Ok thanks for the clarification. I will resubmit the patch to the addresses you specified.
I assume linux-crypto should also be cc'd?

Adrian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02  7:09         ` Adrian-Ken Rueegsegger
@ 2008-06-02  7:11           ` Herbert Xu
  0 siblings, 0 replies; 12+ messages in thread
From: Herbert Xu @ 2008-06-02  7:11 UTC (permalink / raw)
  To: Adrian-Ken Rueegsegger; +Cc: Sebastian Siewior, linux-crypto

On Mon, Jun 02, 2008 at 09:09:40AM +0200, Adrian-Ken Rueegsegger wrote:
> 
> Ok thanks for the clarification. I will resubmit the patch to the addresses you specified.
> I assume linux-crypto should also be cc'd?

Yes please.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
@ 2008-06-02  9:33 Adrian-Ken Rueegsegger
  2008-06-02  9:33 ` Adrian-Ken Rueegsegger
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-06-02  9:33 UTC (permalink / raw)
  To: davem; +Cc: herbert, netdev, linux-crypto

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. In the meantime it would be great if somebody who already
has a working IPsec environment could test this patch.

Thanks,
Adrian


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02  9:33 Adrian-Ken Rueegsegger
@ 2008-06-02  9:33 ` Adrian-Ken Rueegsegger
  2008-06-02 10:41   ` Herbert Xu
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian-Ken Rueegsegger @ 2008-06-02  9:33 UTC (permalink / raw)
  To: davem; +Cc: herbert, netdev, linux-crypto, 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 <rueegsegger@swiss-it.ch>
---
 net/xfrm/xfrm_algo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
index ac765dd..23a2cc0 100644
--- a/net/xfrm/xfrm_algo.c
+++ b/net/xfrm/xfrm_algo.c
@@ -200,8 +200,8 @@ static struct xfrm_algo_desc aalg_list[] = {
 	}
 },
 {
-	.name = "hmac(ripemd160)",
-	.compat = "ripemd160",
+	.name = "hmac(rmd160)",
+	.compat = "rmd160",
 
 	.uinfo = {
 		.auth = {
-- 
1.5.2.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02  9:33 ` Adrian-Ken Rueegsegger
@ 2008-06-02 10:41   ` Herbert Xu
  2008-06-04 19:05     ` David Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Herbert Xu @ 2008-06-02 10:41 UTC (permalink / raw)
  To: Adrian-Ken Rueegsegger; +Cc: davem, netdev, linux-crypto

On Mon, Jun 02, 2008 at 11:33:09AM +0200, Adrian-Ken Rueegsegger wrote:
> 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 <rueegsegger@swiss-it.ch>

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160
  2008-06-02 10:41   ` Herbert Xu
@ 2008-06-04 19:05     ` David Miller
  0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-06-04 19:05 UTC (permalink / raw)
  To: herbert; +Cc: rueegsegger, netdev, linux-crypto

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Mon, 2 Jun 2008 20:41:07 +1000

> On Mon, Jun 02, 2008 at 11:33:09AM +0200, Adrian-Ken Rueegsegger wrote:
> > 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 <rueegsegger@swiss-it.ch>
> 
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Applied, thanks everyone.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-06-04 19:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01 17:16 [RFC PATCH] [XFRM] xfrm_algo: correct usage of RIPEMD-160 Adrian-Ken Rueegsegger
2008-06-01 17:16 ` Adrian-Ken Rueegsegger
2008-06-02  5:49   ` Herbert Xu
2008-06-02  6:51   ` Sebastian Siewior
2008-06-02  7:02     ` Adrian-Ken Rueegsegger
2008-06-02  7:04       ` Herbert Xu
2008-06-02  7:09         ` Adrian-Ken Rueegsegger
2008-06-02  7:11           ` Herbert Xu
  -- strict thread matches above, loose matches on Subject: below --
2008-06-02  9:33 Adrian-Ken Rueegsegger
2008-06-02  9:33 ` Adrian-Ken Rueegsegger
2008-06-02 10:41   ` Herbert Xu
2008-06-04 19:05     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.