From owner-freebsd-amd64@freebsd.org Tue Jan 10 18:35:08 2017 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F147CA82F4 for ; Tue, 10 Jan 2017 18:35:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F25419D3 for ; Tue, 10 Jan 2017 18:35:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0AIZ8oB080984 for ; Tue, 10 Jan 2017 18:35:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 215946] IPsec AH hmac-sha2 does not work with Linux Date: Tue, 10 Jan 2017 18:35:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jasonmader@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2017 18:35:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215946 Bug ID: 215946 Summary: IPsec AH hmac-sha2 does not work with Linux Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: jasonmader@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org IPsec AH doesn't appear to work with Linux when using the SHA2 hmac. On the FreeBSD side, add -n SRC DST ah 5000 -m transport -A hmac-sha2-384 0x96HEXKEY; never works with the Linux, ip xfrm state add src SRC dst DST proto ah spi 5000 auth-trunc "hmac(sha384= )" 0x96HEXKEY 192 mode transport I've tried a variety of truncation lengths (96, 128, 192) and hmac-sha2-256= but none worked. However by changing to "-A hmac-sha1 0x40HEXKEY" which has a default 96 bit truncation, AH worked between the two hosts. --=20 You are receiving this mail because: You are on the CC list for the bug.=