Re: [IPsec] Fw: Preshared key authentication in IKEv2

Tero Kivinen <kivinen@iki.fi> Mon, 02 November 2009 14:43 UTC

Return-Path: <kivinen@iki.fi>
X-Original-To: ipsec@core3.amsl.com
Delivered-To: ipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BF56628C14F for <ipsec@core3.amsl.com>; Mon, 2 Nov 2009 06:43:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.514
X-Spam-Level:
X-Spam-Status: No, score=-2.514 tagged_above=-999 required=5 tests=[AWL=0.085, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ggExzougp3+I for <ipsec@core3.amsl.com>; Mon, 2 Nov 2009 06:43:29 -0800 (PST)
Received: from mail.kivinen.iki.fi (fireball.acr.fi [83.145.195.1]) by core3.amsl.com (Postfix) with ESMTP id BA31828C0FC for <ipsec@ietf.org>; Mon, 2 Nov 2009 06:43:28 -0800 (PST)
Received: from fireball.kivinen.iki.fi (localhost [127.0.0.1]) by mail.kivinen.iki.fi (8.14.3/8.13.8) with ESMTP id nA2Ehh3d005234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Nov 2009 16:43:43 +0200 (EET)
Received: (from kivinen@localhost) by fireball.kivinen.iki.fi (8.14.3/8.12.11) id nA2EhhVM007432; Mon, 2 Nov 2009 16:43:43 +0200 (EET)
X-Authentication-Warning: fireball.kivinen.iki.fi: kivinen set sender to kivinen@iki.fi using -f
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <19182.61471.169867.876583@fireball.kivinen.iki.fi>
Date: Mon, 02 Nov 2009 16:43:43 +0200
From: Tero Kivinen <kivinen@iki.fi>
To: Valery Smyslov <svanru@gmail.com>
In-Reply-To: <1A567F18E9E144989D2F06830DB24CC6@trustworks.com>
References: <82DFB96E88E54DE98E9B6B5F766C3EB8@trustworks.com> <p06240896c710cc6eae34@[10.20.30.158]> <19182.59664.628328.76563@fireball.kivinen.iki.fi> <1A567F18E9E144989D2F06830DB24CC6@trustworks.com>
X-Mailer: VM 7.19 under Emacs 21.4.1
X-Edit-Time: 1 min
X-Total-Time: 0 min
Cc: ipsec@ietf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [IPsec] Fw: Preshared key authentication in IKEv2
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipsec>
List-Post: <mailto:ipsec@ietf.org>
List-Help: <mailto:ipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipsec>, <mailto:ipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Nov 2009 14:43:29 -0000

Valery Smyslov writes:
> Hi Paul and Tero,
> 
> thank you for your answers.
> 
> > > The PRF (or set of PRFs) is known by the receiving party. If the two
> > > parties always only use one PRF, it is known. The padding is not a
> > > universal solution for the reasons you give, but it works in the
> > > common case of peers who know each other's crypto choices.
> >
> > As Paul said recipient knows which algorithms it support, and it can
> 
> Sometimes it doesn't. I refer to implementations with pluggable
> crypto, when crypto providers are separated from IKE implementation
> and can be added/removed later.

Then you need to store the original shared key not the hashed version
of it.
-- 
kivinen@iki.fi