[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081224060225.GA26084@obsidianresearch.com>
Date: Tue, 23 Dec 2008 23:02:25 -0700
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: herbert@...dor.apana.org.au
Cc: netdev@...r.kernel.org
Subject: [PATCH] [IPSEC]: Change the ICV length of sha256 to 128 bits
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@...idianresearch.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists