From: Michal Ludvig <michal@logix.cz>
To: "David S. Miller" <davem@redhat.com>
Cc: netdev@oss.sgi.com
Subject: [PATCH] sha2-256 truncation
Date: Fri, 09 Jan 2004 09:50:58 +0100 [thread overview]
Message-ID: <3FFE6B72.9030808@logix.cz> (raw)
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
Hi,
the attached trivial patch corrects the truncation size of computed
hashes that are used in IPsec ESP/AH packets for SHA2-256. All other
hash algorithms use 96 bits as well as does SuperFreeS/WAN and FreeBSD
also for SHA2-256. Only the native Linux sha2-256 used 128 bits what led
to incompatibility with other IPsec implementations.
Please apply, thanks!
Michal Ludvig
--
* A mouse is a device used to point at the xterm you want to type in.
* Personal homepage - http://www.logix.cz/michal
[-- Attachment #2: kernel-sha256.diff --]
[-- Type: text/plain, Size: 324 bytes --]
--- linux-2.6.0/net/xfrm/xfrm_algo.c 2004-01-08 01:29:52.067261651 +0100
+++ linux-2.6.0.orig/net/xfrm/xfrm_algo.c 2004-01-08 01:28:38.668690081 +0100
@@ -85,7 +85,7 @@ static struct xfrm_algo_desc aalg_list[]
.uinfo = {
.auth = {
- .icv_truncbits = 96,
+ .icv_truncbits = 128,
.icv_fullbits = 256,
}
},
next reply other threads:[~2004-01-09 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 8:50 Michal Ludvig [this message]
2004-01-09 10:12 ` [PATCH] sha2-256 truncation Michal Ludvig
2004-01-10 4:51 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FFE6B72.9030808@logix.cz \
--to=michal@logix.cz \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).