Netdev List
 help / color / mirror / Atom feed
* [PATCH] [IPSEC]: Change the ICV length of sha256 to 128 bits
@ 2008-12-24  6:02 Jason Gunthorpe
  2008-12-24  8:59 ` Herbert Xu
  0 siblings, 1 reply; 6+ messages in thread
From: Jason Gunthorpe @ 2008-12-24  6:02 UTC (permalink / raw)
  To: herbert; +Cc: netdev

The existing setting is 96 bits which does not match the RFCs and is
not negotiable via IKEv2. RFC 4868 says the ICV should be 128 bits,
and IKEv2 uses AUTH_HMAC_SHA2_256_128 = 12 to identify it.

git blame says this setting was made before RFC 4868 was published,
so I'm not sure that it was chosen with any standard in mind.

NOTE: This 'breaks' the user space API, however at least StrongSwan
4.2.9's charon already associates AUTH_HMAC_SHA2_256_128 with
the transform name 'sha256'.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
---
 net/xfrm/xfrm_algo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
index 4141376..d136b72 100644
--- a/net/xfrm/xfrm_algo.c
+++ b/net/xfrm/xfrm_algo.c
@@ -187,7 +187,7 @@ static struct xfrm_algo_desc aalg_list[] = {
 
 	.uinfo = {
 		.auth = {
-			.icv_truncbits = 96,
+			.icv_truncbits = 128,
 			.icv_fullbits = 256,
 		}
 	},
-- 
1.5.4.2


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

end of thread, other threads:[~2008-12-29 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-24  6:02 [PATCH] [IPSEC]: Change the ICV length of sha256 to 128 bits Jason Gunthorpe
2008-12-24  8:59 ` Herbert Xu
2008-12-24 18:33   ` Jason Gunthorpe
2008-12-24 20:41     ` Herbert Xu
2008-12-29 13:05     ` Martin Willi
2008-12-29 20:47       ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox