Re: [IPsec] New Version Notification for draft-tjhai-ipsecme-hybrid-qske-ikev2-03.txt

"Panos Kampanakis (pkampana)" <pkampana@cisco.com> Thu, 28 March 2019 02:53 UTC

Return-Path: <pkampana@cisco.com>
X-Original-To: ipsec@ietfa.amsl.com
Delivered-To: ipsec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E3978120189; Wed, 27 Mar 2019 19:53:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.49
X-Spam-Level:
X-Spam-Status: No, score=-14.49 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id reN5SUjgTV8X; Wed, 27 Mar 2019 19:53:01 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 91142120192; Wed, 27 Mar 2019 19:53:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=19374; q=dns/txt; s=iport; t=1553741581; x=1554951181; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=75Xkwd+oiiDxBS8RV3bd0WC4zXBnXM8gpKSNe5XZtm0=; b=Qh+SCxJFMElRQh5Qd63SYfty8upkQ/HlLSqq6Cu1hKRVGUErgAV/KHCo IHMowv8oUeJPzlQol0OhcpzKpuMXTVUCtMBgOAu3yTAJSpzB1Zijy1HjZ j9buPfwI4b4hQDUWAbqDtK3H0gPjoJYo4I2vxS1QW/SUdtAnphiDymFWA g=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AFAAAyNpxc/5hdJa1kGQEBAQEBAQEBAQEBAQcBAQEBAQGBUgMBAQEBAQsBgQ5TL2iBAycKhASVT5JFhXeBew0BAYRsAheFFyI1CA0BAQMBAQkBAwJtKIVKAQEBBCMEBkoCEAIBCBEEAQErAgICMB0IAgQBDQUIE4MIgRFkqi98Mx+KFoEvAYsxF4FAP4ERgxI+hB2DMYJXA4ogITGCB4QilBAJApM9IpQMiyyTOgIRFYEuIQMzKIEucBWDJ4IWFxOOC0ExjSiBLoEfAQE
X-IronPort-AV: E=Sophos;i="5.60,278,1549929600"; d="scan'208,217";a="540461946"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 28 Mar 2019 02:53:00 +0000
Received: from XCH-ALN-006.cisco.com (xch-aln-006.cisco.com [173.36.7.16]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTPS id x2S2r0Rx004478 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 28 Mar 2019 02:53:00 GMT
Received: from xch-aln-010.cisco.com (173.36.7.20) by XCH-ALN-006.cisco.com (173.36.7.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 27 Mar 2019 21:52:59 -0500
Received: from xch-aln-010.cisco.com ([173.36.7.20]) by XCH-ALN-010.cisco.com ([173.36.7.20]) with mapi id 15.00.1473.003; Wed, 27 Mar 2019 21:52:59 -0500
From: "Panos Kampanakis (pkampana)" <pkampana@cisco.com>
To: Tobias Heider <heidert@nm.ifi.lmu.de>, IPsecME WG <ipsec@ietf.org>
CC: "draft-tjhai-ipsecme-hybrid-qske-ikev2@ietf.org" <draft-tjhai-ipsecme-hybrid-qske-ikev2@ietf.org>, "stefan@gazdag.de" <stefan@gazdag.de>
Thread-Topic: [IPsec] New Version Notification for draft-tjhai-ipsecme-hybrid-qske-ikev2-03.txt
Thread-Index: AQHU5MKzwokFFDmjq0KUYKKplIZSzqYgVeeA
Date: Thu, 28 Mar 2019 02:52:59 +0000
Message-ID: <f1510df032fb4588be527ee0f0871d35@XCH-ALN-010.cisco.com>
References: <154748799416.9552.17299073748247797491.idtracker@ietfa.amsl.com> <000101d4ad6b$4a790ca0$df6b25e0$@gmail.com> <13654392-83f1-6995-6ca5-f72b2b0be7eb@nm.ifi.lmu.de>
In-Reply-To: <13654392-83f1-6995-6ca5-f72b2b0be7eb@nm.ifi.lmu.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.82.230.81]
Content-Type: multipart/alternative; boundary="_000_f1510df032fb4588be527ee0f0871d35XCHALN010ciscocom_"
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.16, xch-aln-006.cisco.com
X-Outbound-Node: rcdn-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipsec/sG9hsKLRUVk95KOSRvezRya8ESs>
Subject: Re: [IPsec] New Version Notification for draft-tjhai-ipsecme-hybrid-qske-ikev2-03.txt
X-BeenThere: ipsec@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IPsec protocols <ipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipsec>, <mailto:ipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/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: Thu, 28 Mar 2019 02:53:07 -0000

> #4 Big Keys (e.G. Classic McEliece)
> In general there was consensus that we should find a way to enable the use of McEliece keys.
> The problem is that McEliece keys are >1MB in size and thus can not fit into the KE payload
> (which has a 16 bit size field).

Exchanging such big keys would unnecessarily slow down IKEv2 to a crawl. There are multiple candidates in the NIST PQ Project that offer pk+ct sizes of a few kilobytes. It is likely that some will be standardized. Classic McEliece performance seems much slower than other candidates as well. Sorry I missed it, but why was it decided that supporting Classic McEliece is a must?

Panos


From: IPsec <ipsec-bounces@ietf.org> On Behalf Of Tobias Heider
Sent: Wednesday, March 27, 2019 1:30 PM
To: IPsecME WG <ipsec@ietf.org>
Cc: draft-tjhai-ipsecme-hybrid-qske-ikev2@ietf.org; stefan@gazdag.de
Subject: Re: [IPsec] New Version Notification for draft-tjhai-ipsecme-hybrid-qske-ikev2-03.txt

Hi,

we had a side meeting today where some of us shared our experiences implementing this
draft and we had the chance to discuss the future of this draft with the authors.
Here's what we have talked about and our results:

#1 Nonces in IKE_INTERMEDIATE and CHILD_SA exchanges:

The current draft proposes to send a pair of new nonces in every subsequent IKE_INTERMEDIATE exchange.
We agreed that none of us sees any obvious security problems with only using the nonces exchanged in
IKE_SA_INIT, but we should try to get this confirmed by cryptologists (maybe CFRG can help).

#2 Using a single IKE_INTERMEDIATE to transport all additional keys

One single big IKE_INTERMEDIATE message that transports all additional key exchanges would be enough to
allow big keys to be fragmented. The main problem of this approach is that fragmentation handles lost
fragments by resending all fragments. There is no way of requesting retransmission of a single fragment.
This may turn out to be a problem, which is why each new key is sent in a separate IKE_INTERMEDIATE.
Another solution might be to change fragmentation to allow retransmission of single fragments.

#3 Using a reserved field to avoid 7 new transform types

It was discussed whether it makes sense to use a reserved field in the transform substructure header
to combine transforms of the same transform type (e.g. Diffie-Hellman group) with logical AND instead of OR.
We agreed that the current solution is less work to implement and using the reserved field offers no
functional benefit.

#4 Big Keys (e.G. Classic McEliece)

In general there was consensus that we should find a way to enable the use of McEliece keys.
The problem is that McEliece keys are >1MB in size and thus can not fit into the KE payload
(which has a 16 bit size field).

The solution we came up with is fragmenting a single key over several KE payloads which are transmitted
in a single IKE_INTERMEDIATE message that can be fragmented over several udp datagrams using
IKEv2 fragmentation:

HDR, SK {KE(Fragment 1), KE(Fragment 2), KE(Fragment 3)} -->

        <-- HDR, SK {KE(Fragment 1), KE(Fragment 2), KE(Fragment 3)}


This approach is only limited by the size field of the IKEv2 header, which is 32 bit.

#5 Rekeying and CREATE_CHILD_SA

Nonces should be handled as said in #1.
The draft does not yet specify how the new SKEYSEED is generated.
We agreed that the best way would be to do this in a single prf (different than in the INTERMEDIATE
exchanges which are "rekeying" incrementally), e.G. :

    SKEYSEED = prf(SK_d(old), KE1result | KE2result | ... | Ni |Nr)

The use of INFORMATIONAL exchange for the additional key exchanges was criticized.
Several alternative designs were discussed, here's the most important ones:

Design 1: Sending all in a single exchange:

HDR(CREATE_CHILD_SA), SK {SA, Ni, KEi, KEi2, KEi3, KEi4} -->
    <-- HDR(CREATE_CHILD_SA), SK {SA, Nr, KEr, KEr2, KEr3, KEr4}

Problems include that the initiator might generate keys that are then not accepted by the responder.
Also the message would probably be very big, so the same problems as in #2 apply here.
It was discussed what happens if the responder does not accept the proposal.
As in normal IKEv2 the INVALID_KE notify can be sent by the responder and that CREATE_CHILD_SA
has to be redone with the new knowledge of what the responder supports.

Design 2: Single additional INFORMATIONAL

HDR(CREATE_CHILD_SA), SK {SA, Ni, KEi} -->
    <-- HDR(CREATE_CHILD_SA), SK {SA, Nr, KEr, N(ADDITIONAL_KE)(link1)}

HDR(INFORMATIONAL), SK {KEi2, KEi3, KEi4, N(ADDITIONAL_KE)(link1)} -->
    <-- HDR(INFORMATIONAL), SK {KEr2, KEr3, KEr4}

Implementers might have problems with the complexity of using the (link1) cookie
values as well as with the use of INFORMATIONAL for yet another thing.

Feel free to correct us or comment if we made a mistake or missed something important!
Thanks to everyone for joining the conversation!

Regards,
Tobias and Stefan