Re: [lisp] Fwd: I-D Action: draft-ietf-lisp-crypto-01.txt

Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Sat, 02 May 2015 07:22 UTC

Return-Path: <ilari.liusvaara@elisanet.fi>
X-Original-To: lisp@ietfa.amsl.com
Delivered-To: lisp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B0681A1A79 for <lisp@ietfa.amsl.com>; Sat, 2 May 2015 00:22:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.002
X-Spam-Level:
X-Spam-Status: No, score=-0.002 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham
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 5cV33CiY17nz for <lisp@ietfa.amsl.com>; Sat, 2 May 2015 00:22:57 -0700 (PDT)
Received: from emh04.mail.saunalahti.fi (emh04.mail.saunalahti.fi [62.142.5.110]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F9A81A1A64 for <lisp@ietf.org>; Sat, 2 May 2015 00:22:57 -0700 (PDT)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id DDD2F1A25C9; Sat, 2 May 2015 10:22:54 +0300 (EEST)
Date: Sat, 02 May 2015 10:22:54 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Dino Farinacci <farinacci@gmail.com>
Message-ID: <20150502072254.GA6857@LK-Perkele-VII>
References: <20150501225938.17488.33586.idtracker@ietfa.amsl.com> <E0214FD5-7C51-45FA-89EC-B3656B6A6766@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <E0214FD5-7C51-45FA-89EC-B3656B6A6766@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Archived-At: <http://mailarchive.ietf.org/arch/msg/lisp/0lKHbmESfPaUVnUFZLYaMfo6Wtk>
Cc: LISP mailing list list <lisp@ietf.org>
Subject: Re: [lisp] Fwd: I-D Action: draft-ietf-lisp-crypto-01.txt
X-BeenThere: lisp@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: List for the discussion of the Locator/ID Separation Protocol <lisp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lisp>, <mailto:lisp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/lisp/>
List-Post: <mailto:lisp@ietf.org>
List-Help: <mailto:lisp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lisp>, <mailto:lisp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 02 May 2015 07:22:59 -0000

On Fri, May 01, 2015 at 04:04:03PM -0700, Dino Farinacci wrote:
> Folks, this draft contains the following changes:
> 
> B.1.  Changes to draft-ietf-lisp-crypto-01.txt
> 
>    o  Posted May 2015.
> 
>    o  Create cipher suites and encode them in the Security LCAF.
> 
>    o  Add IV to beginning of packet header and ICV to end of packet.
> 
>    o  AEAD procedures are now part of encryption process.

At least I can follow how the algorithms work. Remaining issues/notes:
- It composes AEAD mode instaed of using ready-made one. The composed
  mode is if nothing else slow (SHA-1 is already slower than some
  ready-made AEAD modes).
- Key derivation looks to be missing hashing in important parameters
  (like group and exchange keys) into secrets.
- Some NIST-spec KDF? I think there are RFCs that describe KDFs.
- 1024-bit DH is regarded as quite weak nowadays.
- Two new ECDH functions from CFRG were recently annouced[1].
  Should be faster than DH1024/DH2048 with way smaller keys.




[1]

The lower security one (Curve25519, as is):

v^2 = u^3 + 486662u^2 + u (mod 2^255-19)

Secret key size: 255 bits.
Secret key masking: Bits 0, 1, 2 off, bit 254 on.
Point encoding: u as 32-octet little-endian base-256 integer.
Base point: u=9.

The higher security one:

v^2 = u^3 + 156326u^2 + u (mod 2^448-2^224-1)

Secret key size: 448 bits.
Secret key masking: Bits 0, 1 off, bit 447 on.
Point encoding: u as 56-octet little-endian base-256 integer.
Base point: u=5.