
From nobody Tue Jan  1 03:34:03 2019
Return-Path: <bjorn.edstrom@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF93912DF71 for <cfrg@ietfa.amsl.com>; Tue,  1 Jan 2019 03:34:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.918
X-Spam-Level: 
X-Spam-Status: No, score=-0.918 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bjrn-se.20150623.gappssmtp.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 u-eE3g0UI4Lb for <cfrg@ietfa.amsl.com>; Tue,  1 Jan 2019 03:33:58 -0800 (PST)
Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B74C0127AC2 for <cfrg@irtf.org>; Tue,  1 Jan 2019 03:33:58 -0800 (PST)
Received: by mail-oi1-x233.google.com with SMTP id a77so23269498oii.5 for <cfrg@irtf.org>; Tue, 01 Jan 2019 03:33:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjrn-se.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=h7pm9TPqFe0pLODeW1kV3X3fYvPKE00HCzmXl6SRSHo=; b=cIaBxCyYjvUvM9PJAFON13tPtc7z5Y+74DeJh9GMN3heV4wvfswWe+YsExgB2tMooQ Z4l7pbRXH8eorefiekSfNxtVp6G8Gqgpftair1UNzKOXoOsJsMrmLldfk3n2SuSrgwWz TOLInpLCepHaNXqqfcS2bAfe99wNXs42P0ew1qh6TNiSNltaBBgW9C2DqyHhN3PIJ+Xo IMBCXzhLbjMhDKuGeKSPHBFv31d0A+IUPXTALzY+Sb0evfqmRHGRTv41Yr8ndIGAGEJm zJ/nGDkjeIgn1oFG0q/pW4UjQ71GhrUSyBxw64vOTFOYXomjQuz3v32EebmBEf6wpQ74 Z5hg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=h7pm9TPqFe0pLODeW1kV3X3fYvPKE00HCzmXl6SRSHo=; b=N8FLPr43JK+aaVv9mHjLoBew56od39niqb8KtSGrbwtQD7DRWuVuKOgICgQ9Iukguc Ho+Hhh+A/OZF+z6LJcGZOI3iSs/5ylAqwnyfmbiYwE/te5Qw/0QrmqIllT/mSn4xN6WX hx7t4/7hvAwn7aJ0PjoH2OrWGAl26qE8uW6HhNsntJKATID6eGa9pZp3gRR3mtLD1fZJ QZHb0wevtivOo0g5sNhP/GHEl2Q6bya3DMsQm0UCSEtOeLh0+vU7cpLuHkxnUZPbIxY9 hMilwf+aJA7WgL4j8CF/xrdFx5G3wxt+VFk9iqPx1IFpEpxwmv0O06u7ggBxSx+oCeSP Otxg==
X-Gm-Message-State: AA+aEWbFF1GBTc9lileIGYYPOaEbWNJLZlQTu7MEWQI+Re2rBT6CT8+p dx3WKmnSdxFYdm1s793uy6Ug9SaYlxqHlP8BOHJjcgFv
X-Google-Smtp-Source: AFSGD/UPr1tYEhoyr8i+59s4UUjYHjzNXVql3Ml5cQ9IKal4QzmDHiuR6IX3uOzztP/BcCOK3V+X+DBdEK2Nhev5WXU=
X-Received: by 2002:a54:4f86:: with SMTP id g6mr26287395oiy.205.1546342437706;  Tue, 01 Jan 2019 03:33:57 -0800 (PST)
MIME-Version: 1.0
From: =?UTF-8?B?QmrDtnJuIEVkc3Ryw7Zt?= <be@bjrn.se>
Date: Tue, 1 Jan 2019 12:33:46 +0100
Message-ID: <CAA4PzX2-k3O2EsZzhDyksDZfLYEfKjGOfrqwvdqh3e9_1WyEFw@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary="000000000000b362a3057e63e7d8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/KMArSENuHGZimRpN_y5nGZtS7Xw>
Subject: [Cfrg] AES-GCM-SIV: Expository interpretation of POLYVAL as an IUF construction
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Jan 2019 11:34:01 -0000

--000000000000b362a3057e63e7d8
Content-Type: text/plain; charset="UTF-8"

This is maybe obvious, stupid, or both, but I felt like sharing:

In the internet draft for AES-GCM-SIV, POLYVAL is explained as a function
POLYVAL(H, X_1. X_2...) and the AES-GCM-SIV construction is shown as a
special implementation of AES-CTR using this POLYVAL function in the
encrypt() and decrypt() step. This is tight, performant, and clear.

As an alternative way to explain the AES-GCM-SIV construction, consider
instead trying to implement it as much as possible as composition of
primitives. That is:

* Given a decently standard AES-CTR implementation
* ...And interpreting POLYVAL as an Init/Update/Finalize hash construction
- a primitive in it's own right

Then the entirety of AES-GCM-SIV can be implemented as a few lines of glue
code. Have a look:
https://github.com/bjornedstrom/aes-gcm-siv-py/blob/master/reference.py

Semi-philosophical point: This approach is only reasonable if you "lift"
POLYVAL into a valuable and generic primitive on it's own, that is not just
a detail of AES-GCM-SIV but something that is useful in it's own. For
cognitive load reasons, then POLYVAL can be treated as a black box similar
to hash functions in general, instead of something that is "part of"
AES-GCM-SIV. </weird crackpot comment>

Cheers
Bjorn

--000000000000b362a3057e63e7d8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">This is maybe obvious, stupid, or both, b=
ut I felt like sharing:<div><br></div><div>In the internet draft for AES-GC=
M-SIV, POLYVAL is explained as a function POLYVAL(H, X_1. X_2...) and the A=
ES-GCM-SIV construction is shown as a special implementation of AES-CTR usi=
ng this POLYVAL function in the encrypt() and decrypt() step. This is tight=
, performant, and clear.</div><div><br></div><div>As an alternative way to =
explain the AES-GCM-SIV construction, consider instead trying to implement =
it as much as possible as composition of primitives. That is:</div><div><br=
></div><div>* Given a decently standard AES-CTR implementation</div><div>* =
...And interpreting POLYVAL as an Init/Update/Finalize hash construction - =
a primitive in it&#39;s own right</div><div><br></div><div>Then the entiret=
y of AES-GCM-SIV can be implemented as a few lines of glue code. Have a loo=
k:=C2=A0<a href=3D"https://github.com/bjornedstrom/aes-gcm-siv-py/blob/mast=
er/reference.py">https://github.com/bjornedstrom/aes-gcm-siv-py/blob/master=
/reference.py</a></div><div><br></div><div>Semi-philosophical point: This a=
pproach is only reasonable if you &quot;lift&quot; POLYVAL into a valuable =
and generic primitive on it&#39;s own, that is not just a detail of AES-GCM=
-SIV but something that is useful in it&#39;s own. For cognitive load reaso=
ns, then POLYVAL can be treated as a black box similar to hash functions in=
 general, instead of something that is &quot;part of&quot; AES-GCM-SIV. &lt=
;/weird crackpot comment&gt;</div><div><br></div><div>Cheers</div><div>Bjor=
n</div><div><br></div></div></div>

--000000000000b362a3057e63e7d8--


From nobody Mon Jan  7 07:59:31 2019
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cfrg@ietf.org
Delivered-To: cfrg@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 64F3D130EFE; Mon,  7 Jan 2019 07:59:29 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: cfrg@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.89.2
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cfrg@ietf.org
Message-ID: <154687676938.23204.6823013103206480616@ietfa.amsl.com>
Date: Mon, 07 Jan 2019 07:59:29 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/bYidVLg659giBdnEXGPRtpmcl_s>
Subject: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-15.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Jan 2019 15:59:29 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Crypto Forum RG of the IRTF.

        Title           : Hash-Based Signatures
        Authors         : David McGrew
                          Michael Curcio
                          Scott Fluhrer
	Filename        : draft-mcgrew-hash-sigs-15.txt
	Pages           : 60
	Date            : 2019-01-07

Abstract:
   This note describes a digital signature system based on cryptographic
   hash functions, following the seminal work in this area of Lamport,
   Diffie, Winternitz, and Merkle, as adapted by Leighton and Micali in
   1995.  It specifies a one-time signature scheme and a general
   signature scheme.  These systems provide asymmetric authentication
   without using large integer mathematics and can achieve a high
   security level.  They are suitable for compact implementations, are
   relatively simple to implement, and naturally resist side-channel
   attacks.  Unlike most other signature systems, hash-based signatures
   would still be secure even if it proves feasible for an attacker to
   build a quantum computer.

   This document is a product of the Crypto Forum Research Group (CFRG)
   in the IRTF.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-mcgrew-hash-sigs/

There are also htmlized versions available at:
https://tools.ietf.org/html/draft-mcgrew-hash-sigs-15
https://datatracker.ietf.org/doc/html/draft-mcgrew-hash-sigs-15

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-mcgrew-hash-sigs-15


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Wed Jan  9 05:39:50 2019
Return-Path: <session-request@ietf.org>
X-Original-To: cfrg@ietf.org
Delivered-To: cfrg@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id B4C7F126CB6; Wed,  9 Jan 2019 05:39:47 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: IETF Meeting Session Request Tool <session-request@ietf.org>
To: <session-request@ietf.org>
Cc: alexey.melnikov@isode.com, cfrg@ietf.org, irtf-chair@irtf.org, cfrg-chairs@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.89.2
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <154704118766.5000.5501364613671276963.idtracker@ietfa.amsl.com>
Date: Wed, 09 Jan 2019 05:39:47 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/hTDkc-cXXedUrQxoC9eQoXGbyNQ>
Subject: [Cfrg] cfrg - New Meeting Session Request for IETF 104
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jan 2019 13:39:48 -0000

A new meeting session request has just been submitted by Alexey Melnikov, a Chair of the cfrg working group.


---------------------------------------------------------
Working Group Name: Crypto Forum
Area Name: IRTF
Session Requester: Alexey Melnikov

Number of Sessions: 1
Length of Session(s):  1 Hour
Number of Attendees: 150
Conflicts to Avoid: 
 First Priority: suit extra dispatch jmap uta lamps quic saag tls mile




People who must be present:
  Alexey Melnikov
  Kenny Paterson

Resources Requested:

Special Requests:
  Please also avoid conflicts with Security Area BoFs and WG.
---------------------------------------------------------


From nobody Wed Jan  9 05:40:33 2019
Return-Path: <session-request@ietf.org>
X-Original-To: cfrg@ietf.org
Delivered-To: cfrg@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 20951124B0C; Wed,  9 Jan 2019 05:40:31 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: IETF Meeting Session Request Tool <session-request@ietf.org>
To: <session-request@ietf.org>
Cc: alexey.melnikov@isode.com, cfrg@ietf.org, irtf-chair@irtf.org, cfrg-chairs@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.89.2
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <154704123112.5356.5637980490007403973.idtracker@ietfa.amsl.com>
Date: Wed, 09 Jan 2019 05:40:31 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/hRTu0619vN_PwOtv_gRMahFTLus>
Subject: [Cfrg] cfrg - Update to a Meeting Session Request for IETF 104
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jan 2019 13:40:31 -0000

An update to a meeting session request has just been submitted by Alexey Melnikov, a Chair of the cfrg working group.


---------------------------------------------------------
Working Group Name: Crypto Forum
Area Name: IRTF
Session Requester: Alexey Melnikov

Number of Sessions: 1
Length of Session(s):  1 Hour
Number of Attendees: 150
Conflicts to Avoid: 
 First Priority: suit extra dispatch jmap uta lamps quic saag tls mile pearg




People who must be present:
  Alexey Melnikov
  Kenny Paterson

Resources Requested:

Special Requests:
  Please also avoid conflicts with Security Area BoFs and WG.
---------------------------------------------------------


From nobody Fri Jan 18 15:09:51 2019
Return-Path: <rlb@ipv.sx>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C6629131464 for <cfrg@ietfa.amsl.com>; Fri, 18 Jan 2019 15:09:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.04
X-Spam-Level: 
X-Spam-Status: No, score=-2.04 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ipv-sx.20150623.gappssmtp.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 Z_IgHKSmXoDn for <cfrg@ietfa.amsl.com>; Fri, 18 Jan 2019 15:09:47 -0800 (PST)
Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 447CF130EF2 for <cfrg@irtf.org>; Fri, 18 Jan 2019 15:09:47 -0800 (PST)
Received: by mail-oi1-x22f.google.com with SMTP id t204so10267892oie.7 for <cfrg@irtf.org>; Fri, 18 Jan 2019 15:09:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipv-sx.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=74IX4ObVZFj/61y9H0h1ADJ0E8fc3rHceQoqwczYXLM=; b=jrdqueaZmeN/B+iXslHKWSzWL5pp3l/nQ/4iE/T/a/TD1J8qWrL2PYGlvsvRX8r5++ PNOacCQX4W8sV9+5dNY2EGowp4hdNGJ12HhCBMcxCbR6B8R65yZ692oFy/irIh1+J4Yt ZDz29DRYOuwNo0DL9I5nwKdyrkUhlZm+Igz4WRaNTOr/MdEL2WAXC5nJwbAGYot/Pnel UHIupf5fjvZLFQobiu+VSLGNQt05gSPsBiCHja8faFl0wDWr7CvoHzxKuWIkTzeLL8E3 kzy4Ktae3sht0PpGiW3GQ4xNyqPaKK7o5BI7AO609cKneNrz86mZJt4HwWL1VFju5CUq aDLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=74IX4ObVZFj/61y9H0h1ADJ0E8fc3rHceQoqwczYXLM=; b=H6GStqzeG8jLS3IqMnJYN9LKUx9Fw6CZmTLDCHwD+8Mbp5vZHN8pg1wdHRlXD5hu/1 76o7TJv6CaBTK2rDMAJfCSPNaH9n8WCljFjnkeNasOLnvCAqwoR3mFMd2SfrfDbRXbS0 84iI3VgrDAXHw4zWALpBUpTe+wE0jK0fNKf7LtpVBhA/WylqGOXlyIXpIG/Gt54LI6kU 2+ZxYZGH1gjcwPMh6Fpo8ErkKXB+3tP9UaVcZi+MS63N3ZXddIDw5BAERbqRHnp0EEiI oQ+Yiyrl//M8Cv/W3cAKgIL9D/ERZvsTnqbaVwW845Qt5p2o40WA8+RDk6C+4AbktcIz qWfQ==
X-Gm-Message-State: AJcUukfOUP9ED3E+B3HtZrGGP+02M32GO5WRE0oI38JDa+BrqrHXuq2n +MQgmK/FlXZbmebwapyZpyrYdZQ2xHLvy1e5t8hEu/KYLZo=
X-Google-Smtp-Source: ALg8bN5uXy7HmaN+N/2w2ywc0MrD+4NHHKBmnjMvzVqIL80ZUF3jfvAttBxKXxFH9axOQXL/BsLkVP9NIQfSUUtjsxg=
X-Received: by 2002:aca:3708:: with SMTP id e8mr619171oia.51.1547852986243; Fri, 18 Jan 2019 15:09:46 -0800 (PST)
MIME-Version: 1.0
References: <154785288662.17422.6708791616711359704.idtracker@ietfa.amsl.com>
In-Reply-To: <154785288662.17422.6708791616711359704.idtracker@ietfa.amsl.com>
From: Richard Barnes <rlb@ipv.sx>
Date: Fri, 18 Jan 2019 18:09:34 -0500
Message-ID: <CAL02cgSm_ih91HDDYrJmc1NW164fYiiyt3-uTfhVwHbHJPnxyw@mail.gmail.com>
To: CFRG <cfrg@irtf.org>
Cc: Karthik Bhargavan <karthikeyan.bhargavan@inria.fr>
Content-Type: multipart/alternative; boundary="00000000000068f401057fc39b3f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/3SXM0I9jVs5i38SyahhMF1Q4fBc>
Subject: [Cfrg] Fwd: New Version Notification for draft-barnes-cfrg-hpke-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Jan 2019 23:09:50 -0000

--00000000000068f401057fc39b3f
Content-Type: text/plain; charset="UTF-8"

Hi CFRG folks,

I've just posted this draft that Karthik and I have been working on.  You
may recall my having mentioned it at the IETF in Bangkok; it took us a bit
longer than expected to get our ducks in a row :)

The idea here is to write a clean, easy-to-use spec for hybrid public-key
encryption.  (We're using the name "ECIES", but as the draft notes, the
idea is clearly more general.)  This primitive has come up in IETF work on
MLS and ESNI [0][1], and in several other protocols, e.g., through the NaCl
"box" API [2].  The hope here is to have a single spec that unifies these
ideas and can be the target of formal verification.

I admit that there's a little bit of XKCD#927 here [3], but I think there's
good work to do here in terms of addressing some more modern use cases
(e.g., streaming / multiple encryptions from a single DH) and possibly
enabling better post-quantum support by generalizing to KEM instead of DH.

This is obviously still at -00 quality, but we wanted to go ahead and ask
whether this was a topic of interest to folks in CFRG.

Thanks,
--Richard

[0]
https://github.com/mlswg/mls-protocol/blob/master/draft-ietf-mls-protocol.md#direct-paths
[1] https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1
[2] https://nacl.cr.yp.to/box.html
[3] https://xkcd.com/927/


---------- Forwarded message ---------
From: <internet-drafts@ietf.org>
Date: Fri, Jan 18, 2019 at 6:08 PM
Subject: New Version Notification for draft-barnes-cfrg-hpke-00.txt
To: Richard L. Barnes <rlb@ipv.sx>, Karthikeyan Bhargavan <
karthikeyan.bhargavan@inria.fr>



A new version of I-D, draft-barnes-cfrg-hpke-00.txt
has been successfully submitted by Richard L. Barnes and posted to the
IETF repository.

Name:           draft-barnes-cfrg-hpke
Revision:       00
Title:          Hybrid Public Key Encryption
Document date:  2019-01-18
Group:          Individual Submission
Pages:          10
URL:
https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.txt
Status:         https://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/
Htmlized:       https://tools.ietf.org/html/draft-barnes-cfrg-hpke-00
Htmlized:       https://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke


Abstract:
   This document describes a scheme for hybrid public-key encryption
   (HPKE).  This scheme provides authenticated public key encryption of
   arbitrary-sized plaintexts for a recipient public key.  HPKE works
   for any Diffie-Hellman group and has a strong security proof.  We
   provide instantiations of the scheme using standard and efficient
   primitives.




Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

The IETF Secretariat

--00000000000068f401057fc39b3f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi CFRG folks,<br><br>I&#39;ve just poste=
d this draft that Karthik and I have been working on.=C2=A0 You may recall =
my having mentioned it at the IETF in Bangkok; it took us a bit longer than=
 expected to get our ducks in a row :)<br><br>The idea here is to write a c=
lean, easy-to-use spec for hybrid public-key encryption.=C2=A0 (We&#39;re u=
sing the name &quot;ECIES&quot;, but as the draft notes, the idea is clearl=
y more general.)=C2=A0 This primitive has come up in IETF work on MLS and E=
SNI [0][1], and in several other protocols, e.g., through the NaCl &quot;bo=
x&quot; API [2].=C2=A0 The hope here is to have a single spec that unifies =
these ideas and can be the target of formal verification.<br><br>I admit th=
at there&#39;s a little bit of XKCD#927 here [3], but I think there&#39;s g=
ood work to do here in terms of addressing some more modern use cases (e.g.=
, streaming / multiple encryptions from a single DH) and possibly enabling =
better post-quantum support by generalizing to KEM instead of DH.<br><br>Th=
is is obviously still at -00 quality, but we wanted to go ahead and ask whe=
ther this was a topic of interest to folks in CFRG.<br><br>Thanks,<br>--Ric=
hard<br><br>[0] <a href=3D"https://github.com/mlswg/mls-protocol/blob/maste=
r/draft-ietf-mls-protocol.md#direct-paths">https://github.com/mlswg/mls-pro=
tocol/blob/master/draft-ietf-mls-protocol.md#direct-paths</a><br>[1] <a hre=
f=3D"https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1">https:=
//tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1</a><br>[2] <a href=
=3D"https://nacl.cr.yp.to/box.html">https://nacl.cr.yp.to/box.html</a><br>[=
3] <a href=3D"https://xkcd.com/927/">https://xkcd.com/927/</a><br><br><br><=
div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">---------- =
Forwarded message ---------<br>From: <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:internet-drafts@ietf.org">internet-drafts@ietf.org</a>&gt;</span><br>Date=
: Fri, Jan 18, 2019 at 6:08 PM<br>Subject: New Version Notification for dra=
ft-barnes-cfrg-hpke-00.txt<br>To: Richard L. Barnes &lt;rlb@ipv.sx&gt;, Kar=
thikeyan Bhargavan &lt;<a href=3D"mailto:karthikeyan.bhargavan@inria.fr">ka=
rthikeyan.bhargavan@inria.fr</a>&gt;<br></div><br><br><br>
A new version of I-D, draft-barnes-cfrg-hpke-00.txt<br>
has been successfully submitted by Richard L. Barnes and posted to the<br>
IETF repository.<br>
<br>
Name:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draft-barnes-cfrg-hpke<br>
Revision:=C2=A0 =C2=A0 =C2=A0 =C2=A000<br>
Title:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Hybrid Public Key Encryption<br>
Document date:=C2=A0 2019-01-18<br>
Group:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Individual Submission<br>
Pages:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10<br>
URL:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"https://www.ietf.o=
rg/internet-drafts/draft-barnes-cfrg-hpke-00.txt" rel=3D"noreferrer" target=
=3D"_blank">https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.=
txt</a><br>
Status:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://datatracker.iet=
f.org/doc/draft-barnes-cfrg-hpke/" rel=3D"noreferrer" target=3D"_blank">htt=
ps://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/</a><br>
Htmlized:=C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://tools.ietf.org/html/=
draft-barnes-cfrg-hpke-00" rel=3D"noreferrer" target=3D"_blank">https://too=
ls.ietf.org/html/draft-barnes-cfrg-hpke-00</a><br>
Htmlized:=C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://datatracker.ietf.org=
/doc/html/draft-barnes-cfrg-hpke" rel=3D"noreferrer" target=3D"_blank">http=
s://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke</a><br>
<br>
<br>
Abstract:<br>
=C2=A0 =C2=A0This document describes a scheme for hybrid public-key encrypt=
ion<br>
=C2=A0 =C2=A0(HPKE).=C2=A0 This scheme provides authenticated public key en=
cryption of<br>
=C2=A0 =C2=A0arbitrary-sized plaintexts for a recipient public key.=C2=A0 H=
PKE works<br>
=C2=A0 =C2=A0for any Diffie-Hellman group and has a strong security proof.=
=C2=A0 We<br>
=C2=A0 =C2=A0provide instantiations of the scheme using standard and effici=
ent<br>
=C2=A0 =C2=A0primitives.<br>
<br>
<br>
<br>
<br>
Please note that it may take a couple of minutes from the time of submissio=
n<br>
until the htmlized version and diff are available at <a href=3D"http://tool=
s.ietf.org" rel=3D"noreferrer" target=3D"_blank">tools.ietf.org</a>.<br>
<br>
The IETF Secretariat<br>
<br>
</div></div></div>

--00000000000068f401057fc39b3f--


From nobody Mon Jan 21 09:42:40 2019
Return-Path: <Kenny.Paterson@rhul.ac.uk>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 00C4212426E for <cfrg@ietfa.amsl.com>; Mon, 21 Jan 2019 09:42:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.043
X-Spam-Level: 
X-Spam-Status: No, score=-2.043 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 sZJGd4w5vCfy for <cfrg@ietfa.amsl.com>; Mon, 21 Jan 2019 09:42:35 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140051.outbound.protection.outlook.com [40.107.14.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4F268124C04 for <cfrg@irtf.org>; Mon, 21 Jan 2019 09:42:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MAg/Jd6qtYzJyCX0fngiFP4EIec7OSNip8yFpHi+QAs=; b=2vt0mvD5FrzsRPynjJzUAL1tGo8yTBqhYiZMWjHXIbQ0zNklbFTt1DHTrcLypMdbtKw+3rYfAXN6MR98zY+iMh1lVwqI/8pvCxSYcaoOJ3zk1xc599u5NOfHgcN09+C6fk8KS8Zgey3bJMMitq1aU8KFO8Ezmab3Of/cmq18S6E=
Received: from DB7PR03MB3561.eurprd03.prod.outlook.com (52.134.98.30) by DB7PR03MB5097.eurprd03.prod.outlook.com (20.178.46.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.29; Mon, 21 Jan 2019 17:42:31 +0000
Received: from DB7PR03MB3561.eurprd03.prod.outlook.com ([fe80::8894:68a2:ecba:a321]) by DB7PR03MB3561.eurprd03.prod.outlook.com ([fe80::8894:68a2:ecba:a321%3]) with mapi id 15.20.1537.031; Mon, 21 Jan 2019 17:42:31 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] SIV for non-AES ciphers first draft
Thread-Index: AQHUgof3gT2ET37vQEqzwdr77b2GJqWE6n+AgAABEQCAAAC1AIAr9amAgAl6XwA=
Date: Mon, 21 Jan 2019 17:42:31 +0000
Message-ID: <7BC3E788-0D90-4736-A339-B5BFA1CC0416@rhul.ac.uk>
References: <0D91AF7A-F26F-4E20-A009-B7D75BF8107D@gmail.com> <D78B82CF-7C62-41AB-8D65-ABD409618B7A@rhul.ac.uk> <E2CFB0E2-4F2A-4520-9735-03CF7A096070@gmail.com> <9A644EC9-97B5-4330-95C8-A4AC57F17EAC@rhul.ac.uk> <0AE677D2-AFF2-4D0F-89E3-04E304CFBC3A@gmail.com>
In-Reply-To: <0AE677D2-AFF2-4D0F-89E3-04E304CFBC3A@gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/10.15.0.190115
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-originating-ip: [92.2.118.154]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB7PR03MB5097; 6:9j7rnIWIaZrAN0B9oE0v4XrfN8J3W7EUn28xqI9ihfrRtrdZxJ+TwmyTI5YNPOQ84HC+emydCZLn0ZdfqkDn1lHT2wSpHxYXhixyXDM1faDFT8M7WdON3J6dDtzuHFx3A7PQCJVcoDtlY/XRbgHXhAAfLkdNrZFGwIalOFAaHok1AM2+4hK4bRKEVhLXtUADFDWZo7uxaMThSNZgndIvRO2y67Nh+SsyIu4ocSIetirIVmplyKuYoIvYzRG31h2MwFAjFUYmLtdwno93GrPr+eZZIqI+8CdoXGh9gTD5FNNrJCZBNZCqSp37Xx9a4fiDg+3hJPU6SCe5OZYIEcdqJe+ieMHnN8pXZq+xBp6jk5wnaO4RdFfii7Z7v+gX6a1E8g+8JkxRiH6axx9AfwuFIW8O/MQKzp5KGKDaBPJWO+owwnPjxNks+1R15UuVH8LPBAUZ+SlMQjwDJb7FlioBYw==; 5:M7Rx7UDmW6DPkptYmNqyoeKPqOcYwMf0bLVv4aQDKXSDfgNQF4XmRbdN1NJMtteBhAW2qMBqUg8poOyGNuo4VegrhBATo/w5N1pQSCrjNVJ0cXagRcN85MFWqmNL+NCFr5WLaI1kzpv7u50SNkIYglWh4N056CAeuZCrqu4h2OykyBUIRPwhxP8Hab0H2u+HX3GlrlfOEg7nyyK6VS1N0g==; 7:XJdWkDAJPGg1Zc4b+1RvRPx3oG1sGZU9kjlfOfSlKmOHwEKPKVXIt7iV8kct37tbGr5wp+IK+7A+vJY0KH+4xBKQRbdZ/ccv4Rv/hRH/41mD0dnpbtonkV629RzgG3LqH5DAz+OVIemadvqFMKGqRQ==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: ad00f0c6-1b02-47a7-6e0a-08d67fc7d1e9
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB7PR03MB5097; 
x-ms-traffictypediagnostic: DB7PR03MB5097:
x-microsoft-antispam-prvs: <DB7PR03MB5097A54DA98F16A128DB16A8BC9F0@DB7PR03MB5097.eurprd03.prod.outlook.com>
x-forefront-prvs: 0924C6A0D5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(366004)(396003)(136003)(39860400002)(346002)(376002)(199004)(189003)(229853002)(68736007)(6436002)(6486002)(6916009)(66066001)(33656002)(93886005)(71190400001)(71200400001)(83716004)(5640700003)(106356001)(105586002)(2351001)(4744005)(39060400002)(6246003)(305945005)(25786009)(4326008)(6512007)(486006)(14454004)(53936002)(7736002)(72206003)(478600001)(966005)(413944005)(6506007)(74482002)(6306002)(102836004)(26005)(186003)(476003)(2616005)(446003)(256004)(86362001)(99286004)(11346002)(76176011)(8676002)(8936002)(786003)(316002)(54906003)(58126008)(36756003)(82746002)(2501003)(6116002)(2906002)(1730700003)(81166006)(3846002)(81156014)(97736004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR03MB5097; H:DB7PR03MB3561.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: NY/T5QEUPdWS0izJ2a9JuQRPe5kLoTrZQI1fGR96JC1ayZ2B2QxsTlOc8nSEwUWeP+YUfxqAb7g2fhL0AJHOPcyNUEiI/RL555npK6vRsfvH18megCZFeuJ+tdJL/aVyo3iOWcnGx/jOcO2rOlJZCQVCx/siDa/9a6Dkt35F+CRq8GmKmtvLKOKhNu1bllwahg63UvE2ikduxuM0V3RkVL5O0J40m/wWoysPIXwmvahDAbjwqPbTu37OtrojT8o5i4XbAP2Vi5h+Ickcl0Vau+it5lGUciJrjCCIhGjypxzU8HxfLjkCre8SLYU5DDDjvePN64XPcfq1mmFd9/2jaKDF2IavWkgyl5m4rXBy+wJTUrG1Q+AkxgasVkCey4oz18K9pWCUDH4MR/Ijzfs80y/eksL9m5dphelB4mmsJN8=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <062FD65B6D90524FA0DDF9DDCA906DA9@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-Network-Message-Id: ad00f0c6-1b02-47a7-6e0a-08d67fc7d1e9
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jan 2019 17:42:31.5448 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR03MB5097
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/MNlCK6DsmRUHWySHVwMjWBn6sIk>
Subject: Re: [Cfrg] SIV for non-AES ciphers first draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Jan 2019 17:42:39 -0000

RGVhciBDRlJHLA0KDQpUaGlzIGVtYWlsIGJlZ2lucyBhIDItd2VlayBhZG9wdGlvbiBjYWxsIGZv
ciBkcmFmdC1tYWRkZW4tZ2VuZXJhbGlzZWQtc2l2IGF2YWlsYWJsZSBmcm9tDQoNCmh0dHBzOi8v
ZGF0YXRyYWNrZXIuaWV0Zi5vcmcvZG9jL2RyYWZ0LW1hZGRlbi1nZW5lcmFsaXNlZC1zaXYvDQoN
Cih3aXRoIGNvZGUgYXQ6IGh0dHBzOi8vZ2l0aHViLmNvbS9OZWlsTWFkZGVuL2RyYWZ0LW1hZGRl
bi1nZW5lcmFsaXNlZC1zaXYpDQoNClBsZWFzZSBleHByZXNzIHlvdXIgb3BpbmlvbnMgb24gd2hl
dGhlciB0aGlzIGRyYWZ0IHNob3VsZCBiZSBhZG9wdGVkIGJ5IENGUkcgb3Igbm90Lg0KDQpUaGFu
a3MsDQoNCktlbm55IChmb3IgdGhlIGNoYWlycykNCiAgICANCiAgICANCg0K


From nobody Tue Jan 22 11:26:44 2019
Return-Path: <bascule@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 96BAC130FAB for <cfrg@ietfa.amsl.com>; Tue, 22 Jan 2019 11:26:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 sPfGWSfUm-76 for <cfrg@ietfa.amsl.com>; Tue, 22 Jan 2019 11:26:41 -0800 (PST)
Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7FBBB130F94 for <cfrg@irtf.org>; Tue, 22 Jan 2019 11:26:40 -0800 (PST)
Received: by mail-ot1-x336.google.com with SMTP id v23so24703995otk.9 for <cfrg@irtf.org>; Tue, 22 Jan 2019 11:26:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2e/4t5DWFgbBoIKg8yT2Vz+jo6VcnfBwlPiOuyaxszo=; b=tR2jYKPqA+g3YPYBkcKegbtyZWNTbVN4YFOS9qslNXcMEWkrZntCNFG0mAVg/xhaFE W7n6P9+aDDwHrzJTPxETsIW/GbasBXVwQIiYj4BJvY3COR6fj72rm5mNJmGhti8Bc3Kt p38Fe/hrnTGQ2LTCIJBTQ5ySls1MNR31jQD0OvFF5szTZsIF/7t98ikOxvwkvPHekw8h yxLskg8dyhNoF1/hBTF1c8JPcOYTt/PHHA80f+l9P649V2g8bdkwpRxXXRptwAPQwuoK uiIfiby4LdODVMT2SahtJXVrgTrKMDYpWPgGOIQHeC46Rd47NWh9QLEG4IxJfJrNJuYl ziVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2e/4t5DWFgbBoIKg8yT2Vz+jo6VcnfBwlPiOuyaxszo=; b=Yns3hs566a+IRjNqPDWCltBdXqvwHRPAxmIbM1+mXxTb3mJGqQdXFHsKjqpm1y8mIa mMfDK3xbE8/N4GrDeUjAayOQdghMkjQTjvar61TElRxLS9/OEJKjgeVF9IdnnKWWg+jq m4DUVeUOCx6QTv/3d6j6NiQC1i4v9GmG7rNffehmziSw6WKXY33lGdjK9AQUO4hJK5PZ 79m8GhnCcv/gEzPUpFdN9xs8L57jKtmJrXLRiAXsMvUnmsnv4IMd28hP/Kydu7Kgpvyj gQLILl7LEw8eTya17j97vvzRtlUZbwm1M75JrM2GMPyR7mGCEJ0GBsuzj6X9ZQbUa2Iw YIMg==
X-Gm-Message-State: AJcUukfb6qphR8+FQCTN90164ealwyVPkHLN0QxzM+0PfRANTuJ+BcD1 2WthUy4VRwp1RQqjL6zI4DY+hwBHmKLkaOVEw5A=
X-Google-Smtp-Source: ALg8bN44sg9/LV+76Qp9Ag4vPchm7GRoebC6+n/aggNXppYUZuyr8jsD9HCPOxFVdrp2YBPRuDSVfSUwPTc9IWAHpDk=
X-Received: by 2002:a9d:191a:: with SMTP id j26mr24503111ota.81.1548185199610;  Tue, 22 Jan 2019 11:26:39 -0800 (PST)
MIME-Version: 1.0
References: <0D91AF7A-F26F-4E20-A009-B7D75BF8107D@gmail.com> <D78B82CF-7C62-41AB-8D65-ABD409618B7A@rhul.ac.uk> <E2CFB0E2-4F2A-4520-9735-03CF7A096070@gmail.com> <9A644EC9-97B5-4330-95C8-A4AC57F17EAC@rhul.ac.uk> <0AE677D2-AFF2-4D0F-89E3-04E304CFBC3A@gmail.com> <7BC3E788-0D90-4736-A339-B5BFA1CC0416@rhul.ac.uk>
In-Reply-To: <7BC3E788-0D90-4736-A339-B5BFA1CC0416@rhul.ac.uk>
From: Tony Arcieri <bascule@gmail.com>
Date: Tue, 22 Jan 2019 11:26:28 -0800
Message-ID: <CAHOTMV+82dLWgMEtg-sFYbp1_mhLWF0yY=QfUAqcUgQi44gt5w@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary="000000000000de8f6a058010f44c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/SRkOA__4KjUkHgQaMhlkqtB3skE>
Subject: Re: [Cfrg] SIV for non-AES ciphers first draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Jan 2019 19:26:44 -0000

--000000000000de8f6a058010f44c
Content-Type: text/plain; charset="UTF-8"

I support adoption of this draft as a WG item.

There are some alternative constructions I'd like to see explored, but I'd
be happy to help discuss/review and potentially even contribute to an I-D
on this topic.

On Mon, Jan 21, 2019 at 9:42 AM Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
wrote:

> Dear CFRG,
>
> This email begins a 2-week adoption call for draft-madden-generalised-siv
> available from
>
> https://datatracker.ietf.org/doc/draft-madden-generalised-siv/
>
> (with code at: https://github.com/NeilMadden/draft-madden-generalised-siv)
>
> Please express your opinions on whether this draft should be adopted by
> CFRG or not.
>
> Thanks,
>
> Kenny (for the chairs)
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>


-- 
Tony Arcieri

--000000000000de8f6a058010f44c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I support adoption of this draft as a WG item.<div><br></d=
iv><div>There are some alternative constructions I&#39;d like to see explor=
ed, but I&#39;d be happy to help discuss/review and potentially even contri=
bute to an I-D on this topic.</div></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Mon, Jan 21, 2019 at 9:42 AM Paterson=
, Kenny &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhu=
l.ac.uk</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">Dear CFRG,<br>
<br>
This email begins a 2-week adoption call for draft-madden-generalised-siv a=
vailable from<br>
<br>
<a href=3D"https://datatracker.ietf.org/doc/draft-madden-generalised-siv/" =
rel=3D"noreferrer" target=3D"_blank">https://datatracker.ietf.org/doc/draft=
-madden-generalised-siv/</a><br>
<br>
(with code at: <a href=3D"https://github.com/NeilMadden/draft-madden-genera=
lised-siv" rel=3D"noreferrer" target=3D"_blank">https://github.com/NeilMadd=
en/draft-madden-generalised-siv</a>)<br>
<br>
Please express your opinions on whether this draft should be adopted by CFR=
G or not.<br>
<br>
Thanks,<br>
<br>
Kenny (for the chairs)<br>
<br>
<br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature">Tony Arcieri<br></div>

--000000000000de8f6a058010f44c--


From nobody Tue Jan 22 13:09:36 2019
Return-Path: <bascule@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C60521310FC for <cfrg@ietfa.amsl.com>; Tue, 22 Jan 2019 13:09:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 C1-XIpKecE33 for <cfrg@ietfa.amsl.com>; Tue, 22 Jan 2019 13:09:31 -0800 (PST)
Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C3E4A1310FB for <cfrg@irtf.org>; Tue, 22 Jan 2019 13:09:31 -0800 (PST)
Received: by mail-ot1-x330.google.com with SMTP id s5so25001624oth.7 for <cfrg@irtf.org>; Tue, 22 Jan 2019 13:09:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HOWBST2NIpuvip8Q1DHepSiVuv2c7AQ07cuJ7XaKi1o=; b=Y5c8T9B/k/1RFA2Q5pzd+pHzU9D2ZduN49cqdQlJJWJF0tVndQfFaQvFAxCzAgWq94 jZcaALyZvENIMdVjA1mtYEFblMOQKNiSXTZ1/WIFRMFwp1xq+/gYVEmboJaktPMvS9Zq Vlwa+ZffjnPBceBGzOXG3JmlBffFOGoT9EU3oEXMda+Uze3+7gp693WTje9CeMRwUHst W3K+3Coeue5HGV/I3KGotDxkmNSQFP7VJhBms8tLVxSN5sWxSCMbUlOAbDmqJtJIk113 crN69pLMQj8dgyBVGWZnOA6r+v5aU7cV9127gaEvsqCw95vuAdqNDYIfR+GYiXgwH/oo Jz+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HOWBST2NIpuvip8Q1DHepSiVuv2c7AQ07cuJ7XaKi1o=; b=Upb1uMxlmSA0xr0eDaW8V8KV3HxmIbNzwHMTxiYGI4/+JhO6e+jywpav23q8XIE3FS t1+FkK6Zj2Lg2vyUjDudHHk3GYTdO3FeUj+H+0GzAcBok8Bzb0AebZfpMOd/GK600QYc g3Yg9hfFHbdMbghwRyAdcZuaRJCydtXIV63aOf5jobeV96o1ofJApxpL7r8WvWtwrb+J yHcpmj/s13XySl5cH3arNa6Du7tg8UmMFfzWJrMYh2ilRHYTVuPA3R0b4xeAooxulHbx 5kKZQEW7z6P+WtmyR3RrGixxiNGcVK0XYYYdJgm3dyXAKO4YbHCx2ERXd7za87HWhCSB 4k0Q==
X-Gm-Message-State: AJcUukcnJZi8zQ2bR0q7jAndy0E9xrYo0lkpxZN2LBtB0SpWRghbQCrD RJkiBloxG2zyIZGoTpGgnONorRhdfIX+mBQi9D0=
X-Google-Smtp-Source: ALg8bN4H6w1rzUue2SjGGEGALjw8qZf8QsahyJy7Yv/2Io83nqEUII2bF1B6RihsWnsSWctaNu99JR3UyzwDhGif2QM=
X-Received: by 2002:a9d:1d43:: with SMTP id m61mr24144415otm.170.1548191370885;  Tue, 22 Jan 2019 13:09:30 -0800 (PST)
MIME-Version: 1.0
References: <0D91AF7A-F26F-4E20-A009-B7D75BF8107D@gmail.com> <D78B82CF-7C62-41AB-8D65-ABD409618B7A@rhul.ac.uk> <E2CFB0E2-4F2A-4520-9735-03CF7A096070@gmail.com> <9A644EC9-97B5-4330-95C8-A4AC57F17EAC@rhul.ac.uk> <0AE677D2-AFF2-4D0F-89E3-04E304CFBC3A@gmail.com> <7BC3E788-0D90-4736-A339-B5BFA1CC0416@rhul.ac.uk> <CAHOTMV+82dLWgMEtg-sFYbp1_mhLWF0yY=QfUAqcUgQi44gt5w@mail.gmail.com>
In-Reply-To: <CAHOTMV+82dLWgMEtg-sFYbp1_mhLWF0yY=QfUAqcUgQi44gt5w@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Tue, 22 Jan 2019 13:09:20 -0800
Message-ID: <CAHOTMVLLK2XaywpHTXjozzeTEBKnzpJu+DtD8FxZvw_XM3CMig@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary="000000000000b4bfe905801264c6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/tKMNKEKUj4Kfml1YBpKXOT61MDo>
Subject: Re: [Cfrg] SIV for non-AES ciphers first draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Jan 2019 21:09:34 -0000

--000000000000b4bfe905801264c6
Content-Type: text/plain; charset="UTF-8"

Perhaps I should add: specifically what I would like to see is a
generalized framework for SIV modes and some new instantiations of that
framework, and perhaps one which looks a little more like
draft-irtf-cfrg-gcmsiv than what is presently in this draft (which looks a
lot more like RFC 5297) .

More concretely I'm thinking of a framework which could describe both
AES-GCM-SIV and a new concrete instantiation using (X)ChaCha20. Since
AES-GCM-SIV is already designed to work with a universal hash function, I
think such a construction could potentially be paired with Poly1305, which
seems like a more natural pairing to me.

Though I didn't opine on this thread, I wrote a bit more of a long-form
response to this draft here:

https://mailarchive.ietf.org/arch/msg/cfrg/d4EgD1pNgKPVD61PYQumxqKkJxU

This is all to say: I like the spirit of this draft, but I can see why
people might be a bit off-put by the particular details of the current
proposal.

-- 
Tony Arcieri

--000000000000b4bfe905801264c6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Perhaps I should add: specifically what I=
 would like to see is a generalized framework for SIV modes and some new in=
stantiations of that framework, and perhaps one which looks a little more l=
ike draft-irtf-cfrg-gcmsiv than what is presently in this draft (which look=
s a lot more like RFC 5297) .<div><div><br></div><div>More concretely I&#39=
;m thinking of a framework which could describe both AES-GCM-SIV and a new =
concrete instantiation using (X)ChaCha20. Since AES-GCM-SIV is already desi=
gned to work with a universal hash function, I think such a construction co=
uld potentially be paired with Poly1305, which seems like a more natural pa=
iring to me.</div><div><br></div><div>Though I didn&#39;t opine on this thr=
ead, I wrote a bit more of a long-form response to this draft here:</div><d=
iv><br></div><div><a href=3D"https://mailarchive.ietf.org/arch/msg/cfrg/d4E=
gD1pNgKPVD61PYQumxqKkJxU">https://mailarchive.ietf.org/arch/msg/cfrg/d4EgD1=
pNgKPVD61PYQumxqKkJxU</a><br></div><div><br></div><div>This is all to say: =
I like the spirit of this draft, but I can see why people might be a bit of=
f-put by the particular details of the current proposal.</div><div><br></di=
v><div>-- <br><div dir=3D"ltr" class=3D"gmail-m_-7199991774449767185gmail_s=
ignature">Tony Arcieri<br></div></div></div></div></div>

--000000000000b4bfe905801264c6--


From nobody Wed Jan 23 03:31:44 2019
Return-Path: <neil.e.madden@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0FFE5130E25 for <cfrg@ietfa.amsl.com>; Wed, 23 Jan 2019 03:31:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 kUT2B3eVKm1x for <cfrg@ietfa.amsl.com>; Wed, 23 Jan 2019 03:31:41 -0800 (PST)
Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 21FED128BCC for <cfrg@irtf.org>; Wed, 23 Jan 2019 03:31:41 -0800 (PST)
Received: by mail-wm1-x32f.google.com with SMTP id m1so1637912wml.2 for <cfrg@irtf.org>; Wed, 23 Jan 2019 03:31:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xgz1L2bNtMGZg8HAyMPpz5cRxyPEd9UthbaaIGp1aMQ=; b=kM1pEzMOvYhpGiv3DZ5iwMgw/p1rO512bHy1BczEw30iKT59RH9j4U5ORs8WO9ZZSM mfqMz5gaIRsJkR8zl9Ov0YNaLlx9FMKFZcTUCb0WPfudLt99TggLMPr2PHrY7aqSS9aT rACYsa7LwjIl/I+vAW9jzRfcRlpP2hNyh76hBmqWLkYnBdIK7nhFc6n9wPU0b+F/UhOG wopu8WsPtF6vsiJsyhwgcFJs5vC8pzuT9ckF+wdtUquaZxK9JUwiPAW51tocN1Vil9t3 /0eM8BvzuDpbilJXye+Lh5DpE0teFvV4eld7qUl07EEyQ750Vysd/7zdG+qv1fYgqYie J8+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xgz1L2bNtMGZg8HAyMPpz5cRxyPEd9UthbaaIGp1aMQ=; b=S6KmV/iYwW6DFPqIWQhwBzMFDdQ+EDAPiyCeSAfS7EXZ2h+fnYozrhHg+nf32kvLph ROGUNQp2ftZB4m2FsFfOpmp2QELG2Tv3uR5xcP+MpDIV9hBwjt71jBQJKCJs6oHcReSn l8S/cVynV2AeNkMNr9nmApT7ZNpZqu5zbndW00KuZ6hKE5o6tXsCaM9Ex6L5IdL0L+yu NwNwe3dISag5sVQ28rge5DVj4PMbqd9zpvbiPXWwMLqG3Zszx0PVYGNcunsNUeMsE/rK /YM2PVu5svcG0lzh+A8Tu+Q7wKQLZecwCmWJsQZ1Y6OJGqSD/HggPe+qfpK6Mwo7oid9 428A==
X-Gm-Message-State: AJcUukdZuRFhy4B66stgqdiGc4ZRTxtUqgsyGx5esZW4HbvskVVv6m62 2LGfgYzcIzJwPK2bjtwqJwI=
X-Google-Smtp-Source: ALg8bN7BUiGmGHVpayGxypkOYmiroGZrHLzcuUIktPFaZlcILcQVLeUpPHwxok46X8z6oIEfhHsbwQ==
X-Received: by 2002:a1c:d082:: with SMTP id h124mr2216766wmg.21.1548243099457;  Wed, 23 Jan 2019 03:31:39 -0800 (PST)
Received: from guest2s-mbp.lan (148.132.93.209.dyn.plus.net. [209.93.132.148]) by smtp.gmail.com with ESMTPSA id o16sm142113091wrn.11.2019.01.23.03.31.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 03:31:38 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
From: Neil Madden <neil.e.madden@gmail.com>
In-Reply-To: <CAHOTMVLLK2XaywpHTXjozzeTEBKnzpJu+DtD8FxZvw_XM3CMig@mail.gmail.com>
Date: Wed, 23 Jan 2019 11:31:37 +0000
Cc: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, "cfrg@irtf.org" <cfrg@irtf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <66FC66E5-4004-4141-BB88-FF2CC0425FB2@gmail.com>
References: <0D91AF7A-F26F-4E20-A009-B7D75BF8107D@gmail.com> <D78B82CF-7C62-41AB-8D65-ABD409618B7A@rhul.ac.uk> <E2CFB0E2-4F2A-4520-9735-03CF7A096070@gmail.com> <9A644EC9-97B5-4330-95C8-A4AC57F17EAC@rhul.ac.uk> <0AE677D2-AFF2-4D0F-89E3-04E304CFBC3A@gmail.com> <7BC3E788-0D90-4736-A339-B5BFA1CC0416@rhul.ac.uk> <CAHOTMV+82dLWgMEtg-sFYbp1_mhLWF0yY=QfUAqcUgQi44gt5w@mail.gmail.com> <CAHOTMVLLK2XaywpHTXjozzeTEBKnzpJu+DtD8FxZvw_XM3CMig@mail.gmail.com>
To: Tony Arcieri <bascule@gmail.com>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/MkfM7iF6wAsiLm6OuR4XDQi43LU>
Subject: Re: [Cfrg] SIV for non-AES ciphers first draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2019 11:31:43 -0000

Hi Tony,

Comments in-line:

> On 22 Jan 2019, at 21:09, Tony Arcieri <bascule@gmail.com> wrote:
>=20
> Perhaps I should add: specifically what I would like to see is a =
generalized framework for SIV modes and some new instantiations of that =
framework, and perhaps one which looks a little more like =
draft-irtf-cfrg-gcmsiv than what is presently in this draft (which looks =
a lot more like RFC 5297) .

It may be difficult to have one RFC that describes a generalised version =
of both algorithms. While draft-irtf-cfrg-gcmsiv is SIV-like, in =
practice the interface is quite different. AES-SIV (RFC 5297) takes a =
vector of additional data strings (one of which can be an arbitrary-size =
nonce), while draft-irtf-cfrg-gcmsiv takes just one additional data =
string and requires an explicit nonce (of a fixed size).=20

The vector-input aspect of SIV/S2V is useful to me, so I=E2=80=99d =
rather not drop it entirely. You could apply S2V to POLYVAL (and =
Poly1305) though.

> More concretely I'm thinking of a framework which could describe both =
AES-GCM-SIV and a new concrete instantiation using (X)ChaCha20. Since =
AES-GCM-SIV is already designed to work with a universal hash function, =
I think such a construction could potentially be paired with Poly1305, =
which seems like a more natural pairing to me.
>=20
> Though I didn't opine on this thread, I wrote a bit more of a =
long-form response to this draft here:
>=20
> https://mailarchive.ietf.org/arch/msg/cfrg/d4EgD1pNgKPVD61PYQumxqKkJxU
>=20
> This is all to say: I like the spirit of this draft, but I can see why =
people might be a bit off-put by the particular details of the current =
proposal.

Is the following a fair summary of what you would like to see included?

1. Include a KDF to derive per-message keys from an explicit nonce, =
rather than taking a single key that is split into two halves.

2. Move the SIV to be appended to the ciphertext rather than prepended.

3. Describe how to instantiate an SIV mode with a universal hash =
function using the approach from AES-GCM-SIV.

Would a generic description that looked something like the following fit =
the bill?

func SIV-Encrypt[KDF, ENC, MAC*](key, AD[0..n], nonce, msg) {
    k_mac, k_enc :=3D KDF(k, nonce)
    tag :=3D MAC*(k_mac, AD[0], =E2=80=A6, AD[n], nonce, msg)
    siv :=3D tag[0..IV_LEN]
    c =3D ENC(k_enc, siv, msg)
    return (c, tag)
}

You could then define the original RFC 5297 AES-SIV as:
 - KDF(k, nonce) =3D leftmost(k, KEY_LEN), rightmost(k, KEY_LEN)  [i.e., =
ignoring the nonce completely]
 - MAC* =3D S2V[AES-CMAC]
 - ENC=3D AES-CTR
 - IV_LEN =3D 16

AES-GCM-SIV could be defined as:
 - KDF =3D the AES-based KDF described in the draft
 - MAC* =3D the POLYVAL scheme described in the draft, with the =
limitation that there can only be a single AD, with the tag encrypted as =
described in section 4.
 - ENC=3D AES-CTR
 - IV_LEN =3D 16

ChaCha20-Poly1305-SIV could then be relatively straightforwardly defined =
using HChaCha for the KDF, although the tag encryption would need some =
thought as AES-GCM-SIV encrypts it with the raw AES block cipher (i.e., =
ECB) which isn=E2=80=99t an option for ChaCha20.

=E2=80=94 Neil=


From nobody Wed Jan 23 07:41:28 2019
Return-Path: <bascule@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B3ED126BED for <cfrg@ietfa.amsl.com>; Wed, 23 Jan 2019 07:41:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 enIxuIyu4Oqy for <cfrg@ietfa.amsl.com>; Wed, 23 Jan 2019 07:41:24 -0800 (PST)
Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6E39C12426A for <cfrg@irtf.org>; Wed, 23 Jan 2019 07:41:24 -0800 (PST)
Received: by mail-ot1-x332.google.com with SMTP id u16so2267216otk.8 for <cfrg@irtf.org>; Wed, 23 Jan 2019 07:41:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0Ri8N7wzxcSGiBaXmhal07Mkk2w2j72/nZqKRVpqD6M=; b=guYvQre9ymyZIJDCIzjI3LviX6FxtzkJTsjUifN+PrA3OhMK1cAxDwbfNL1SRxbcI5 f/q1bBcyqkTBIxUUiTc2Xi6rCuPhb31tspEe136rTQy4syob2Iar1K/LMNPr6CPNTn1Z /s2v/+ejEDeurVRAGanFqE0I+qJozZjhNSeFmH2ZyIfaoTv3sr9RarQXiwLH+B18ZhjU /1DpReccPYCgRuoZn7S7Pzm4aH4xgA3tsKFstCss12qx8+raDJY+4qpuXbLSXXButQHI Id1ZIBoNmRSx+PHYJwD6TAHn+1n4Yk7GsJ98knpzDDTj1uaZSssO9OgKcQe4cu2yZKsa hdEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0Ri8N7wzxcSGiBaXmhal07Mkk2w2j72/nZqKRVpqD6M=; b=Iu1hfiJU6pkxumFNuTWCJ02qjd74SSS4JeVUF2Cw/IMzTJjmdQWMM4sbWujvw1Lcg+ KOidpnyiqU/dfY3CvcE1ncxIDEth4jHBlnQRnOkvRP5+MswWpxQXD9hrJs+GXvS2R9gm QrVBnOZAduQMshAPijOk5pEPR5Z0lRmEtlKWAiNgaZcteATmcHH6o1BWhy4U/IK/PMna MyV1IJy483M82kjkWew7O5mgiho1F9+Hr4Zk6Hk+bJ4tFC9KlPrTXDlrXstX7s/ZVguu kttLXrGGo8Z7hx2ms6o4TtFNGFddF3Tcx5gjtyJcfMUX7zgWsfgbbkZkQpgtOW7oyjAf qXEA==
X-Gm-Message-State: AJcUukfdRzzO51VIVRvj620zQ3xw9nODlQ0LwFIk7Gk7EOaNQuY+LTDD 4430h0XZBqcGz098fnB3kNFOPgGcuSX4iuKLj2U=
X-Google-Smtp-Source: ALg8bN48oyW7UmLoj6piBXSSX+yhtsjcvX/O3rxkxcY1UJTz6GDsbDjtdJckaQ6LbXD2Q6EtLwhef4ArC2LuxgED+gY=
X-Received: by 2002:a9d:191a:: with SMTP id j26mr1861715ota.81.1548258083117;  Wed, 23 Jan 2019 07:41:23 -0800 (PST)
MIME-Version: 1.0
References: <0D91AF7A-F26F-4E20-A009-B7D75BF8107D@gmail.com> <D78B82CF-7C62-41AB-8D65-ABD409618B7A@rhul.ac.uk> <E2CFB0E2-4F2A-4520-9735-03CF7A096070@gmail.com> <9A644EC9-97B5-4330-95C8-A4AC57F17EAC@rhul.ac.uk> <0AE677D2-AFF2-4D0F-89E3-04E304CFBC3A@gmail.com> <7BC3E788-0D90-4736-A339-B5BFA1CC0416@rhul.ac.uk> <CAHOTMV+82dLWgMEtg-sFYbp1_mhLWF0yY=QfUAqcUgQi44gt5w@mail.gmail.com> <CAHOTMVLLK2XaywpHTXjozzeTEBKnzpJu+DtD8FxZvw_XM3CMig@mail.gmail.com> <66FC66E5-4004-4141-BB88-FF2CC0425FB2@gmail.com>
In-Reply-To: <66FC66E5-4004-4141-BB88-FF2CC0425FB2@gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 23 Jan 2019 07:41:12 -0800
Message-ID: <CAHOTMV+FU-HqmdZa39py8Up1dFz_wLLa4AED1efJ32XeLOLx+Q@mail.gmail.com>
To: Neil Madden <neil.e.madden@gmail.com>
Cc: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary="000000000000109fb1058021ede2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/kybdgio6Ea_EQu1_T86k2oNR9zE>
Subject: Re: [Cfrg] SIV for non-AES ciphers first draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2019 15:41:26 -0000

--000000000000109fb1058021ede2
Content-Type: text/plain; charset="UTF-8"

On Wed, Jan 23, 2019 at 3:31 AM Neil Madden <neil.e.madden@gmail.com> wrote:

> Is the following a fair summary of what you would like to see included?
>
> 1. Include a KDF to derive per-message keys from an explicit nonce, rather
> than taking a single key that is split into two halves.
>
> 2. Move the SIV to be appended to the ciphertext rather than prepended.
>
> 3. Describe how to instantiate an SIV mode with a universal hash function
> using the approach from AES-GCM-SIV.
>

That's the general idea, yes. I'm not saying it's the only way, but I think
it's worth exploring.

Really I mention this just in case other members of the group were getting
hung up on the details. We can hammer them out after the adoption call ;)

-- 
Tony Arcieri

--000000000000109fb1058021ede2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Wed, Jan 23, 2019 at 3:31 AM Neil Madd=
en &lt;<a href=3D"mailto:neil.e.madden@gmail.com">neil.e.madden@gmail.com</=
a>&gt; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmai=
l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20=
4,204);padding-left:1ex">Is the following a fair summary of what you would =
like to see included?<br>
<br>
1. Include a KDF to derive per-message keys from an explicit nonce, rather =
than taking a single key that is split into two halves.<br>
<br>
2. Move the SIV to be appended to the ciphertext rather than prepended.<br>
<br>
3. Describe how to instantiate an SIV mode with a universal hash function u=
sing the approach from AES-GCM-SIV.<br></blockquote><div><br></div><div>Tha=
t&#39;s the general idea, yes. I&#39;m not saying it&#39;s the only way, bu=
t I think it&#39;s worth exploring.</div><div><br></div><div>Really I menti=
on this just in case other members of the group were getting hung up on the=
 details. We can hammer them out after the adoption call ;)</div><div><br><=
/div></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature">Tony Arcieri<b=
r></div></div>

--000000000000109fb1058021ede2--


From nobody Wed Jan 23 20:16:10 2019
Return-Path: <bascule@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD5BA131056 for <cfrg@ietfa.amsl.com>; Wed, 23 Jan 2019 20:16:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 oJTLTMZHfW0I for <cfrg@ietfa.amsl.com>; Wed, 23 Jan 2019 20:16:07 -0800 (PST)
Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D4F01131074 for <cfrg@irtf.org>; Wed, 23 Jan 2019 20:16:06 -0800 (PST)
Received: by mail-ot1-x329.google.com with SMTP id e12so4104171otl.5 for <cfrg@irtf.org>; Wed, 23 Jan 2019 20:16:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kwqvpfRnr/m3R4+2LybBSOqlvlzQHrgYd+W2JwZv5hc=; b=f9F2IxPE8pePexCKkb1WdnUNEm4jwOZyG3Cbi/z/DZQ8HOzvAiTuao1hT3fMcCXk0W Qh7pPzI9yrY6VKEF5C4+Rfeh1XOanbjFn5NRElXpDc7gbxhXkh2D1u8q/miUrs6RWfLz DsnWMJ7J9+UiYVKQkbMopCUXussSPZGuc/WK6Mux/h8edvGRy0EGEwi8eh2vtjeOOaNL LxOgcuy0IBPU3Ujl/1EaUJFoy8jU3O6aZTdqqDQAYT+hHcP0bBOr3/4i+GvtoiRe3Ox1 HebvvBgZsSfMz6pqzbe37CbKlxCHq7n76BKnAsS9O1EbVDc7PiTQFddx7SSUrggr6aMF X7hA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kwqvpfRnr/m3R4+2LybBSOqlvlzQHrgYd+W2JwZv5hc=; b=sqXFzFRH3dKU5i6+5cHfZdkYTt+7loIxZDen6bFrMjTYxYxCcp5VBNsECOiGSeT1ss mZvUBygKUNays4o8a7k5mq3JFckmwk3syPv8lgHubuTij2nJ/r9OVHonxtLa/H+rh/tg EuAPXTPt/wKKnSXGGXOAQGqdQjclRM66EL6fGmAP04b7F6MYdB7fps3hfcPtZzA6sBWv tYAyO15aXo+q0aLFe8jUNIdJJ50EaZi57vrzPNTlsRcOKWw5oQ/O5Qau1RpcH2jN3zPm sRABpt+p3SbsbJH737V2w/glNT/AinrGn9ODaiLEUSrfW4vTnMz9vxJtd89TpAkYnKNZ bO+w==
X-Gm-Message-State: AJcUukf2AzxFnzkC48WqVh81h4fB6PEeQg5Nmj539yoR05W2z43ebzL+ TL7nPjx9vNEhs0/71e+LA5G0pOSPid0y2j0HfTi7uDSw
X-Google-Smtp-Source: ALg8bN7iqFCwy6nPrnCM2XdZJhCA+Dj/xfUXon1lX8ZowcvplQKV0ZjsBqYLo0hCS+q3XRrifS9ty0eBurAbmVoAa3c=
X-Received: by 2002:a9d:6050:: with SMTP id v16mr3260215otj.42.1548303365925;  Wed, 23 Jan 2019 20:16:05 -0800 (PST)
MIME-Version: 1.0
References: <CAA4PzX2-k3O2EsZzhDyksDZfLYEfKjGOfrqwvdqh3e9_1WyEFw@mail.gmail.com>
In-Reply-To: <CAA4PzX2-k3O2EsZzhDyksDZfLYEfKjGOfrqwvdqh3e9_1WyEFw@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 23 Jan 2019 20:15:55 -0800
Message-ID: <CAHOTMV+R7p4Mwi-87Tm+Zjc0tzUO5v5kDcUL40mtTvLerf8csQ@mail.gmail.com>
To: =?UTF-8?B?QmrDtnJuIEVkc3Ryw7Zt?= <be@bjrn.se>
Cc: cfrg@irtf.org
Content-Type: multipart/alternative; boundary="00000000000021703205802c786b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/KsWmwE---5cXeY3kVY61YND4_vs>
Subject: Re: [Cfrg] AES-GCM-SIV: Expository interpretation of POLYVAL as an IUF construction
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2019 04:16:09 -0000

--00000000000021703205802c786b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 1, 2019 at 3:34 AM Bj=C3=B6rn Edstr=C3=B6m <be@bjrn.se> wrote:

> Semi-philosophical point: This approach is only reasonable if you "lift"
> POLYVAL into a valuable and generic primitive on it's own, that is not ju=
st
> a detail of AES-GCM-SIV but something that is useful in it's own. For
> cognitive load reasons, then POLYVAL can be treated as a black box simila=
r
> to hash functions in general, instead of something that is "part of"
> AES-GCM-SIV. </weird crackpot comment>
>

I've written a toy Rust implementation of POLYVAL along these lines with an
IUF API (which is untested and almost certainly broken):

https://github.com/miscreant/miscreant.rs/blob/047ae8b3fd68d62eeb1e85101104=
39ba24473df3/src/polyval.rs

I attempted to implement an idea which is described (although I'm unsure if
it's actually "recommended") in the RFC: using POLYVAL to implement GHASH.

If we could get this to work, I think a neat thing to attempt would be
implementing both AES-GCM and AES-GCM-SIV using a shared "polyval" library
(a.k.a. crate in Rust terminology).

We've also discussed creating a Rust trait (more or less an interface) for
universal hash functions, which could have a common IUF API that an
instantiation of POLYVAL (or GHASH in terms of polyval) could implement.

--=20
Tony Arcieri

--00000000000021703205802c786b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">On Tue, Jan 1, 2019 at 3=
:34 AM Bj=C3=B6rn Edstr=C3=B6m &lt;<a href=3D"mailto:be@bjrn.se">be@bjrn.se=
</a>&gt; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div>Semi-phil=
osophical point: This approach is only reasonable if you &quot;lift&quot; P=
OLYVAL into a valuable and generic primitive on it&#39;s own, that is not j=
ust a detail of AES-GCM-SIV but something that is useful in it&#39;s own. F=
or cognitive load reasons, then POLYVAL can be treated as a black box simil=
ar to hash functions in general, instead of something that is &quot;part of=
&quot; AES-GCM-SIV. &lt;/weird crackpot comment&gt;</div></div></div></bloc=
kquote><div><br></div><div>I&#39;ve written a toy Rust implementation of PO=
LYVAL along these lines with an IUF API (which is untested and almost certa=
inly broken):</div><div><br></div><div><a href=3D"https://github.com/miscre=
ant/miscreant.rs/blob/047ae8b3fd68d62eeb1e8510110439ba24473df3/src/polyval.=
rs">https://github.com/miscreant/miscreant.rs/blob/047ae8b3fd68d62eeb1e8510=
110439ba24473df3/src/polyval.rs</a><br></div><div><br></div><div>I attempte=
d to implement an idea which is described (although I&#39;m unsure if it&#3=
9;s actually &quot;recommended&quot;) in the RFC: using POLYVAL to implemen=
t GHASH.</div><div><br></div><div>If we could get this to work, I think a n=
eat thing to attempt would be implementing both AES-GCM and AES-GCM-SIV usi=
ng a shared &quot;polyval&quot; library (a.k.a. crate in Rust terminology).=
</div><div><br></div><div>We&#39;ve also discussed creating a Rust trait (m=
ore or less an interface) for universal hash functions, which could have a =
common IUF API that an instantiation of POLYVAL (or GHASH in terms of polyv=
al) could implement.</div><div><br></div></div>-- <br><div dir=3D"ltr" clas=
s=3D"gmail_signature">Tony Arcieri<br></div></div></div>

--00000000000021703205802c786b--


From nobody Fri Jan 25 19:21:04 2019
Return-Path: <noloader@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD9CF1310F4 for <cfrg@ietfa.amsl.com>; Fri, 25 Jan 2019 19:21:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 9PPI0OtUMxjH for <cfrg@ietfa.amsl.com>; Fri, 25 Jan 2019 19:21:01 -0800 (PST)
Received: from mail-it1-x143.google.com (mail-it1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E568F1310F0 for <cfrg@irtf.org>; Fri, 25 Jan 2019 19:21:00 -0800 (PST)
Received: by mail-it1-x143.google.com with SMTP id z20so12536083itc.3 for <cfrg@irtf.org>; Fri, 25 Jan 2019 19:21:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:reply-to:from:date:message-id:subject:to; bh=vIstwHcDGU967ceVjkGq7fvrkqn/UfMES9Nakv1C7Sg=; b=hvhaWOkuG2ME+grf5xmCIvdkdFrCPQ0oFLGM000lz+MnWaqjXyFSLPqu2kYbwTDJ8+ cJ/GXkrB3dh+ozQJrIS/SCNwFSCP0+MJbHPqIZtsz/1nTHOdr7/L9MJPu/vr2Wl4sX89 eVlqvCOx3sciRCUFiK7Jt6uyh+bhYeDBDnj4XgORomRrsq8ZGOEtQnPRtSj9x2JvmuFJ +1YpaoQmp9V/IxsVD4lNbBew02cS2dhc4+Y1ijZoKioAiGiPVRzF7ioCQUE+lObH/1oZ StsvkBPhFTPivwyOPdfcg+v96RERqL+5qc6kBC2iQL5hvscO5RAw/dMOuKqvgj+n4Ng7 JCcA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=vIstwHcDGU967ceVjkGq7fvrkqn/UfMES9Nakv1C7Sg=; b=rk+OFpj8MBNugZrs704KI7DT2jiTEITjA9qjFezrjdNHTHKi2dZA/OANDfa8gkBuhl yLoYvbRfYTPFxR6jlhvFx+uBPY7wte9HhUkoaSiVd0lNI7kzJXxHfFiAEpq91vuY/Gra Jj2vLOJeEpWx+QZdKF6y0kDNmkGhpuXB0qUyF0O/zvENwlyYVj/cUbotcz5ZoqFouPvl bxXY7Gg7YbR15xb+eUOUvHqyEgA2S5jzgkelVk/8+PGPL/RWR6jgzgYjOIlTRsw+bYex IbryaYagKzRM6FT0qkza5fOwuoViTKF2mAiyfs58oo+I40WaH5pGbmJe2w58s/+pSXGP jNHw==
X-Gm-Message-State: AJcUukcyuBbrK+iANJyX6AkU613MLCQdgG3DPcsIw+Ho4/al9SYskTcF hFNc9Fn2X5E/K37I5/grLTXbIJgYVJzKKzk/b4FoaCva
X-Google-Smtp-Source: ALg8bN7wkZmjiPEy75WMp+d6RIlkn7t4s49VBWScCzUNogvoDkT6Kmk9ybuPtCEPrOQQEfwHYlNkVrRfHNh6Y2i+j6w=
X-Received: by 2002:a02:2b2d:: with SMTP id h45mr8673549jaa.75.1548472860134;  Fri, 25 Jan 2019 19:21:00 -0800 (PST)
MIME-Version: 1.0
Reply-To: noloader@gmail.com
From: Jeffrey Walton <noloader@gmail.com>
Date: Fri, 25 Jan 2019 22:20:38 -0500
Message-ID: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/gsOnTJzcbgG6OqD8Sc0GO5aR_tU>
Subject: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2019 03:21:04 -0000

Hi Everyone,

This question is moved from another list to CFRG. It was suggested
CFRG is a better forum for the question.

I'm working on test vectors for an implementation of the IETF's
version of ChaCha from RFC 8439. According to Section 2.4, page 9
(https://tools.ietf.org/html/rfc8439#section-2.4):

   The inputs to ChaCha20 are:
      o  A 256-bit key
      o  A 32-bit initial counter.  This can be set to any number, but will
         usually be zero or one...
      o  A 96-bit nonce.  In some protocols, this is known as the
         Initialization Vector.
      o  An arbitrary-length plaintext

Now a test vector. We set:

    Key - All 0's
    IV - All 0's
    Initial Counter Block - 0xfffffffe
    Plaintext -  256 bytes of all 0's

After the first two 64-bit blocks the counter will wrap around to 0.
This is where the problem arises.

One implementation I am aware wraps the block counter. It produces a keystream:

032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
76B8E0ADA0F13D90405D6AE55386BD28BDD219B8A08DED1AA836EFCC8B770DC7
DA41597C5157488D7724E03FB8D84A376A43B8F41518A11CC387B669B2EE6586
9F07E7BE5551387A98BA977C732D080DCB0F29A048E3656912C6533E32EE7AED
29B721769CE64E43D57133B074D839D531ED1F28510AFB45ACE10A1F4B794D6F

Another implementation I am aware wraps the block counter, but it also
increments the high word of the nonce, similar to the way original
ChaCha used a 64-bit block counter. It produces a keystream:

032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
3DB41D3AA0D329285DE6F225E6E24BD59C9A17006943D5C9B680E3873BDC683A
5819469899989690C281CD17C96159AF0682B5B903468A61F50228CF09622B5A
46F0F6EFEE15C8F1B198CB49D92B990867905159440CC723916DC00128269810
39CE1766AA2542B05DB3BD809AB142489D5DBFE1273E7399637B4B3213768AAA

I don't believe the issue arises in Bernsein's version of ChaCha
because the block counter is 64-bits and always starts at 0. Bernstein
does not allow arbitrary values for the initial block counter. The
constraint is unstated in Bernstein's paper on ChaCha, but it is
obvious when examining his reference implementation (from chacha-ref.c
version 20080118):

    void ECRYPT_ivsetup(ECRYPT_ctx *x,const u8 *iv)
    {
        x->input[12] = 0;
        x->input[13] = 0;
        x->input[14] = U8TO32_LITTLE(iv + 0);
        x->input[15] = U8TO32_LITTLE(iv + 4);
    }

My question is, what should happen when the block counter wraps?

Thanks in advance.


From nobody Sat Jan 26 04:06:09 2019
Return-Path: <Kenny.Paterson@rhul.ac.uk>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5077812D4EF for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 04:06:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.042
X-Spam-Level: 
X-Spam-Status: No, score=-2.042 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 RbYWVvXhUAp8 for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 04:06:04 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80053.outbound.protection.outlook.com [40.107.8.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B77881200D7 for <cfrg@irtf.org>; Sat, 26 Jan 2019 04:06:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jyuhPiM2KVh+vqo+ri8ALK+3uqJD+7ozPeHyRtVyfZM=; b=ab7/kIKMWJi2/5kIORe3aPIQfFTi1F/0hxNssb7k2fDpE3qdhOLXlmDxxYIYf6uNcMQLrwzoDtjxa++vfRAdeW2myXw18pNKnsbSCwt3waM2y/BGdF5V9go5zJWQMvyoCX0Cnv0/McNFjFZB4/JkPnI7HDCVvByUKc+Uz2/3SSg=
Received: from DB7PR03MB3561.eurprd03.prod.outlook.com (52.134.98.30) by DB7PR03MB4779.eurprd03.prod.outlook.com (20.176.236.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.16; Sat, 26 Jan 2019 12:06:00 +0000
Received: from DB7PR03MB3561.eurprd03.prod.outlook.com ([fe80::8894:68a2:ecba:a321]) by DB7PR03MB3561.eurprd03.prod.outlook.com ([fe80::8894:68a2:ecba:a321%3]) with mapi id 15.20.1558.021; Sat, 26 Jan 2019 12:06:00 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "noloader@gmail.com" <noloader@gmail.com>
CC: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
Thread-Index: AQHUtSY9WqcuBE+phEO1V1ZU55hR+6XBdLRS
Date: Sat, 26 Jan 2019 12:06:00 +0000
Message-ID: <E6862AD6-6F3F-4F0E-A44B-0014CB79BDD8@rhul.ac.uk>
References: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com>
In-Reply-To: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-originating-ip: [92.2.118.154]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB7PR03MB4779; 6:tYoh4eWl+vG4mecnGGKEvufnI7gRyi+TrvHHL78dpJgbW1hDNhZw3XGz8Pz4myL8VPwOqjmdtZznbLIuGmlU51vnKeLHJfq2SpIKC/aFMy7Z1UBgPGeCLqttS7kqPWsHQt99dhBXIlQAaJWIBZgkv8v2Qq9rFKIT0Z+GcTa5Gh8U4HYIj6pWCJj5CXmiEnv+FWw2JpH4zezuUjC48H03llRK1psj9gNSNdN+SBz8g3SIHf4ppHnRxes565u9lBpIMFSLDqe4iT9taWKrBg93Pmm51ibwwPjyNr+QzJjENg1wtVNQjfrYSL1ynILjeys3FGN7haFyO4GGllUkLiV7OfJJSFYbQdsAyCH38fK+hzfbbgE2HtqAm93e9AvqGCKEmKzIBgZ1aCErltl3XjdDvzFSCrMosW1McCpkiCPeExfudF+vmp4q1hSba0wmos+x5q4gB+fAD2EI8llCaW6thw==; 5:QVJp3MzcXLVRsJjV4Ctqb6pVoSafbub1MrrXWOzmnDJauRpmNMaa7NsZLbb+cne4xCZQGg/pt90utMjrkUXPNcPtHfchHX+EAdcppR6LOgW0sTP4b6SfehlDo/kpC3tjPX10D2S4fRoAUnLA8PaY8GMcan8pp/WP5zrcuZyI9Lme9hFaa++ZmEX+qFV+iP0xm89Rgx5BxIlDqlLqYE5JLQ==; 7:V7kGE3VZLlcIA4synjqK77tH0hQoh3f/aeVEzRFax179cvHKrZ9TFxwITSp0IcLEbZi9j3G5PQSgBjEFg8MFBqgXHH/EGvyxXcBWqesklG1wZxYGPlLEB1+vUQl+f6vqjwHHOGNB933xFKSUOpBH7w==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: da21ebb7-f5b0-4654-8801-08d68386a331
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:DB7PR03MB4779; 
x-ms-traffictypediagnostic: DB7PR03MB4779:
x-microsoft-antispam-prvs: <DB7PR03MB4779E15BDB2CF9143C79EA93BC940@DB7PR03MB4779.eurprd03.prod.outlook.com>
x-forefront-prvs: 0929F1BAED
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(346002)(136003)(366004)(39860400002)(51874003)(189003)(199004)(53754006)(476003)(11346002)(446003)(97736004)(82746002)(99286004)(3846002)(102836004)(39060400002)(6116002)(4326008)(33656002)(86362001)(2906002)(186003)(76176011)(26005)(1411001)(6506007)(6246003)(2616005)(53546011)(72206003)(478600001)(36756003)(14454004)(966005)(6512007)(74482002)(2501003)(1730700003)(256004)(6916009)(6486002)(14444005)(1361003)(316002)(81166006)(81156014)(6306002)(25786009)(8936002)(229853002)(6436002)(66066001)(68736007)(71200400001)(5640700003)(71190400001)(8676002)(106356001)(486006)(53936002)(105586002)(305945005)(2351001)(7736002)(786003)(83716004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR03MB4779; H:DB7PR03MB3561.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: uYhW87lwcCR/TkYKKlfarwlPkj153Xm2SQloOBMiAwhv/Nm7oHqJyw7rivHaAn8Kc+HkBVutZQ8Kchp8t0/zOVrLzEiLD/OJOaeq11GEBh663Mx4sNFeBKEFA9uC0XXHd1st3RXMGD7bZvBU+WpUoJ+7CYyPhFgHuOa0nyFXKXZ9MbyhZVnlnP01LwCiMqnxJI2REffUX/tHCG9LQFz5DneVyPandYVJgPNhBTZt88mP0wdIMprLKon91gv2V2k1QsqVlqTrz1+JJLKaOQV66fL2XnJXC4N1Wq3/PLSj45bwkWdpzuRNUhd66/yMmYi4BjQIyceNfE2JWVwrHmJZVvk3FiJNNb3aEeM2VRyU2/HXF9K5lkTLzZsFOudWYQeEBxvOVyDZgsTFswTcZY/5YIOE3ZjwsGp2NINeghlX+Uc=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-Network-Message-Id: da21ebb7-f5b0-4654-8801-08d68386a331
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2019 12:06:00.5321 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR03MB4779
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/nIdjwNkiJnChXVpZIgTWalzp6hY>
Subject: Re: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2019 12:06:07 -0000

Hi Jeff,

As you'll know it's crucial to avoid using repeated (blockcounter, nonce) c=
ombinations under the same key for this algorithm.=20

In my view, the best way to do that is for implementations to return an err=
or in the event of any overflow of blockcounter, and to ensure that this is=
 a rare event by always starting blockcounter at 0. I don't see any reason =
not to start with this value (you might use 1 rather than 0 in a specific s=
ituation like building an AEAD if value 0 was already being used to generat=
e keys for Poly1305, but you're still really starting your new ChaCha20 con=
text with 0 there too).=20

This is possible to enforce if, for example, there's a wrapper around the r=
aw ChaCha20 algorithm that does not expose the blockcounter to the calling =
application, but that instead manages it internally on a per context basis.=
 To me, this seems like a sensible way to handle the issue (but then I'm no=
t a pro crypto developer).=20

If you really must wrap blockcounter then I'd argue that it should be done =
without touching the nonce. The reason is that this new nonce (created by i=
ncrementing the existing nonce or whatever) could legitimately be used in a=
 different ChaCha instance under the same key, and your code may have no co=
ntrol over what blocknumbers would be used with that nonce value, thereby i=
ncreasing the risk of reuse of (blockcounter,nonce) pairs. But you'd still =
need checks to make sure there were no blockcounter repeats if you just wra=
pped without touching the nonce. Hence better to start low and disallow wra=
ps (which is after all just such a check!).=20

I'm interested to know what other people think. I see it as really being a =
tricky (if common) crypto API design issue.=20

Cheers,

Kenny


> On 26 Jan 2019, at 03:21, Jeffrey Walton <noloader@gmail.com> wrote:
>=20
> Hi Everyone,
>=20
> This question is moved from another list to CFRG. It was suggested
> CFRG is a better forum for the question.
>=20
> I'm working on test vectors for an implementation of the IETF's
> version of ChaCha from RFC 8439. According to Section 2.4, page 9
> (https://tools.ietf.org/html/rfc8439#section-2.4):
>=20
>   The inputs to ChaCha20 are:
>      o  A 256-bit key
>      o  A 32-bit initial counter.  This can be set to any number, but wil=
l
>         usually be zero or one...
>      o  A 96-bit nonce.  In some protocols, this is known as the
>         Initialization Vector.
>      o  An arbitrary-length plaintext
>=20
> Now a test vector. We set:
>=20
>    Key - All 0's
>    IV - All 0's
>    Initial Counter Block - 0xfffffffe
>    Plaintext -  256 bytes of all 0's
>=20
> After the first two 64-bit blocks the counter will wrap around to 0.
> This is where the problem arises.
>=20
> One implementation I am aware wraps the block counter. It produces a keys=
tream:
>=20
> 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
> F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
> ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
> 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
> 76B8E0ADA0F13D90405D6AE55386BD28BDD219B8A08DED1AA836EFCC8B770DC7
> DA41597C5157488D7724E03FB8D84A376A43B8F41518A11CC387B669B2EE6586
> 9F07E7BE5551387A98BA977C732D080DCB0F29A048E3656912C6533E32EE7AED
> 29B721769CE64E43D57133B074D839D531ED1F28510AFB45ACE10A1F4B794D6F
>=20
> Another implementation I am aware wraps the block counter, but it also
> increments the high word of the nonce, similar to the way original
> ChaCha used a 64-bit block counter. It produces a keystream:
>=20
> 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
> F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
> ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
> 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
> 3DB41D3AA0D329285DE6F225E6E24BD59C9A17006943D5C9B680E3873BDC683A
> 5819469899989690C281CD17C96159AF0682B5B903468A61F50228CF09622B5A
> 46F0F6EFEE15C8F1B198CB49D92B990867905159440CC723916DC00128269810
> 39CE1766AA2542B05DB3BD809AB142489D5DBFE1273E7399637B4B3213768AAA
>=20
> I don't believe the issue arises in Bernsein's version of ChaCha
> because the block counter is 64-bits and always starts at 0. Bernstein
> does not allow arbitrary values for the initial block counter. The
> constraint is unstated in Bernstein's paper on ChaCha, but it is
> obvious when examining his reference implementation (from chacha-ref.c
> version 20080118):
>=20
>    void ECRYPT_ivsetup(ECRYPT_ctx *x,const u8 *iv)
>    {
>        x->input[12] =3D 0;
>        x->input[13] =3D 0;
>        x->input[14] =3D U8TO32_LITTLE(iv + 0);
>        x->input[15] =3D U8TO32_LITTLE(iv + 4);
>    }
>=20
> My question is, what should happen when the block counter wraps?
>=20
> Thanks in advance.
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Sat Jan 26 04:45:38 2019
Return-Path: <smyshsv@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3CAC1311B5 for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 04:45:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 sf4jDvRVq2FD for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 04:45:32 -0800 (PST)
Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 56D1F123FFD for <cfrg@irtf.org>; Sat, 26 Jan 2019 04:45:32 -0800 (PST)
Received: by mail-qt1-x834.google.com with SMTP id e5so13603803qtr.12 for <cfrg@irtf.org>; Sat, 26 Jan 2019 04:45:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nRKDqjz9h3L9uabdDaP9GxXmyxuLtrixKYxuJMd8pdA=; b=BuIiGlMwI+uN3dFS9yy03AGyrnC/6lfBiiRalBWu2q4cAIetW8O0hsveB+oLYqNciA XDwN7hl4xIKIvQImi1wYvoCeNcBcRJyIu6c+6sZS3pztYS0A4w+9puXvMt1X2yBSgmIE rLO9fuBd0OwVB96hhrDtpQyGAmYYna7D2zP7ulMtbdAeOqe4prCfcxfrgQq9A6ZrYxIb ZKnfONjSDcclO4I5Gvk8DqK4/nb4zd5ZWselZDslig8hXXYKoDT/s1f4qX4jcb+JOWfe M8sE6lZU9kwDRr/zdlIlAiaEvScyl4rPZZSyXFIqLbXq5omb8mRlD59obx6nnetHf5f1 HEVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nRKDqjz9h3L9uabdDaP9GxXmyxuLtrixKYxuJMd8pdA=; b=QK9n3FbPPSlJf96RnaHKm517H/d99RBI0GJVDynGs3mkOdGShafGwVBuSSohibMmNx BTF/G/inc6EaZBfhjFm9nQxHWW1zFMBHm+2im6kXKF7xjT+YmITSS4vA3LrSrg/JyQXD J5pM1IQ/YRPvMT4mTu8P4D5fy73a5nNw6jrygxiBfHAipA7VFyPDwcTm3AwwT0OvlHLf hFSDfpEmTS6lNT878agvoGWeqONd+iuXrmT1+nTi/FfYoP9TIIoRnoEPZ9T9K/SZSILy ncbv2BtD/j367vLE/7SRpZ2yLCW7Jd3EbXlSlWwgJrxhIe11tlvcCP+c5snzUR8TEh4O xKog==
X-Gm-Message-State: AJcUukdbaSnrwgh9UvUNMhfgu1co5mVVO2En6Ink952Nqe0B/tQuAdGf so6T5iNDyh4h6UpxUkDRimhDe2PbI4sNkHX2BHA=
X-Google-Smtp-Source: ALg8bN6RLcs21S8gIy2jApKOt9AyWcv+li26/rH5le5L/Sp475b0r3NsVWnrn2FBvZLG4fwfs3EJ+m+eCw0YTITE5oY=
X-Received: by 2002:ac8:4709:: with SMTP id f9mr14439518qtp.58.1548506731245;  Sat, 26 Jan 2019 04:45:31 -0800 (PST)
MIME-Version: 1.0
References: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com> <E6862AD6-6F3F-4F0E-A44B-0014CB79BDD8@rhul.ac.uk>
In-Reply-To: <E6862AD6-6F3F-4F0E-A44B-0014CB79BDD8@rhul.ac.uk>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
Date: Sat, 26 Jan 2019 15:44:28 +0300
Message-ID: <CAMr0u6kr5zTUuoPnrx9z2No41pTj6XyWnys9QSYX-xhatDf6yA@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Cc: "noloader@gmail.com" <noloader@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary="000000000000a5f3f205805bd131"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/4WycJ43nsU7U9RC-Z3hSpPd7kws>
Subject: Re: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2019 12:45:36 -0000

--000000000000a5f3f205805bd131
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear Jeff, Dear Kenny,

I totally agree with Kenny, that the best practice here seems to be
returning an error in the case of reaching maximal value, disallowing
wrapping (and starting the blockcounter at 0 or 1 for each fresh nonce).
In all secure crypto applications that I'm aware of such a check exists,
protecting both from repeating the value of a counter (for the same key and
nonce) and from exceeding the limit for key lifetime (some information on
that issue can be found in
https://datatracker.ietf.org/doc/draft-irtf-cfrg-re-keying/).
In terms of CryptoAPI, the CryptEncrypt function may return FALSE with an
error code of NTE_BAD_KEY if it is called in such a way that the total
plaintext size processed with the used key exceeds a certain limit.

Regarding the calling application, it should be aware of limits for
plaintext size to be encrypted (such a limit should be defined in the
documentation for a library, e.g. when describing error codes and their
meaning) and prevent unlimited usage of a single symmetric key.

Best regards,
Stanislav Smyshlyaev

=D1=81=D0=B1, 26 =D1=8F=D0=BD=D0=B2. 2019 =D0=B3. =D0=B2 15:06, Paterson, K=
enny <Kenny.Paterson@rhul.ac.uk>:

> Hi Jeff,
>
> As you'll know it's crucial to avoid using repeated (blockcounter, nonce)
> combinations under the same key for this algorithm.
>
> In my view, the best way to do that is for implementations to return an
> error in the event of any overflow of blockcounter, and to ensure that th=
is
> is a rare event by always starting blockcounter at 0. I don't see any
> reason not to start with this value (you might use 1 rather than 0 in a
> specific situation like building an AEAD if value 0 was already being use=
d
> to generate keys for Poly1305, but you're still really starting your new
> ChaCha20 context with 0 there too).
>
> This is possible to enforce if, for example, there's a wrapper around the
> raw ChaCha20 algorithm that does not expose the blockcounter to the calli=
ng
> application, but that instead manages it internally on a per context basi=
s.
> To me, this seems like a sensible way to handle the issue (but then I'm n=
ot
> a pro crypto developer).
>
> If you really must wrap blockcounter then I'd argue that it should be don=
e
> without touching the nonce. The reason is that this new nonce (created by
> incrementing the existing nonce or whatever) could legitimately be used i=
n
> a different ChaCha instance under the same key, and your code may have no
> control over what blocknumbers would be used with that nonce value, there=
by
> increasing the risk of reuse of (blockcounter,nonce) pairs. But you'd sti=
ll
> need checks to make sure there were no blockcounter repeats if you just
> wrapped without touching the nonce. Hence better to start low and disallo=
w
> wraps (which is after all just such a check!).
>
> I'm interested to know what other people think. I see it as really being =
a
> tricky (if common) crypto API design issue.
>
> Cheers,
>
> Kenny
>
>
> > On 26 Jan 2019, at 03:21, Jeffrey Walton <noloader@gmail.com> wrote:
> >
> > Hi Everyone,
> >
> > This question is moved from another list to CFRG. It was suggested
> > CFRG is a better forum for the question.
> >
> > I'm working on test vectors for an implementation of the IETF's
> > version of ChaCha from RFC 8439. According to Section 2.4, page 9
> > (https://tools.ietf.org/html/rfc8439#section-2.4):
> >
> >   The inputs to ChaCha20 are:
> >      o  A 256-bit key
> >      o  A 32-bit initial counter.  This can be set to any number, but
> will
> >         usually be zero or one...
> >      o  A 96-bit nonce.  In some protocols, this is known as the
> >         Initialization Vector.
> >      o  An arbitrary-length plaintext
> >
> > Now a test vector. We set:
> >
> >    Key - All 0's
> >    IV - All 0's
> >    Initial Counter Block - 0xfffffffe
> >    Plaintext -  256 bytes of all 0's
> >
> > After the first two 64-bit blocks the counter will wrap around to 0.
> > This is where the problem arises.
> >
> > One implementation I am aware wraps the block counter. It produces a
> keystream:
> >
> > 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
> > F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
> > ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
> > 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
> > 76B8E0ADA0F13D90405D6AE55386BD28BDD219B8A08DED1AA836EFCC8B770DC7
> > DA41597C5157488D7724E03FB8D84A376A43B8F41518A11CC387B669B2EE6586
> > 9F07E7BE5551387A98BA977C732D080DCB0F29A048E3656912C6533E32EE7AED
> > 29B721769CE64E43D57133B074D839D531ED1F28510AFB45ACE10A1F4B794D6F
> >
> > Another implementation I am aware wraps the block counter, but it also
> > increments the high word of the nonce, similar to the way original
> > ChaCha used a 64-bit block counter. It produces a keystream:
> >
> > 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
> > F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
> > ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
> > 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
> > 3DB41D3AA0D329285DE6F225E6E24BD59C9A17006943D5C9B680E3873BDC683A
> > 5819469899989690C281CD17C96159AF0682B5B903468A61F50228CF09622B5A
> > 46F0F6EFEE15C8F1B198CB49D92B990867905159440CC723916DC00128269810
> > 39CE1766AA2542B05DB3BD809AB142489D5DBFE1273E7399637B4B3213768AAA
> >
> > I don't believe the issue arises in Bernsein's version of ChaCha
> > because the block counter is 64-bits and always starts at 0. Bernstein
> > does not allow arbitrary values for the initial block counter. The
> > constraint is unstated in Bernstein's paper on ChaCha, but it is
> > obvious when examining his reference implementation (from chacha-ref.c
> > version 20080118):
> >
> >    void ECRYPT_ivsetup(ECRYPT_ctx *x,const u8 *iv)
> >    {
> >        x->input[12] =3D 0;
> >        x->input[13] =3D 0;
> >        x->input[14] =3D U8TO32_LITTLE(iv + 0);
> >        x->input[15] =3D U8TO32_LITTLE(iv + 4);
> >    }
> >
> > My question is, what should happen when the block counter wraps?
> >
> > Thanks in advance.
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > https://www.irtf.org/mailman/listinfo/cfrg
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>

--000000000000a5f3f205805bd131
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div>Dear Jeff, Dear Ken=
ny,</div><div><br></div><div>I totally agree with Kenny, that the best prac=
tice here seems to be returning an error in the case of reaching maximal va=
lue, disallowing wrapping (and starting the <span class=3D"" id=3D":c0f.1" =
tabindex=3D"-1" style=3D"">blockcounter</span> at 0 or 1 for each fresh non=
ce).=C2=A0</div><div>In all secure <span class=3D"" id=3D":c0f.2" tabindex=
=3D"-1" style=3D"">crypto</span> applications that I&#39;m aware of such a =
check exists, protecting both from repeating the value of a counter (for th=
e same key and nonce) and from exceeding the limit for key lifetime (some i=
nformation on that issue can be found in=C2=A0https://<span class=3D"" id=
=3D":c0f.3" tabindex=3D"-1" style=3D"">datatracker</span>.<span class=3D"" =
id=3D":c0f.4" tabindex=3D"-1" style=3D"">ietf</span>.org/doc/draft-<span cl=
ass=3D"" id=3D":c0f.5" tabindex=3D"-1" style=3D"">irtf</span>-<span class=
=3D"" id=3D":c0f.6" tabindex=3D"-1" style=3D"">cfrg</span>-re-keying/). In =
terms of <span class=3D"" id=3D":c0f.7" tabindex=3D"-1" style=3D"">CryptoAP=
I</span>, the <span class=3D"" id=3D":c0f.8" tabindex=3D"-1" style=3D"">Cry=
ptEncrypt</span> function may return FALSE with an error code of=C2=A0<span=
 class=3D"" id=3D":c0f.9" tabindex=3D"-1" style=3D"">NTE</span>_BAD_KEY if =
it is called in such a way that the total <span class=3D"" id=3D":c0f.10" t=
abindex=3D"-1" style=3D"">plaintext</span> size processed with the used key=
 exceeds a certain limit.=C2=A0</div><div><br></div><div>Regarding the call=
ing application, it should be aware of limits for <span class=3D"" id=3D":c=
0f.11" tabindex=3D"-1" style=3D"">plaintext</span> size to be encrypted (su=
ch a limit should be defined in the documentation for a library, e.g. when =
describing error codes and their meaning) and prevent unlimited usage of a =
single symmetric key.</div><div><br></div><div>Best regards,</div><div><spa=
n class=3D"" id=3D":c0f.12" tabindex=3D"-1" style=3D"">Stanislav</span> <sp=
an class=3D"" id=3D":c0f.13" tabindex=3D"-1" style=3D"">Smyshlyaev</span></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
=D1=81=D0=B1, 26 =D1=8F=D0=BD=D0=B2. 2019 =D0=B3. =D0=B2 15:06, Paterson, K=
enny &lt;Kenny.Paterson@<span class=3D"" id=3D":c0f.14" tabindex=3D"-1" sty=
le=3D"">rhul</span>.ac.<span class=3D"" id=3D":c0f.15" tabindex=3D"-1" styl=
e=3D"">uk</span>&gt;:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex">Hi Jeff,<br>
<br>
As you&#39;ll know it&#39;s crucial to avoid using repeated (blockcounter, =
nonce) combinations under the same key for this algorithm. <br>
<br>
In my view, the best way to do that is for implementations to return an err=
or in the event of any overflow of blockcounter, and to ensure that this is=
 a rare event by always starting blockcounter at 0. I don&#39;t see any rea=
son not to start with this value (you might use 1 rather than 0 in a specif=
ic situation like building an AEAD if value 0 was already being used to gen=
erate keys for Poly1305, but you&#39;re still really starting your new ChaC=
ha20 context with 0 there too). <br>
<br>
This is possible to enforce if, for example, there&#39;s a wrapper around t=
he raw ChaCha20 algorithm that does not expose the blockcounter to the call=
ing application, but that instead manages it internally on a per context ba=
sis. To me, this seems like a sensible way to handle the issue (but then I&=
#39;m not a pro crypto developer). <br>
<br>
If you really must wrap blockcounter then I&#39;d argue that it should be d=
one without touching the nonce. The reason is that this new nonce (created =
by incrementing the existing nonce or whatever) could legitimately be used =
in a different ChaCha instance under the same key, and your code may have n=
o control over what blocknumbers would be used with that nonce value, there=
by increasing the risk of reuse of (blockcounter,nonce) pairs. But you&#39;=
d still need checks to make sure there were no blockcounter repeats if you =
just wrapped without touching the nonce. Hence better to start low and disa=
llow wraps (which is after all just such a check!). <br>
<br>
I&#39;m interested to know what other people think. I see it as really bein=
g a tricky (if common) crypto API design issue. <br>
<br>
Cheers,<br>
<br>
Kenny<br>
<br>
<br>
&gt; On 26 Jan 2019, at 03:21, Jeffrey Walton &lt;<a href=3D"mailto:noloade=
r@gmail.com" target=3D"_blank">noloader@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt; Hi Everyone,<br>
&gt; <br>
&gt; This question is moved from another list to CFRG. It was suggested<br>
&gt; CFRG is a better forum for the question.<br>
&gt; <br>
&gt; I&#39;m working on test vectors for an implementation of the IETF&#39;=
s<br>
&gt; version of ChaCha from RFC 8439. According to Section 2.4, page 9<br>
&gt; (<a href=3D"https://tools.ietf.org/html/rfc8439#section-2.4" rel=3D"no=
referrer" target=3D"_blank">https://tools.ietf.org/html/rfc8439#section-2.4=
</a>):<br>
&gt; <br>
&gt;=C2=A0 =C2=A0The inputs to ChaCha20 are:<br>
&gt;=C2=A0 =C2=A0 =C2=A0 o=C2=A0 A 256-bit key<br>
&gt;=C2=A0 =C2=A0 =C2=A0 o=C2=A0 A 32-bit initial counter.=C2=A0 This can b=
e set to any number, but will<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0usually be zero or one...<br>
&gt;=C2=A0 =C2=A0 =C2=A0 o=C2=A0 A 96-bit nonce.=C2=A0 In some protocols, t=
his is known as the<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Initialization Vector.<br>
&gt;=C2=A0 =C2=A0 =C2=A0 o=C2=A0 An arbitrary-length plaintext<br>
&gt; <br>
&gt; Now a test vector. We set:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 Key - All 0&#39;s<br>
&gt;=C2=A0 =C2=A0 IV - All 0&#39;s<br>
&gt;=C2=A0 =C2=A0 Initial Counter Block - 0xfffffffe<br>
&gt;=C2=A0 =C2=A0 Plaintext -=C2=A0 256 bytes of all 0&#39;s<br>
&gt; <br>
&gt; After the first two 64-bit blocks the counter will wrap around to 0.<b=
r>
&gt; This is where the problem arises.<br>
&gt; <br>
&gt; One implementation I am aware wraps the block counter. It produces a k=
eystream:<br>
&gt; <br>
&gt; 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3<br>
&gt; F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5<br>
&gt; ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D<br>
&gt; 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D<br>
&gt; 76B8E0ADA0F13D90405D6AE55386BD28BDD219B8A08DED1AA836EFCC8B770DC7<br>
&gt; DA41597C5157488D7724E03FB8D84A376A43B8F41518A11CC387B669B2EE6586<br>
&gt; 9F07E7BE5551387A98BA977C732D080DCB0F29A048E3656912C6533E32EE7AED<br>
&gt; 29B721769CE64E43D57133B074D839D531ED1F28510AFB45ACE10A1F4B794D6F<br>
&gt; <br>
&gt; Another implementation I am aware wraps the block counter, but it also=
<br>
&gt; increments the high word of the nonce, similar to the way original<br>
&gt; ChaCha used a 64-bit block counter. It produces a keystream:<br>
&gt; <br>
&gt; 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3<br>
&gt; F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5<br>
&gt; ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D<br>
&gt; 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D<br>
&gt; 3DB41D3AA0D329285DE6F225E6E24BD59C9A17006943D5C9B680E3873BDC683A<br>
&gt; 5819469899989690C281CD17C96159AF0682B5B903468A61F50228CF09622B5A<br>
&gt; 46F0F6EFEE15C8F1B198CB49D92B990867905159440CC723916DC00128269810<br>
&gt; 39CE1766AA2542B05DB3BD809AB142489D5DBFE1273E7399637B4B3213768AAA<br>
&gt; <br>
&gt; I don&#39;t believe the issue arises in Bernsein&#39;s version of ChaC=
ha<br>
&gt; because the block counter is 64-bits and always starts at 0. Bernstein=
<br>
&gt; does not allow arbitrary values for the initial block counter. The<br>
&gt; constraint is unstated in Bernstein&#39;s paper on ChaCha, but it is<b=
r>
&gt; obvious when examining his reference implementation (from chacha-ref.c=
<br>
&gt; version 20080118):<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 void ECRYPT_ivsetup(ECRYPT_ctx *x,const u8 *iv)<br>
&gt;=C2=A0 =C2=A0 {<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 x-&gt;input[12] =3D 0;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 x-&gt;input[13] =3D 0;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 x-&gt;input[14] =3D U8TO32_LITTLE(iv + 0);<=
br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 x-&gt;input[15] =3D U8TO32_LITTLE(iv + 4);<=
br>
&gt;=C2=A0 =C2=A0 }<br>
&gt; <br>
&gt; My question is, what should happen when the block counter wraps?<br>
&gt; <br>
&gt; Thanks in advance.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><b=
r>
&gt; <a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"noreferr=
er" target=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
</blockquote></div></div></div></div>

--000000000000a5f3f205805bd131--


From nobody Sat Jan 26 08:03:59 2019
Return-Path: <cloos@jhcloos.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3AC40130EB4 for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 08:03:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001,  URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=jhcloos.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 cczDvN1QVVcS for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 08:03:49 -0800 (PST)
Received: from ore.jhcloos.com (ore.jhcloos.com [192.40.56.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F2B80130EDC for <cfrg@irtf.org>; Sat, 26 Jan 2019 08:03:48 -0800 (PST)
Received: by ore.jhcloos.com (Postfix, from userid 10) id DAA5E1E3DB; Sat, 26 Jan 2019 16:03:47 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore17; t=1548518627; bh=Bt8rDiqqp/ewfCTTowyLzKkig76ODH4xuezclNc+Yoo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=vh9nmqAlAWZPe/fuRAsdnl121qfnrl9XfAzbQTjbGMDSJr/+u2FV1ozGXug/h5OHV PLbWV34uNw9XnDR5jCxbwxmUuChF3sv36yTEZ85pAHT1JCjukitXASjvA0oSUEMjhq cN0tOG9mxri31kV+YMfcH2jHhvvix8SecawVAJg8CstH8iwX6XVgL7k0FMDLbUUHjK U/6QKn7RiDIEHToQkweMw5GeXNWuYNMjWilUqhmrQtjoy0qTxcXQnJVFxJjRI8mWsP y+Dg+BdMxbxjQtlGhRT6mu/2LEM6nH3oyBcQmNhQGdZMZ5p7w1/xChlfv9b6mff5cI pvDh5QwPEB1BQ==
Received: by carbon.jhcloos.org (Postfix, from userid 500) id 4728524F66; Sat, 26 Jan 2019 16:03:41 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: Jeffrey Walton <noloader@gmail.com>
Cc: cfrg@irtf.org
In-Reply-To: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com> (Jeffrey Walton's message of "Fri, 25 Jan 2019 22:20:38 -0500")
References: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC
Copyright: Copyright 2018 James Cloos
OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Sat, 26 Jan 2019 11:03:41 -0500
Message-ID: <m3h8dvcso2.fsf@carbon.jhcloos.org>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/F3SpRyoypWejW0tp6IsBGye_JEY>
Subject: Re: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2019 16:03:58 -0000

There was discussion on one of the ietf lists that the upper 32 bits
should be incremented in such cases.

Ie, treat it as 64/64 instead of 32/96 but with the upper 32 bits of the
counter not always 0.

I do not recall any objections to that at the time.

(It just seemed obvious.)

I'm surprised any implementations do otherwise.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


From nobody Sat Jan 26 09:15:49 2019
Return-Path: <campbell@mumble.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D4FE5130F3A for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 09:15:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 gSkqln11zd6v for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 09:15:39 -0800 (PST)
Received: from jupiter.mumble.net (jupiter.mumble.net [74.50.56.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 831BF130E5F for <cfrg@irtf.org>; Sat, 26 Jan 2019 09:15:39 -0800 (PST)
Received: by jupiter.mumble.net (Postfix, from userid 1014) id EE54D60C39; Sat, 26 Jan 2019 17:15:37 +0000 (UTC)
From: Taylor R Campbell <campbell+cfrg@mumble.net>
To: noloader@gmail.com
CC: cfrg@irtf.org
In-reply-to: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com> (noloader@gmail.com)
Date: Sat, 26 Jan 2019 17:15:37 +0000
Sender: Taylor R Campbell <campbell@mumble.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20190126171537.EE54D60C39@jupiter.mumble.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/7uOL4DI37AVa8gm-R0AM9jhlPfc>
Subject: Re: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2019 17:15:47 -0000

> Date: Fri, 25 Jan 2019 22:20:38 -0500
> From: Jeffrey Walton <noloader@gmail.com>
> 
> My question is, what should happen when the block counter wraps?

You should design your _protocol_ so that

(a) it starts at block counter 0,
(b) it is limited to packets 2^32 blocks long.

If you want to handle larger messages, break them up into multiple
packets with distinct nonces.

The largest packet you are willing to _authenticate_ (you are using it
together with an authenticator like Poly1305 in your protocol, right?)
is an upper bound on the amount of your memory an adversary can waste
in a DoS attack before you can drop it on the floor.

If, on the other hand, you're confined to implementing an existing
protocol, you should implement whatever that protocol prescribes --
and write automatic tests that enshrine the behaviour.

But most protocols don't handle messages that large, partly because
they pose trivial DoS risks.  For example, in TLS, packets (`records')
are limited to 2^14 octets -- far smaller than the 2^32-block limit.

Unless you have an application that actually starts the block counter
in the middle of a message or actually uses >4 GB messages -- if
you're really concerned it might make a difference, make block counter
overflow a fail noisily.


From nobody Sat Jan 26 10:40:24 2019
Return-Path: <ynir.ietf@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83586130F26 for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 10:40:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 UH-FmUwGDTiu for <cfrg@ietfa.amsl.com>; Sat, 26 Jan 2019 10:40:20 -0800 (PST)
Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F1472130F19 for <cfrg@irtf.org>; Sat, 26 Jan 2019 10:40:19 -0800 (PST)
Received: by mail-wr1-x42e.google.com with SMTP id r10so13557120wrs.10 for <cfrg@irtf.org>; Sat, 26 Jan 2019 10:40:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Q4HOm1LoZ1/VN1SfjqPTz/6VIW56jvnckAkJK0Rk9Ig=; b=t0xJepvmaYcaxY09s1QMqSpUKO4lfUJorU2jlcZIRSacpASMnW5r+63UCTKOWTbmIX 6H5RKvVhXiFkoPp3l/Af856QrawVBKyGJPpDvkz2lDv/7ngksYn/by9B6b83MO9oIf8i tIwT+cKTl0UZCu6BjH/J4SMP/ELJ+gOu1cjeFkTnWJiJ3pl6IgvjfFjpPCrccRyRpjdg DEQbTjpM9z9Al1B4paxyt9j72J/AGcCNC+hKq6laJZGHbBgG2wfdFAgnZ3Y/7MRyzzEJ S40PCx0UfETBYJnEsh9a6k88zTUny6f+/1graVHCOlsDOMpaMS3jz033xFMRF18AGAfp 6Kew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Q4HOm1LoZ1/VN1SfjqPTz/6VIW56jvnckAkJK0Rk9Ig=; b=Q0KflE5r6NIOlT1f/DpDjudNAo+ehGx0vGzk9yQD4x6eyRspnkruLB3nNLpHZki9Bs lQkja7tQVWrqoY3ZuVHnvV16HNreWIWc4No7Vv0SN8aWas0OzV+3SSTMeCYFJOP2Xtb7 jyFuZNso091Vd4LHFUHWQAONAl8YoC7yGxwULcmHuHryRpYd9pnfkxx4NXXOXZpYIf6r jOqsvN4LCgf298dpMmiGtRxyrKY+1FW248WUl1iSIgKrKRSXMPL9RMES/sgvkJo++JmP BTozg2wFa5id9qq77If6HbbGv/Om7IAijZxWlyNBlc0QepQeeRTn+/xawHPk80iB3f8L En2Q==
X-Gm-Message-State: AJcUukcJL3NQE2E685GQCFL5ob/U9tv69EB3vYuKdlAL2JH3iaG/KKuX F00HdNzn+A8pDVleO/Bynag=
X-Google-Smtp-Source: ALg8bN726NE13+IjJLCm9snPsbmeyiI3FnD72LuQahGMDYd4cMG1S0f+00VTO/OnlQ3n9072vXIN+Q==
X-Received: by 2002:adf:a50c:: with SMTP id i12mr15048962wrb.220.1548528018234;  Sat, 26 Jan 2019 10:40:18 -0800 (PST)
Received: from [192.168.1.12] ([46.120.57.147]) by smtp.gmail.com with ESMTPSA id h62sm51009009wmf.11.2019.01.26.10.40.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Jan 2019 10:40:17 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com>
Date: Sat, 26 Jan 2019 20:40:14 +0200
Cc: cfrg@irtf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <DA990C3D-DD2A-4636-8E92-83FE6C39438B@gmail.com>
References: <CAH8yC8=0Y6qK0dHauib8fM-ybGozJJRA7b5vKnu8-dPVxwytLQ@mail.gmail.com>
To: noloader@gmail.com
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/1E8mE9uByXA4HWqyYO_jwz4nLZ8>
Subject: Re: [Cfrg] How to handle block counter wrap in IETF's ChaCha algorithm?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2019 18:40:22 -0000

Hi

For a little context, if you are using straight ChaCha20 as a cipher, =
the initial block counter should always be zero. This is true both for =
Bernstein=E2=80=99s original version (with a 64/64 split of block =
counter/nonce) and with the RFC 8439 version (with the 32/96 split).

The only reason we made this a parameter is because of the AEAD =
construction where we use the zero block counter for creating the =
Poly1305 key, and encryption starts at block counter =3D 1.

In retrospect we could have made the API simpler by eliminating this =
parameter and always starting with zero.  Generating the Poly1305 key =
only requires a unique value for block counter, not any specific one.  =
We could have,  perhaps should have gone with 0xffffffff.

Unfortunately, by now it=E2=80=99s too late to make this change, as this =
algorithm is implemented in many libraries. That said, the only thing =
that is seeing a lot of usage is the AEAD, and for the AEAD the initial =
block counter is set at 1.

Yoav

> On 26 Jan 2019, at 5:20, Jeffrey Walton <noloader@gmail.com> wrote:
>=20
> Hi Everyone,
>=20
> This question is moved from another list to CFRG. It was suggested
> CFRG is a better forum for the question.
>=20
> I'm working on test vectors for an implementation of the IETF's
> version of ChaCha from RFC 8439. According to Section 2.4, page 9
> (https://tools.ietf.org/html/rfc8439#section-2.4):
>=20
>   The inputs to ChaCha20 are:
>      o  A 256-bit key
>      o  A 32-bit initial counter.  This can be set to any number, but =
will
>         usually be zero or one...
>      o  A 96-bit nonce.  In some protocols, this is known as the
>         Initialization Vector.
>      o  An arbitrary-length plaintext
>=20
> Now a test vector. We set:
>=20
>    Key - All 0's
>    IV - All 0's
>    Initial Counter Block - 0xfffffffe
>    Plaintext -  256 bytes of all 0's
>=20
> After the first two 64-bit blocks the counter will wrap around to 0.
> This is where the problem arises.
>=20
> One implementation I am aware wraps the block counter. It produces a =
keystream:
>=20
> 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
> F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
> ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
> 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
> 76B8E0ADA0F13D90405D6AE55386BD28BDD219B8A08DED1AA836EFCC8B770DC7
> DA41597C5157488D7724E03FB8D84A376A43B8F41518A11CC387B669B2EE6586
> 9F07E7BE5551387A98BA977C732D080DCB0F29A048E3656912C6533E32EE7AED
> 29B721769CE64E43D57133B074D839D531ED1F28510AFB45ACE10A1F4B794D6F
>=20
> Another implementation I am aware wraps the block counter, but it also
> increments the high word of the nonce, similar to the way original
> ChaCha used a 64-bit block counter. It produces a keystream:
>=20
> 032CC123482C31711F94C941AF5AB1F4155784332ED5348FE79AEC5EAD4C06C3
> F13C280D8CC49925E4A6A5922EC80E13A4CDFA840C70A1427A3CB699166991A5
> ACE4CD09E294D1912D4AD205D06F95D9C2F2BFCF453E8753F128765B62215F4D
> 92C74F2F626C6A640C0B1284D839EC81F1696281DAFC3E684593937023B58B1D
> 3DB41D3AA0D329285DE6F225E6E24BD59C9A17006943D5C9B680E3873BDC683A
> 5819469899989690C281CD17C96159AF0682B5B903468A61F50228CF09622B5A
> 46F0F6EFEE15C8F1B198CB49D92B990867905159440CC723916DC00128269810
> 39CE1766AA2542B05DB3BD809AB142489D5DBFE1273E7399637B4B3213768AAA
>=20
> I don't believe the issue arises in Bernsein's version of ChaCha
> because the block counter is 64-bits and always starts at 0. Bernstein
> does not allow arbitrary values for the initial block counter. The
> constraint is unstated in Bernstein's paper on ChaCha, but it is
> obvious when examining his reference implementation (from chacha-ref.c
> version 20080118):
>=20
>    void ECRYPT_ivsetup(ECRYPT_ctx *x,const u8 *iv)
>    {
>        x->input[12] =3D 0;
>        x->input[13] =3D 0;
>        x->input[14] =3D U8TO32_LITTLE(iv + 0);
>        x->input[15] =3D U8TO32_LITTLE(iv + 4);
>    }
>=20
> My question is, what should happen when the block counter wraps?
>=20
> Thanks in advance.
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jan 28 06:54:12 2019
Return-Path: <yonezawa@lepidum.co.jp>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 10CB8130E76 for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 06:54:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.042
X-Spam-Level: 
X-Spam-Status: No, score=-2.042 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lepidum-co-jp.20150623.gappssmtp.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 eWkdwPD4Z4Ez for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 06:54:03 -0800 (PST)
Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3CDB0130E83 for <cfrg@irtf.org>; Mon, 28 Jan 2019 06:54:02 -0800 (PST)
Received: by mail-pg1-x52a.google.com with SMTP id c25so7312982pgb.4 for <cfrg@irtf.org>; Mon, 28 Jan 2019 06:54:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lepidum-co-jp.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=ihqXp28G9B/sHqfgFz6XsB8149Rgw/eSD0kl5/0IblI=; b=nIgPLlcVwufJDZTBj7AQPH7QPGtUo8wEuvDE723tnm7frVe7M7/rJOjivJM0BaAVz7 DvCRadOgOdbWbDctonLfKVVMCO3ooSaBmBMj9OaCgAhy+Z4YRkVRgXw4W1QA4ROvkW7j F6BYmFvsRcL9cFvk8ZXC7tDJDw8IeOJuXL7mT6bSANu0/9C5uVXI4Oe/cOil0EdU0Vn1 7r0tJjKi1dxDF/o4uwa6ocVT02uPQObAjJgkySvM1EMndahGTmjx1SwD5YS5C+sFFUew v96zxQqppwChmJBHGZ+ZuyrebkNOnwRlhFCKJXnilm0yc8T23CgwAKFekXPfAKDsDuEe IDog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=ihqXp28G9B/sHqfgFz6XsB8149Rgw/eSD0kl5/0IblI=; b=iSPtfkXMmxf2CRr3Kzs87nukYNs52wL0+I/SZGrMHJ3ADE7KyEzoZlNg/AQRACWYIj gJoPY77pXykKyvqLsyOrKi2rj0DKL7mNEtnmUJk7RJG5Thn3jjDesqtBDPMjRO1ZrYjB qhAkYx0sA/ll+5w/y/JM6WvcA1b7nC+p92F13wkA0movyg+sUit2X7JFS3NakyKHHFCv EF6O4ZyviV/UETiSdlG9+oZGc6qJzjtgls2tNtgiOHK/Kftq5T0CnB6ivghM5faUYjlr eTMTvaIc/ctOdxlh9oKwtAEggbsuO/LDjGWI0R7Od7ZWloSATPNFs60cuU2/MItalLsu BrMw==
X-Gm-Message-State: AJcUukd28pXgG2KZ0XiyHhZA6Ri9VscIkym/st8xV/0dTl0CVyqIUopd p+jbcLo/bKrembrqot4BYgg3NlfBiCf9kP9NgPd5QvRJikU5egg5XQiqc5eYS+VayMviEIzhKra K0cETBk3dt24yGeHotQk7G2wgf1KlAKhJvgJLDr9NOLfdmuh2hFHbJwcyN40=
X-Google-Smtp-Source: ALg8bN5t5aVsejjFfFDQPQjvsN5en4GspG8wMvUVVfauIYDOmMUK1ntx/1+iffM77oTYkaBW3c/43g==
X-Received: by 2002:a62:c583:: with SMTP id j125mr22353749pfg.37.1548687241663;  Mon, 28 Jan 2019 06:54:01 -0800 (PST)
Received: from [192.168.210.172] (ppp121.fix.east.sannet.ne.jp. [210.157.220.121]) by smtp.gmail.com with ESMTPSA id e9sm40228543pff.5.2019.01.28.06.53.59 for <cfrg@irtf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 06:54:00 -0800 (PST)
To: cfrg@irtf.org
From: Shoko YONEZAWA <yonezawa@lepidum.co.jp>
Message-ID: <030efaab-7a2d-8743-89a7-28fe61211cea@lepidum.co.jp>
Date: Mon, 28 Jan 2019 23:53:55 +0900
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Klgld8RJiw1rfsknzgKCdSwezDY>
Subject: [Cfrg] I-D Action: draft-yonezawa-pairing-friendly-curves-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Jan 2019 14:54:10 -0000

Hi there,

we have submitted an Internet-Draft about pairing-friendly curves.
This is a revision of draft-kato-threat-pairing 
(https://datatracker.ietf.org/doc/draft-kato-threat-pairing/).

Our I-D introduces pairing-friendly curves used for constructing
highly-functional crypto-based protocols.
We describe secure parameters for pairing-frinedly curves
reflecting the recent result on the remarkable attack
by Kim and Barbulescu.

I would be grateful if you are interested in our draft
and kindly read it. Your comments are welcome.

Thank you,
Shoko YONEZAWA

---
A New Internet-Draft is available from the on-line Internet-Drafts 
directories.


         Title           : Pairing-Friendly Curves
         Authors         : Shoko Yonezawa
                           Sakae Chikara
                           Tetsutaro Kobayashi
                           Tsunekazu Saito
	Filename        : draft-yonezawa-pairing-friendly-curves-00.txt
	Pages           : 17
	Date            : 2019-01-27

Abstract:
    This memo introduces pairing-friendly curves used for constructing
    pairing-based cryptography.  It describes recommended parameters for
    each security level and recent implementations of pairing-friendly
    curves.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-yonezawa-pairing-friendly-curves/

There are also htmlized versions available at:
https://tools.ietf.org/html/draft-yonezawa-pairing-friendly-curves-00
https://datatracker.ietf.org/doc/html/draft-yonezawa-pairing-friendly-curves-00


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Mon Jan 28 07:17:43 2019
Return-Path: <raphael@wire.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 82E8F129A87 for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 07:17:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.041
X-Spam-Level: 
X-Spam-Status: No, score=-2.041 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=wire-com.20150623.gappssmtp.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 CqGw3wC4WfPk for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 07:17:39 -0800 (PST)
Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D72CF127598 for <cfrg@irtf.org>; Mon, 28 Jan 2019 07:17:38 -0800 (PST)
Received: by mail-ed1-x530.google.com with SMTP id h15so13298655edb.4 for <cfrg@irtf.org>; Mon, 28 Jan 2019 07:17:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wire-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:message-id:date:to; bh=xrsdNfsNtoNJaG0t+uA38k+fWvxQ8XFEU4MNRZYu0nA=; b=c3YTxRnr6jyvaPOiFGOY28lYld2412GcS4rVrJGpd4+J3Qkf2PNanKJZn4N2JI+ZJX qb5ipSJj/RXQSUpqauhMEG2XhvMdkaGtuxx/8Dj7eZb1loSfaf5zYk/3QMx9nixEBdss GmiaNSymEsw7lbZ+PZMZgko235zyvpThbxa+lxshdIH7qTx/cUx6lohmqUPJFe2s610J sL5jwkLrxNZqlpDKHQ7Akq6zQoGxgyA29iCgQMhKJ33iIQL/pYFzHnlJFCW3dsbsF0CE cBm6u1IgCwVdZbVcka+BMqqm6YqSTi1NDcCFguChC5U8cHsTIfKo6T2WLN2HhfEyjHwY 0OvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=xrsdNfsNtoNJaG0t+uA38k+fWvxQ8XFEU4MNRZYu0nA=; b=iDn3CvH2bv4Jv+IF7bTRdieg+lC3LUxVyxmPTNgLZnlWiUD77t9hsAYhtTKB7E5lw+ w9qV8UbGTFCh2Ff2iZrJgwg/rQhALqqPvsZIzV8uTrLiKEFhVTVNceOPY0KzTQ5FFK6h 1WO1IP+e2hOFkI3mihZ0o+KGGqkkBjZiC7L4hPsPZQSasvMB9AmpRbvdbBUBqEkB0UKX 1DAy4R8uCHyfd3btDu5KA7ydq3ttnlBmrC/Dk/bouGYnRj+DGdNvm0VaILKgJAqISRJe 2A1sQYOANmoeHv9JM2r2iQCM1HZAmUPwTEj4Xkb6gelcn0+oP7wTwSvWARhLgrej2Fwy iNLw==
X-Gm-Message-State: AJcUukdhN1jqRwQpwbmnbo5e4iti33uxjAF4iKFrI5XcHl9k0TDjCuTp 7O5P7L+/Z0v/HP/tD2YBwZyfaH/V5d3H6A==
X-Google-Smtp-Source: ALg8bN7ZsyxWJdkG+HabiLTP8tf1IXnEirGrHto7IY4CBvyEy8Rrr9VxACSzNEMt54R63ocKP36wIg==
X-Received: by 2002:a05:6402:144c:: with SMTP id d12mr22662147edx.83.1548688656579;  Mon, 28 Jan 2019 07:17:36 -0800 (PST)
Received: from rmbp.wire.local (h-62.96.148.44.host.de.colt.net. [62.96.148.44]) by smtp.gmail.com with ESMTPSA id gy12-v6sm7891181ejb.44.2019.01.28.07.17.34 for <cfrg@irtf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 07:17:35 -0800 (PST)
From: Raphael Robert <raphael@wire.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_E419957E-EE50-4444-ADBF-3795DF6CF4CD"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Message-Id: <4989B595-D57C-4D40-8B68-AB0AF8804AD3@wire.com>
Date: Mon, 28 Jan 2019 16:17:33 +0100
To: cfrg@irtf.org
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/iw3QT8e_m2M91-7-eW6YIHJNhtk>
Subject: [Cfrg] Fwd: New Version Notification for draft-barnes-cfrg-hpke-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Jan 2019 15:17:42 -0000

--Apple-Mail=_E419957E-EE50-4444-ADBF-3795DF6CF4CD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hey Richard,

The proposal seems rather generic to me and I like the channel binding =
to the responder's public key.

A few comments:

 - There seems to be some terminology mismatch between (receiver, =
responder and recipient) also possibly between (initiator and sender).
 - I suppose the ciphersuites are inspired by TLS. I'd like to raise the =
question if blake2 wouldn't make sense for the non-NIST ones.
 - The points brought up in Appendix A are important. In particular, I =
think it would be worthwhile investigating if a general KEM mechanism =
wouldn't be the better choice, potentially paving the way for PQ =
primitives.

Thanks

Raphael

> Hi CFRG folks,
>=20
> I've just posted this draft that Karthik and I have been working on.  =
You
> may recall my having mentioned it at the IETF in Bangkok; it took us a =
bit
> longer than expected to get our ducks in a row :)
>=20
> The idea here is to write a clean, easy-to-use spec for hybrid =
public-key
> encryption.  (We're using the name "ECIES", but as the draft notes, =
the
> idea is clearly more general.)  This primitive has come up in IETF =
work on
> MLS and ESNI [0][1], and in several other protocols, e.g., through the =
NaCl
> "box" API [2].  The hope here is to have a single spec that unifies =
these
> ideas and can be the target of formal verification.
>=20
> I admit that there's a little bit of XKCD#927 here [3], but I think =
there's
> good work to do here in terms of addressing some more modern use cases
> (e.g., streaming / multiple encryptions from a single DH) and possibly
> enabling better post-quantum support by generalizing to KEM instead of =
DH.
>=20
> This is obviously still at -00 quality, but we wanted to go ahead and =
ask
> whether this was a topic of interest to folks in CFRG.
>=20
> Thanks,
> --Richard
>=20
> [0]
> =
https://github.com/mlswg/mls-protocol/blob/master/draft-ietf-mls-protocol.=
md#direct-paths =
<https://github.com/mlswg/mls-protocol/blob/master/draft-ietf-mls-protocol=
.md#direct-paths>
> [1] https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1 =
<https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1>
> [2] https://nacl.cr.yp.to/box.html <https://nacl.cr.yp.to/box.html>
> [3] https://xkcd.com/927/ <https://xkcd.com/927/>
>=20
>=20
> ---------- Forwarded message ---------
> From: <internet-drafts@ietf.org> <mailto:internet-drafts@ietf.org&gt>;
> Date: Fri, Jan 18, 2019 at 6:08 PM
> Subject: New Version Notification for draft-barnes-cfrg-hpke-00.txt
> To: Richard L. Barnes <rlb@ipv.sx> <mailto:rlb@ipv.sx&gt>;, =
Karthikeyan Bhargavan <
> karthikeyan.bhargavan@inria.fr> =
<mailto:karthikeyan.bhargavan@inria.fr&gt>;
>=20
>=20
>=20
> A new version of I-D, draft-barnes-cfrg-hpke-00.txt
> has been successfully submitted by Richard L. Barnes and posted to the
> IETF repository.
>=20
> Name:           draft-barnes-cfrg-hpke
> Revision:       00
> Title:          Hybrid Public Key Encryption
> Document date:  2019-01-18
> Group:          Individual Submission
> Pages:          10
> URL:
> https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.txt =
<https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.txt>
> Status:         =
https://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/ =
<https://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/>
> Htmlized:       https://tools.ietf.org/html/draft-barnes-cfrg-hpke-00 =
<https://tools.ietf.org/html/draft-barnes-cfrg-hpke-00>
> Htmlized:       =
https://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke =
<https://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke>
>=20
>=20
> Abstract:
>    This document describes a scheme for hybrid public-key encryption
>    (HPKE).  This scheme provides authenticated public key encryption =
of
>    arbitrary-sized plaintexts for a recipient public key.  HPKE works
>    for any Diffie-Hellman group and has a strong security proof.  We
>    provide instantiations of the scheme using standard and efficient
>    primitives.
>=20
>=20
>=20
>=20
> Please note that it may take a couple of minutes from the time of =
submission
> until the htmlized version and diff are available at tools.ietf.org =
<https://tools.ietf.org/>.
>=20
> The IETF Secretariat


--Apple-Mail=_E419957E-EE50-4444-ADBF-3795DF6CF4CD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">Hey Richard,</div><div class=3D""><br class=3D""></div><div =
class=3D"">The proposal seems rather generic to me and I like the =
channel binding to the responder's public key.</div><div class=3D""><br =
class=3D""></div><div class=3D"">A few comments:</div><div class=3D""><br =
class=3D""></div><div class=3D"">&nbsp;- There seems to be some =
terminology mismatch between (receiver, responder and recipient) also =
possibly between (initiator and sender).</div><div class=3D"">&nbsp;- I =
suppose the ciphersuites are inspired by TLS. I'd like to raise the =
question if blake2 wouldn't make sense for the non-NIST ones.</div><div =
class=3D"">&nbsp;- The points brought up in Appendix A are important. In =
particular, I think it would be worthwhile investigating if a general =
KEM mechanism wouldn't be the better choice, potentially paving the way =
for PQ primitives.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Thanks</div><div class=3D""><br class=3D""></div><div =
class=3D"">Raphael</div><div class=3D""><br class=3D""></div><div =
class=3D""><blockquote type=3D"cite" class=3D""><pre class=3D"wordwrap" =
style=3D"box-sizing: border-box; font-family: SFMono-Regular, Menlo, =
Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, =
monospace; font-size: 12.25px; margin-top: 0px; margin-bottom: 1rem; =
overflow: auto; color: rgb(33, 37, 41); white-space: pre-wrap; =
overflow-wrap: normal; word-break: normal; padding: 0px; =
font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: =
rgb(255, 255, 255);">Hi CFRG folks,

I've just posted this draft that Karthik and I have been working on.  =
You
may recall my having mentioned it at the IETF in Bangkok; it took us a =
bit
longer than expected to get our ducks in a row :)

The idea here is to write a clean, easy-to-use spec for hybrid =
public-key
encryption.  (We're using the name "ECIES", but as the draft notes, the
idea is clearly more general.)  This primitive has come up in IETF work =
on
MLS and ESNI [0][1], and in several other protocols, e.g., through the =
NaCl
"box" API [2].  The hope here is to have a single spec that unifies =
these
ideas and can be the target of formal verification.

I admit that there's a little bit of XKCD#927 here [3], but I think =
there's
good work to do here in terms of addressing some more modern use cases
(e.g., streaming / multiple encryptions from a single DH) and possibly
enabling better post-quantum support by generalizing to KEM instead of =
DH.

This is obviously still at -00 quality, but we wanted to go ahead and =
ask
whether this was a topic of interest to folks in CFRG.

Thanks,
--Richard

[0]
<a =
href=3D"https://github.com/mlswg/mls-protocol/blob/master/draft-ietf-mls-p=
rotocol.md#direct-paths" rel=3D"nofollow" style=3D"box-sizing: =
border-box; color: rgb(51, 122, 183); text-decoration: none;" =
class=3D"">https://github.com/mlswg/mls-protocol/blob/master/draft-ietf-ml=
s-protocol.md#direct-paths</a>
[1] <a =
href=3D"https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1" =
rel=3D"nofollow" style=3D"box-sizing: border-box; color: rgb(51, 122, =
183); text-decoration: none;" =
class=3D"">https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1<=
/a>
[2] <a href=3D"https://nacl.cr.yp.to/box.html" rel=3D"nofollow" =
style=3D"box-sizing: border-box; color: rgb(51, 122, 183); =
text-decoration: none;" class=3D"">https://nacl.cr.yp.to/box.html</a>
[3] <a href=3D"https://xkcd.com/927/" rel=3D"nofollow" =
style=3D"box-sizing: border-box; color: rgb(51, 122, 183); =
text-decoration: none;" class=3D"">https://xkcd.com/927/</a>


---------- Forwarded message ---------
From: &lt;<a href=3D"mailto:internet-drafts@ietf.org&amp;gt" =
style=3D"box-sizing: border-box; color: rgb(51, 122, 183); =
text-decoration: none;" class=3D"">internet-drafts@ietf.org&gt;</a>;
Date: Fri, Jan 18, 2019 at 6:08 PM
Subject: New Version Notification for draft-barnes-cfrg-hpke-00.txt
To: Richard L. Barnes &lt;<a href=3D"mailto:rlb@ipv.sx&amp;gt" =
style=3D"box-sizing: border-box; color: rgb(51, 122, 183); =
text-decoration: none;" class=3D"">rlb@ipv.sx&gt;</a>;, Karthikeyan =
Bhargavan &lt;
<a href=3D"mailto:karthikeyan.bhargavan@inria.fr&amp;gt" =
style=3D"box-sizing: border-box; color: rgb(51, 122, 183); =
text-decoration: none;" class=3D"">karthikeyan.bhargavan@inria.fr&gt;</a>;=




A new version of I-D, draft-barnes-cfrg-hpke-00.txt
has been successfully submitted by Richard L. Barnes and posted to the
IETF repository.

Name:           draft-barnes-cfrg-hpke
Revision:       00
Title:          Hybrid Public Key Encryption
Document date:  2019-01-18
Group:          Individual Submission
Pages:          10
URL:
<a =
href=3D"https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.txt=
" rel=3D"nofollow" style=3D"box-sizing: border-box; color: rgb(51, 122, =
183); text-decoration: none;" =
class=3D"">https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.=
txt</a>
Status:         <a =
href=3D"https://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/" =
rel=3D"nofollow" style=3D"box-sizing: border-box; color: rgb(51, 122, =
183); text-decoration: none;" =
class=3D"">https://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/</a>
Htmlized:       <a =
href=3D"https://tools.ietf.org/html/draft-barnes-cfrg-hpke-00" =
rel=3D"nofollow" style=3D"box-sizing: border-box; color: rgb(51, 122, =
183); text-decoration: none;" =
class=3D"">https://tools.ietf.org/html/draft-barnes-cfrg-hpke-00</a>
Htmlized:       <a =
href=3D"https://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke" =
rel=3D"nofollow" style=3D"box-sizing: border-box; color: rgb(51, 122, =
183); text-decoration: none;" =
class=3D"">https://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke</a=
>


Abstract:
   This document describes a scheme for hybrid public-key encryption
   (HPKE).  This scheme provides authenticated public key encryption of
   arbitrary-sized plaintexts for a recipient public key.  HPKE works
   for any Diffie-Hellman group and has a strong security proof.  We
   provide instantiations of the scheme using standard and efficient
   primitives.




Please note that it may take a couple of minutes from the time of =
submission
until the htmlized version and diff are available at <a =
href=3D"https://tools.ietf.org/" rel=3D"nofollow" style=3D"box-sizing: =
border-box; color: rgb(51, 122, 183); text-decoration: none;" =
class=3D"">tools.ietf.org</a>.

The IETF Secretariat</pre></blockquote><div class=3D""><br =
class=3D""></div></div></body></html>=

--Apple-Mail=_E419957E-EE50-4444-ADBF-3795DF6CF4CD--


From nobody Mon Jan 28 09:52:26 2019
Return-Path: <christopherwood07@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 445A81310D8 for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 09:52:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.749
X-Spam-Level: 
X-Spam-Status: No, score=-1.749 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 e-KVT78RwLCm for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 09:52:23 -0800 (PST)
Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0E8961310D3 for <cfrg@irtf.org>; Mon, 28 Jan 2019 09:52:23 -0800 (PST)
Received: by mail-yb1-xb2a.google.com with SMTP id t11so1881606ybi.12 for <cfrg@irtf.org>; Mon, 28 Jan 2019 09:52:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IbZbgV5I6+FV0ni9UY+7t36GIPadfY8HTy6fkEIyJ5w=; b=mQWyGMiNrxWsiensNsqQaX4Tio32T5ouM37kPVYZ5WLmfgPT3o/nmtifIE79VAp2zJ pDQ51xWo6XRbbcGDvX88x9Qh8PqoU6HfLwuupkaSnRx6K/zKu3FTU6cruLSI8Mlxszh+ qcfFvyNXVaPK+7MMSuCzz3x6kYKA2U5X3habGZVpZgOnK/haZKr/Zzimj7SU0oDadPpe qOZ8VV/XPhJcB+HxUzFBwnYX8Uu6Tptp0OWVU1VqmG0NnQUcf8l92qjN0069/HJNBYIL j5OjbVPn4idwZ3AywAovmxjQh0nP7jak6fqyfQ+LIrMUK7SV7sX5sKxQw5j4LCZvarfW TjFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IbZbgV5I6+FV0ni9UY+7t36GIPadfY8HTy6fkEIyJ5w=; b=Phtk8gr3IbY0e/VrONRL6gJ7ppkwAnxruDiuH9Pa4J9YHYOEUd/7u5YQ2yNEMPX2hO 5nDa/RZxsKHoA3NNDkzqL4CVHF8nsExSDbrXdbJPieSuBs+ZqvKGQ9FRaVGuieOjhXWc mKmOSXHeu0AoNOy8jTcEHeB3as64Fu/YzOky4t/L2XK8MK4Kw06gE2DksgSlo1mVId/N 1pl20iahUhY+8IpM8AGVs2YggdXR/GsQbxaU5EDn3iYCEecb+bC91oJ6eNLOPUZ2W+Zu Btu2buBua98Sa1+DtL9V8IIXpY1fG8PjGrX+9R0GrTpXyhuZZheMbJEkpL96wVCQEmq4 tiYQ==
X-Gm-Message-State: AHQUAub6r6EBc2S7b5T73ZwyYS0jiGdnt5uUrSX/8OnGU5SVb+Obiy5X rXSpYOe0pVjfG1cRPctLdDVN1/R11YxN+eoFgggKn7I0jA0=
X-Google-Smtp-Source: AHgI3IYkvZrJSsFBBs7JWclpv2PXlhHKMA4XrMUwxc3gAm0LapPdKndNqYDK5wLeVb0TQW/9RwevgDEoqZ81DP3SrSI=
X-Received: by 2002:a25:486:: with SMTP id 128mr8757420ybe.305.1548697941986;  Mon, 28 Jan 2019 09:52:21 -0800 (PST)
MIME-Version: 1.0
References: <4989B595-D57C-4D40-8B68-AB0AF8804AD3@wire.com>
In-Reply-To: <4989B595-D57C-4D40-8B68-AB0AF8804AD3@wire.com>
From: Christopher Wood <christopherwood07@gmail.com>
Date: Mon, 28 Jan 2019 09:51:51 -0800
Message-ID: <CAO8oSX=KeW_yc8w4v+0E7GGZ1Hp0JNL8x3C5b-Jq=0YKv8XoDQ@mail.gmail.com>
To: Raphael Robert <raphael=40wire.com@dmarc.ietf.org>
Cc: cfrg@irtf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/4Mxh-O0aDmc0nI6VLqddZut8jIg>
Subject: Re: [Cfrg] Fwd: New Version Notification for draft-barnes-cfrg-hpke-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Jan 2019 17:52:25 -0000

On Mon, Jan 28, 2019 at 7:17 AM Raphael Robert
<raphael=40wire.com@dmarc.ietf.org> wrote:
>
> Hey Richard,
>
> The proposal seems rather generic to me and I like the channel binding to the responder's public key.

+1

Thanks for posting this draft, Richard! It should suit the ESNI use
case quite well. In particular, servers could advertise HPKE
ciphersuites and key shares, instead of the TLS ciphersuites and
keyshares currently used, and invoke Encrypt() with "esni" or a
similar info string for key derivation.

With regards to the questions raised in Appendix A, I am in favor of
generalizing this to work with any KEM, especially given the rationale
Raphael lists below. The streaming variant is tricky, though, as we
would ideally not want to turn this into a full protocol. In any case,
this is a great -00, and something I think the RG should work on.

Best,
Chris

>
> A few comments:
>
>  - There seems to be some terminology mismatch between (receiver, responder and recipient) also possibly between (initiator and sender).
>  - I suppose the ciphersuites are inspired by TLS. I'd like to raise the question if blake2 wouldn't make sense for the non-NIST ones.
>  - The points brought up in Appendix A are important. In particular, I think it would be worthwhile investigating if a general KEM mechanism wouldn't be the better choice, potentially paving the way for PQ primitives.
>
> Thanks
>
> Raphael
>
> Hi CFRG folks,
>
> I've just posted this draft that Karthik and I have been working on.  You
> may recall my having mentioned it at the IETF in Bangkok; it took us a bit
> longer than expected to get our ducks in a row :)
>
> The idea here is to write a clean, easy-to-use spec for hybrid public-key
> encryption.  (We're using the name "ECIES", but as the draft notes, the
> idea is clearly more general.)  This primitive has come up in IETF work on
> MLS and ESNI [0][1], and in several other protocols, e.g., through the NaCl
> "box" API [2].  The hope here is to have a single spec that unifies these
> ideas and can be the target of formal verification.
>
> I admit that there's a little bit of XKCD#927 here [3], but I think there's
> good work to do here in terms of addressing some more modern use cases
> (e.g., streaming / multiple encryptions from a single DH) and possibly
> enabling better post-quantum support by generalizing to KEM instead of DH.
>
> This is obviously still at -00 quality, but we wanted to go ahead and ask
> whether this was a topic of interest to folks in CFRG.
>
> Thanks,
> --Richard
>
> [0]
> https://github.com/mlswg/mls-protocol/blob/master/draft-ietf-mls-protocol.md#direct-paths
> [1] https://tools.ietf.org/html/draft-ietf-tls-esni-02#section-5.1
> [2] https://nacl.cr.yp.to/box.html
> [3] https://xkcd.com/927/
>
>
> ---------- Forwarded message ---------
> From: <internet-drafts@ietf.org>;
> Date: Fri, Jan 18, 2019 at 6:08 PM
> Subject: New Version Notification for draft-barnes-cfrg-hpke-00.txt
> To: Richard L. Barnes <rlb@ipv.sx>;, Karthikeyan Bhargavan <
> karthikeyan.bhargavan@inria.fr>;
>
>
>
> A new version of I-D, draft-barnes-cfrg-hpke-00.txt
> has been successfully submitted by Richard L. Barnes and posted to the
> IETF repository.
>
> Name:           draft-barnes-cfrg-hpke
> Revision:       00
> Title:          Hybrid Public Key Encryption
> Document date:  2019-01-18
> Group:          Individual Submission
> Pages:          10
> URL:
> https://www.ietf.org/internet-drafts/draft-barnes-cfrg-hpke-00.txt
> Status:         https://datatracker.ietf.org/doc/draft-barnes-cfrg-hpke/
> Htmlized:       https://tools.ietf.org/html/draft-barnes-cfrg-hpke-00
> Htmlized:       https://datatracker.ietf.org/doc/html/draft-barnes-cfrg-hpke
>
>
> Abstract:
>    This document describes a scheme for hybrid public-key encryption
>    (HPKE).  This scheme provides authenticated public key encryption of
>    arbitrary-sized plaintexts for a recipient public key.  HPKE works
>    for any Diffie-Hellman group and has a strong security proof.  We
>    provide instantiations of the scheme using standard and efficient
>    primitives.
>
>
>
>
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> The IETF Secretariat
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jan 28 13:36:52 2019
Return-Path: <ilariliusvaara@welho.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4DF68131224 for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 13:36:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 5NL5sia5E5JP for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 13:36:47 -0800 (PST)
Received: from welho-filter3.welho.com (welho-filter3.welho.com [83.102.41.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 776A213115A for <cfrg@irtf.org>; Mon, 28 Jan 2019 13:36:46 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by welho-filter3.welho.com (Postfix) with ESMTP id 43D265A0D for <cfrg@irtf.org>; Mon, 28 Jan 2019 23:36:44 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp3.welho.com ([IPv6:::ffff:83.102.41.86]) by localhost (welho-filter3.welho.com [::ffff:83.102.41.25]) (amavisd-new, port 10024) with ESMTP id pyYJfmxmDpGN for <cfrg@irtf.org>; Mon, 28 Jan 2019 23:36:43 +0200 (EET)
Received: from LK-Perkele-VII (87-92-19-27.bb.dnainternet.fi [87.92.19.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by welho-smtp3.welho.com (Postfix) with ESMTPSA id 9CA312321 for <cfrg@irtf.org>; Mon, 28 Jan 2019 23:36:42 +0200 (EET)
Date: Mon, 28 Jan 2019 23:36:42 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: cfrg@irtf.org
Message-ID: <20190128213642.GA2741@LK-Perkele-VII>
References: <4989B595-D57C-4D40-8B68-AB0AF8804AD3@wire.com> <CAO8oSX=KeW_yc8w4v+0E7GGZ1Hp0JNL8x3C5b-Jq=0YKv8XoDQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CAO8oSX=KeW_yc8w4v+0E7GGZ1Hp0JNL8x3C5b-Jq=0YKv8XoDQ@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Sender: ilariliusvaara@welho.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/zJgHFZgHEqIZ5baCj8d4otM8zD0>
Subject: Re: [Cfrg] Fwd: New Version Notification for draft-barnes-cfrg-hpke-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Jan 2019 21:36:50 -0000

On Mon, Jan 28, 2019 at 09:51:51AM -0800, Christopher Wood wrote:
> On Mon, Jan 28, 2019 at 7:17 AM Raphael Robert
> <raphael=40wire.com@dmarc.ietf.org> wrote:
> >
> > Hey Richard,
> >
> > The proposal seems rather generic to me and I like the channel
> > binding to the responder's public key.
> 
> +1
> 
> Thanks for posting this draft, Richard! It should suit the ESNI use
> case quite well. In particular, servers could advertise HPKE
> ciphersuites and key shares, instead of the TLS ciphersuites and
> keyshares currently used, and invoke Encrypt() with "esni" or a
> similar info string for key derivation.

How is the binding to main key exchange done (I just remember there
were some nontrivial issues there)?

That is, the ESNI ciphertexts must be bound to the client hello those
are in, as otherwise cutting and pasting breaks security.

> With regards to the questions raised in Appendix A, I am in favor of
> generalizing this to work with any KEM, especially given the rationale
> Raphael lists below. The streaming variant is tricky, though, as we
> would ideally not want to turn this into a full protocol. In any case,
> this is a great -00, and something I think the RG should work on.

Yes, streaming is tricky. In fact, true stream-mode AE (byte
granularity, reliable in-order) is impossible.

The best approximations are datagram mode AE (datagram granularity,
not reliable) or sequential packet mode (datagram granularity, reliable
in-order) AE. To make things worse, there are protocols that need mode
equivalent to sequential packet mode, and protocols that absolutely
can not use mode equivalent to sequential packet mode.

> > A few comments:
> >
> >  - The points brought up in Appendix A are important. In particular,
> > I think it would be worthwhile investigating if a general KEM
> > mechanism wouldn't be the better choice, potentially paving the way
> > for PQ primitives.

Yes, I think that PQ support is important in any modern protocol (unless
one takes quantum skeptic view). And there are very few DH-compatible
PQC primitives, and the ones that exist are umm... exciting and slow.

However, I do not think any generic KEM would do, as many of those have
too high failure rate, and failures leak information about the private
key (so called reaction attack).

However, there is subclass of KEMs that are IND-CCA secure. Those could
be used (the cost of IND-CCA is higher runtime and larger messages than
generic IND-CPA KEMs).


Few other comments:

- Decryption references function "Decrypt()", which I do not see
  defined anywhere. I suppose it should be "SetupR()"?

- I would expect encryption to pack pkE inside ciphertext, as that
  is per-message and required to decrypt.

- Only one-byte ciphersuite identifier? That seems quite small.


-Ilari


From nobody Mon Jan 28 14:40:34 2019
Return-Path: <christopherwood07@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D4B91130EE9 for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 14:40:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.749
X-Spam-Level: 
X-Spam-Status: No, score=-1.749 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 FNfdtxo1hD0B for <cfrg@ietfa.amsl.com>; Mon, 28 Jan 2019 14:40:31 -0800 (PST)
Received: from mail-yw1-xc31.google.com (mail-yw1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 753BD130EE4 for <cfrg@irtf.org>; Mon, 28 Jan 2019 14:40:31 -0800 (PST)
Received: by mail-yw1-xc31.google.com with SMTP id x2so7422275ywc.9 for <cfrg@irtf.org>; Mon, 28 Jan 2019 14:40:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2ouSZPwtAakYrYBo8BFsaZxcLqqsXA/Uzm7p9bo+5N8=; b=DdqjRgAbBo+Hqe9v2L0kQWg3/aWpurX+b+vDAfSY0iBpMSje5/2mv8s8E6OMZnOqUB XTZ2f8ZMiyVUGpUfkGJ/jUnYR/NZJePOvBH3ouCIur3Ys4JVXCRrq2uc3qBIrit/4/Vp /MEBTdvimtuHtJg23T8vXwG4Oys2aEe+DsVGlAHYWWrIVj7Bj6VsCKT7aAIr7PGy+uMG pEO2WfiDGzEPi/+GOcs6c5aA1/oN6ixEfENGrfoHICcfwRnw90Jx4kqrBF9/O7WuqDdS kOrVMQGSwb1cCnVU2GZlhccqSNpaDOLXHi/xG+bb7muVUfMmZ6Ydjbz7rSvWrdMgij2O SEug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2ouSZPwtAakYrYBo8BFsaZxcLqqsXA/Uzm7p9bo+5N8=; b=k+eBQ2obg6M8OuvGkCCmhmlymdP+WWeLpr7QskOdjcefS4b20ueO6DMSerMY4ZdHel rJ0qZSxxXHeuMccAt+PEJFSD32djfb+ZPJCeUov2vwqrGm0+8Hcc3EDWY+P1pp526c0W 2VaasTfPNZ0Fnm8Svs1qhJPbVBcs+Beuq6wed2LFkRGGyX6H3qcMZegH/Hp8e9L3tCqk JsiNVJcxFXOGjvdIrJNhXDbR3actmgT0DvQrHSyDgDymv2GFXMFEVXkESWPiVgLzVJwx V/U9vyjLv9XfzWyFZxx17CEZyLrk1Ze/OgCev5CxHOrIDpK8i4Qp2WkgzPSP1QXBJHLO NQUw==
X-Gm-Message-State: AJcUukdNSQ6U4Jr1pQba/lpWt4z88tJA89oXI5SHzVzo0oX/c4yY1tdK VuKIRm5x1O87r21CIk5ir1S1LdG/UZgLxxzbgZs=
X-Google-Smtp-Source: ALg8bN4+lpbLuh37woTxvv2tOuzDCxo1f9z9vJ+FVa2OAxbJSlgWXf0kIcBkZkytih1vZGe+0XMSqAUBAbvJy5ur44A=
X-Received: by 2002:a0d:c0c1:: with SMTP id b184mr23073012ywd.263.1548715230492;  Mon, 28 Jan 2019 14:40:30 -0800 (PST)
MIME-Version: 1.0
References: <4989B595-D57C-4D40-8B68-AB0AF8804AD3@wire.com> <CAO8oSX=KeW_yc8w4v+0E7GGZ1Hp0JNL8x3C5b-Jq=0YKv8XoDQ@mail.gmail.com> <20190128213642.GA2741@LK-Perkele-VII>
In-Reply-To: <20190128213642.GA2741@LK-Perkele-VII>
From: Christopher Wood <christopherwood07@gmail.com>
Date: Mon, 28 Jan 2019 14:39:59 -0800
Message-ID: <CAO8oSXkqYw09w8VT1RoiAo+73V3LCp0osCBFLVheDtt=sA0rYw@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Cc: cfrg@irtf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Zz-7YxpKp61AuBbudklVb2ryvKg>
Subject: Re: [Cfrg] Fwd: New Version Notification for draft-barnes-cfrg-hpke-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Jan 2019 22:40:33 -0000

On Mon, Jan 28, 2019 at 1:37 PM Ilari Liusvaara
<ilariliusvaara@welho.com> wrote:
>
>
> On Mon, Jan 28, 2019 at 09:51:51AM -0800, Christopher Wood wrote:
> > On Mon, Jan 28, 2019 at 7:17 AM Raphael Robert
> > <raphael=40wire.com@dmarc.ietf.org> wrote:
> > >
> > > Hey Richard,
> > >
> > > The proposal seems rather generic to me and I like the channel
> > > binding to the responder's public key.
> >
> > +1
> >
> > Thanks for posting this draft, Richard! It should suit the ESNI use
> > case quite well. In particular, servers could advertise HPKE
> > ciphersuites and key shares, instead of the TLS ciphersuites and
> > keyshares currently used, and invoke Encrypt() with "esni" or a
> > similar info string for key derivation.
>
> How is the binding to main key exchange done (I just remember there
> were some nontrivial issues there)?
>
> That is, the ESNI ciphertexts must be bound to the client hello those
> are in, as otherwise cutting and pasting breaks security.

The CH would be passed in as additional data, as it is in the current draft.

>
> > With regards to the questions raised in Appendix A, I am in favor of
> > generalizing this to work with any KEM, especially given the rationale
> > Raphael lists below. The streaming variant is tricky, though, as we
> > would ideally not want to turn this into a full protocol. In any case,
> > this is a great -00, and something I think the RG should work on.
>
> Yes, streaming is tricky. In fact, true stream-mode AE (byte
> granularity, reliable in-order) is impossible.
>
> The best approximations are datagram mode AE (datagram granularity,
> not reliable) or sequential packet mode (datagram granularity, reliable
> in-order) AE. To make things worse, there are protocols that need mode
> equivalent to sequential packet mode, and protocols that absolutely
> can not use mode equivalent to sequential packet mode.
>
> > > A few comments:
> > >
> > >  - The points brought up in Appendix A are important. In particular,
> > > I think it would be worthwhile investigating if a general KEM
> > > mechanism wouldn't be the better choice, potentially paving the way
> > > for PQ primitives.
>
> Yes, I think that PQ support is important in any modern protocol (unless
> one takes quantum skeptic view). And there are very few DH-compatible
> PQC primitives, and the ones that exist are umm... exciting and slow.

:-)

> However, I do not think any generic KEM would do, as many of those have
> too high failure rate, and failures leak information about the private
> key (so called reaction attack).
>
> However, there is subclass of KEMs that are IND-CCA secure. Those could
> be used (the cost of IND-CCA is higher runtime and larger messages than
> generic IND-CPA KEMs).

If generalized to work KEMs, could we not restrict the algorithm to
those KEMs we deem appropriate via ciphersuites?

>
>
> Few other comments:
>
> - Decryption references function "Decrypt()", which I do not see
>   defined anywhere. I suppose it should be "SetupR()"?
>
> - I would expect encryption to pack pkE inside ciphertext, as that
>   is per-message and required to decrypt.
>
> - Only one-byte ciphersuite identifier? That seems quite small.

It could probably be expanded to two bytes.

Best,
Chris

>
>
> -Ilari
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Thu Jan 31 07:51:29 2019
Return-Path: <housley@vigilsec.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B10B9124408 for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 07:51:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
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 eyQXhKZgMYQ4 for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 07:51:27 -0800 (PST)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D04CF1200D7 for <cfrg@irtf.org>; Thu, 31 Jan 2019 07:51:26 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 0F4F83004B0 for <cfrg@irtf.org>; Thu, 31 Jan 2019 10:33:09 -0500 (EST)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1]) by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l4o64v_r6LnQ for <cfrg@irtf.org>; Thu, 31 Jan 2019 10:33:08 -0500 (EST)
Received: from a860b60074bd.fios-router.home (pool-108-45-137-105.washdc.fios.verizon.net [108.45.137.105]) by mail.smeinc.net (Postfix) with ESMTPSA id 083873002B4 for <cfrg@irtf.org>; Thu, 31 Jan 2019 10:33:08 -0500 (EST)
From: Russ Housley <housley@vigilsec.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_FBF09445-1E35-4B2D-8801-7A7364911477"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Message-Id: <0FA48848-4403-44D5-8E5D-23AB308DB4D7@vigilsec.com>
Date: Thu, 31 Jan 2019 10:51:24 -0500
To: IRTF CFRG <cfrg@irtf.org>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/reitK1bYERzXGw0low6AnWQJYW4>
Subject: [Cfrg] NIST Report on 1st Round of PQ Algorithms
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Jan 2019 15:51:29 -0000

--Apple-Mail=_FBF09445-1E35-4B2D-8801-7A7364911477
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

NIST just posted NISTIR 8240, the Status Report on the First Round of =
the NIST Post-Quantum Cryptography Standardization Process.  It is =
available at https://doi.org/10.6028/NIST.IR.8240 =
<https://doi.org/10.6028/NIST.IR.8240>.


--Apple-Mail=_FBF09445-1E35-4B2D-8801-7A7364911477
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"WordSection1" style=3D"page: WordSection1; caret-color: rgb(0, =
0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><p =
class=3D"MsoNormal" style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; =
font-family: Calibri, sans-serif;"><span style=3D"font-size: 11pt;" =
class=3D"">NIST just posted&nbsp;</span>NISTIR 8240, the Status Report =
on the First Round of the NIST Post-Quantum Cryptography Standardization =
Process.<span style=3D"font-size: 11pt;" class=3D"">&nbsp; It is =
available at</span>&nbsp;<a href=3D"https://doi.org/10.6028/NIST.IR.8240" =
style=3D"font-size: 11pt; color: rgb(149, 79, 114);" =
class=3D"">https://doi.org/10.6028/NIST.IR.8240</a><span =
style=3D"font-size: 11pt;" class=3D"">.</span></p><p class=3D"MsoNormal" =
style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;"><o:p class=3D""></o:p></p><p class=3D"MsoNormal" =
style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;"><br class=3D""></p></div></body></html>=

--Apple-Mail=_FBF09445-1E35-4B2D-8801-7A7364911477--


From nobody Thu Jan 31 10:46:24 2019
Return-Path: <joachim@strombergson.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 28DC5130E85 for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 10:46:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
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 7Ie-3GXqAb2Z for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 10:46:20 -0800 (PST)
Received: from vsp01-out.oderland.com (vsp01-out.oderland.com [IPv6:2a02:28f0::24:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1F0AC130E78 for <cfrg@irtf.org>; Thu, 31 Jan 2019 10:46:19 -0800 (PST)
X-Scanned-Cookie: b12a05d12b23ae622f7215184e090f6a8f986438
Received: from susano.oderland.com (unknown [91.201.63.143]) by vsp-out.oderland.com (Halon) with ESMTPSA id 7c1db9b1-2588-11e9-93cc-fd2d3e39e26e; Thu, 31 Jan 2019 19:46:13 +0100 (CET)
Received: from h-205-66.a357.priv.bahnhof.se ([155.4.205.66]:33905 helo=touchy.local) by susano.oderland.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from <joachim@strombergson.com>) id 1gpHLp-000GkL-SU for cfrg@irtf.org; Thu, 31 Jan 2019 19:46:13 +0100
To: cfrg@irtf.org
References: <0FA48848-4403-44D5-8E5D-23AB308DB4D7@vigilsec.com>
From: =?UTF-8?Q?Joachim_Str=c3=b6mbergson?= <joachim@strombergson.com>
Openpgp: preference=signencrypt
Autocrypt: addr=joachim@strombergson.com; keydata= mQINBFLumVkBEADbfUsZYshgrRY9QuQcCjY7hbIIzvHMnedaK2vn8q9TQPLDtmhVquZ6xspb kjjrXmuotHV4eo3vUllHFRuvkX/wUsE7BgNiNoBYboI7HDC4wFRUNps1SRFC7Xjd81nEg5BK 3HrXjU0edygPHGW8/DFnVUD0VKtfV9XcbG2+e65skY9YMesCV+ds9tso9TWeymaKWSAk9wCF T2qH+pJ4W3xa2AQtiw5e+NKx7G6dya11W5wLcvDGOG+IKNZhI5gPF8dEpmqJpTjc7RumMQLP ef8cMpgkIltAjIMYzegSQJCTosSEJJt/EjPdNOFkZgRUYuYkdXnBOaFBZX+hau4R60NrHHDV 3rfL1CyS21hbV03sM47bDpTSmQYZCkWaddeo9cdO6iRd9YaLWubhvHxMdywdYgzO4UILWzYH 4D7sNN6DYJ9Rj9Z+IbhDf1t+RXi7AupH4lp+aV8EZlJRiXvNTZr6HqlLM8JK6/MR6pTYR9v5 elbN8E7zukSj72H+dk2if+PjFu/v7OgPHhyJ0YodqbHwF1tn9vere4lVxID71fnHEvad+CrM yR0Hc++zmnzAlpHaARWwajjKnDxBc+8wCCW2+jQmtQtUe+I/bJRLU8qEjMaDU4592+wp/7dZ VUmR8+a79hs1MbgE13tUyExJAmC6lxaBkx1cyOMGBUy3QB2zNwARAQABtC9Kb2FjaGltIFN0 cm9tYmVyZ3NvbiA8am9hY2hpbUBzdHJvbWJlcmdzb24uY29tPokCTgQTAQgAOAIbAwIeAQIX gAULCQgHAwUVCgkICwUWAgMBABYhBAJFKRAKFmde7RGad13cfFQkIuyNBQJcSaRKAAoJEF3c fFQkIuyNK+4QAIeVEeZoVipYj37fxhX5LnlUr6D7m2NOz6jsxHgoMgEAZv4M87i27NBMKwo0 5jX36IFHe9wkbPzPs8z+skXkrn9lbbIvLLvY9Qpd0IobnpBUoRcFINV0Xd1pVtZr/h/FxLuM 827MODbk9OxHH0RIKs8gZe4KtnOhuyFqvs61379dQsrBtaCy3+0NvTWTyUA+0ivIp8qHmzko 0uxKvR5AD74Pw/mkKFT4CFMK8jsOguEPDVWb4h39Aknr01J2f8r3yskoJllsnLMMQ4lmfAQd Oky0AeI5Cu0c10Y9RYmg0qJAmQxXF30sEAPw7C1ycir8x2oNQK0xecUrM1K8CUaEzEbQzR++ tNMZyiVhTyGySXeVoOlhubVuVohaDU7LQyY1K6S7TtKiObtXI4LhOcQCzANfPPIh9PmjnSYP yok/XaPvPraFSDefWVeJGbgyfH84XmSKglvXyeUN4+M2phFMMQ9vDSj6FtTMdMjC4c3AXL+R q3m9aJ4dszGwxwfT6XA+gXxVmWXXJthXql9zB8Rk3ZxwmRJ58JNfw9yUCmdMWdvM65Jp8FOg kv5SDrBF+6eo3rVM3PI4aVw4pTmBcKZ+b0TLi0feSON+6qFeZAFJ0nyi8sobT6klfwuOx+2G vi5IYJJNXIprohOB4VDCYKFBJDUZVGeCKPnkiCG0j1pagTtxuQINBFLumVkBEACt6zU2j47l LA01nu7rgcTkn+23DmxtGK19R2FwqBG7RTV/WXaRb+oZ6J3BC4AXO6IOlarn4vxHYDzMxk9z qsakAl42WE4AyixUcZAjZ+xZwOhc9LLwc5vojnkh3WSkG1diVIHYfOI6IqquAOwThnjwIu1N /pTfCDnjsHHZV5as27/XlkA15KGcIhmU2d0NM36eA4qOLg1Z6CjoxGwe12zfEpVlq/jP7vIC kmxRjKtEMtFOh401bIIg5YaZXIVUyDA6NCRUeL7+9zT47bU4+/U1E4zDb4rmSwt5UVLfAZkK 5v29bZVai+/ip5LheCE1ejjy+GOLVbMuyts3OM1an/rIIleTWzuP2Op0UDUYfi+rLwaSU4qC 7QAQ8+LeD9Kz//EmYGQFulFOizEhMGo/drQRsgujVxeXkH17ulIODQv7aUo3yROIo+ME4Ghs hI/viBRtijy/L/t6HcjC/XIrMa2L4HJSlG3aI6PD8ku6SyKegJgPfnpMsRweDm16lCW9BOIv XA/hHjN0Qb2gk7PbDmlHJpDecJTamBYXziGry6Fzgd2Q9+7BAy9uY2R8vCkaXlGmZXjKHpki 8mItL2jrccSaatTW0EOqFLYDXmj5F4U+y1w6RfUBr4+N4mGaT9CGlv9blvnT0FZfcva6HiZq xawPafrnC2jmbajtwllexSCylQARAQABiQI2BBgBCAAgAhsMFiEEAkUpEAoWZ17tEZp3Xdx8 VCQi7I0FAlxJpEoACgkQXdx8VCQi7I3riBAAps+W+WN2MXOfUTdIjkj9UIrfDQ8tXuh5M7LH /ANhfumsH24Ct6vDyqkuoH473/r2aQncjHnUFAyOBBa3YwHQOTetsoQULRQgTUu6vTmhlWGX YMfRpDPAq7bTVSmJfTSn0vIT7YjtUHcMTbTZt6TnRbxKjQR6if8TryRDISfUttamNG5IUPaK Bt5SgzddkjAnNcS3/lMkWAlqDuZE8PDpSAmlzLcan6zec3hYkoW5C6ihwrLVO4zzPk+Vw+aE GgmlXEP1gC/nUFiKVKmiWKa2Y28lpF/6tcAURCVK+WDwiIS1Bjr6OAew2pABuyojmHZXzHof ASRUiFMY7S0n1WgFX9NZDzpDy6p3hlDL8hqzKeXWSmURObyHjvSg9xvXIU5IGP/KdcwOaLi/ /W8vm5eavVsDQ4YlL/XMRuQvrpcRV/CzkzJuODadaPmNHz9C8lvjzAnH9iID6HpxvIG2Jr8S AEfTraZmgHgQAeg8LMGOt2yqwSIE/CCIPCawNDUltnpXjWRm4CKKCqDDJC9zXTqxNMJfJwt5 QtkksbtMOSU0BHjQPgmL44jJWpGo2NGiDlxhuXsovj66BMGcY3A0h4hR4RMB1IeK2fblSH72 aPHX2V8BISh0SEFxnd9/DnWWUPj8nTdRQLHRqZI2GU4lzrv2HJevbQv5OMB46d0RroV7BZk=
Message-ID: <fc0fc972-cdc4-dead-dfa9-346fcad820c5@strombergson.com>
Date: Thu, 31 Jan 2019 19:46:13 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <0FA48848-4403-44D5-8E5D-23AB308DB4D7@vigilsec.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/xeshoNraWgB7qCgmzncScLDbG40>
Subject: Re: [Cfrg] NIST Report on 1st Round of PQ Algorithms
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Jan 2019 18:46:23 -0000

Aloha!

On 2019-01-31 16:51, Russ Housley wrote:
> NIST just posted NISTIR 8240, the Status Report on the First Round of
> the NIST Post-Quantum Cryptography Standardization Process.  It is
> available at https://doi.org/10.6028/NIST.IR.8240.

And here is the list of candidates moving to the second round:

https://csrc.nist.gov/news/2019/pqc-standardization-process-2nd-round-candidates

>From the page:

The 17 Second-Round Candidate public-key encryption and
key-establishment algorithms are:
    BIKE
    Classic McEliece
    CRYSTALS-KYBER
    FrodoKEM
    HQC
    LAC
    LEDAcrypt (merger of LEDAkem/LEDApkc)
    NewHope
    NTRU (merger of NTRUEncrypt/NTRU-HRSS-KEM)
    NTRU Prime
    NTS-KEM
    ROLLO (merger of LAKE/LOCKER/Ouroboros-R)
    Round5 (merger of Hila5/Round2)
    RQC
    SABER
    SIKE
    Three Bears


The 9 Second Round Candidates for digital signatures are:
    CRYSTALS-DILITHIUM
    FALCON
    GeMSS
    LUOV
    MQDSS
    Picnic
    qTESLA
    Rainbow
    SPHINCS+


-- 
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================


From nobody Thu Jan 31 13:34:37 2019
Return-Path: <prvs=79348e6de9=uri@ll.mit.edu>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 714C2130F7B for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 13:34:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level: 
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
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 zpmd1dEh4Rf6 for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 13:34:31 -0800 (PST)
Received: from llmx3.ll.mit.edu (LLMX3.LL.MIT.EDU [129.55.12.49]) by ietfa.amsl.com (Postfix) with ESMTP id 20375130F6C for <cfrg@irtf.org>; Thu, 31 Jan 2019 13:34:30 -0800 (PST)
Received: from LLE2K16-MBX02.mitll.ad.local (LLE2K16-MBX02.mitll.ad.local) by llmx3.ll.mit.edu (unknown) with ESMTP id x0VLYRx6034638 for <cfrg@irtf.org>; Thu, 31 Jan 2019 16:34:29 -0500
From: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] NIST Report on 1st Round of PQ Algorithms
Thread-Index: AQHUuXzlPl7o8M58XkGsYsoeeYguVaXKC1KA///YQQA=
Date: Thu, 31 Jan 2019 21:23:59 +0000
Message-ID: <7C98442E-0A5B-4F1E-9087-782B17F6145C@ll.mit.edu>
References: <0FA48848-4403-44D5-8E5D-23AB308DB4D7@vigilsec.com> <fc0fc972-cdc4-dead-dfa9-346fcad820c5@strombergson.com>
In-Reply-To: <fc0fc972-cdc4-dead-dfa9-346fcad820c5@strombergson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/10.14.0.181208
x-originating-ip: [172.25.1.85]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3631796639_857375006"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-31_12:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901310157
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/CflyL0kc_P2BhQv4Jszp8r7XC1A>
Subject: Re: [Cfrg] NIST Report on 1st Round of PQ Algorithms
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Jan 2019 21:34:36 -0000

--B_3631796639_857375006
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

I personally am surprised that there are no AKE schemes - only KEM (and whi=
le you can construct an AKE from a KEM, it's usually non-trivial and expensi=
ve).

Any idea why AKE weren't submitted...?

=EF=BB=BFOn 1/31/19, 13:47, "Cfrg on behalf of Joachim Str=C3=B6mbergson" <cfrg-bounc=
es@irtf.org on behalf of joachim@strombergson.com> wrote:

    Aloha!
   =20
    On 2019-01-31 16:51, Russ Housley wrote:
    > NIST just posted NISTIR 8240, the Status Report on the First Round of
    > the NIST Post-Quantum Cryptography Standardization Process.  It is
    > available at https://doi.org/10.6028/NIST.IR.8240.
   =20
    And here is the list of candidates moving to the second round:
   =20
    https://csrc.nist.gov/news/2019/pqc-standardization-process-2nd-round-c=
andidates
   =20
    >From the page:
   =20
    The 17 Second-Round Candidate public-key encryption and
    key-establishment algorithms are:
        BIKE
        Classic McEliece
        CRYSTALS-KYBER
        FrodoKEM
        HQC
        LAC
        LEDAcrypt (merger of LEDAkem/LEDApkc)
        NewHope
        NTRU (merger of NTRUEncrypt/NTRU-HRSS-KEM)
        NTRU Prime
        NTS-KEM
        ROLLO (merger of LAKE/LOCKER/Ouroboros-R)
        Round5 (merger of Hila5/Round2)
        RQC
        SABER
        SIKE
        Three Bears
   =20
   =20
    The 9 Second Round Candidates for digital signatures are:
        CRYSTALS-DILITHIUM
        FALCON
        GeMSS
        LUOV
        MQDSS
        Picnic
        qTESLA
        Rainbow
        SPHINCS+
   =20
   =20
    --=20
    Med v=C3=A4nlig h=C3=A4lsning, Yours
   =20
    Joachim Str=C3=B6mbergson - Alltid i harmonisk sv=C3=A4ngning.
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
   =20
    _______________________________________________
    Cfrg mailing list
    Cfrg@irtf.org
    https://www.irtf.org/mailman/listinfo/cfrg
   =20

--B_3631796639_857375006
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIIUfQYJKoZIhvcNAQcCoIIUbjCCFGoCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghJDMIIE8zCCA9ugAwIBAgITWQAAOzgEdUZQjK++4gAAAAA7ODANBgkqhkiG9w0BAQsF
ADBRMQswCQYDVQQGEwJVUzEfMB0GA1UECgwWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoG
A1UECwwDUEtJMRMwEQYDVQQDDApNSVRMTCBDQS01MB4XDTE4MDgyODIxNDUxMloXDTIxMDgy
NzIxNDUxMlowYTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRv
cnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQw
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDE0zWuTga66uSgJTaWi2GCDYBG8hOb
b4ShZyF5MmwbmeMe+YTLULi0X8PRdikj2OUS4HK8VV/q/6xpz9FfyprXqN7vkWdCyFXs9iDl
Xl5ykQBho9yhpJh8bXmQNHmbePNC6vSK++E/u4bMg3geQ+mT2JFT/3ku/9s25L5HW7u+GCEV
K7xGMVk3FT75NMa6epHJpUWhokBeUBUJqc4ETGV1eAvgwhMNGvjo4OszcLxYbf4tscQE72Bg
+MRIB6Dsbv1/TUFjvJieIVWgkIJnvWDYFGkxZZVMW6DfiRAuSIRGMHpJ7MdskCkXmLpxhn6y
dTwU3XBwAy9MPR95iDOiuIUHAgMBAAGjggGyMIIBrjAdBgNVHQ4EFgQUfCB67qj53j+x7bB5
+ukYsqnhntMwDgYDVR0PAQH/BAQDAgbAMB8GA1UdIwQYMBaAFC/vu8YNHbvpav6sZ/MHOwh2
9ktZMDMGA1UdHwQsMCowKKAmoCSGImh0dHA6Ly9jcmwubGwubWl0LmVkdS9nZXRjcmwvbGxj
YTUwZgYIKwYBBQUHAQEEWjBYMC0GCCsGAQUFBzAChiFodHRwOi8vY3JsLmxsLm1pdC5lZHUv
Z2V0dG8vbGxjYTUwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9
BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiDg+Udh+ynZoathxWD6vBFhbahHx2Fy94yh/+K
cwIBZAIBCDAiBgNVHSUBAf8EGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDDDAZBgNVHREEEjAQ
gQ51cmlAbGwubWl0LmVkdTAYBgNVHSAEETAPMA0GCyqGSIb3EgIBAwEIMCcGCSsGAQQBgjcU
AgQaHhgATABMAFUAcwBlAHIAUwBpAGcALQBTAFcwDQYJKoZIhvcNAQELBQADggEBAHW6pngg
31ognccfvFn3IjuRZKpZHsQk+VeDiVBW6xBE1vGhNDWmM/hiSSWOxvBwaTobtqrhacG0J6lm
fNHiRYjCTVGp7aLbBncyCXIKncupe85QR3sBvkecnSgdP+NhSNeYgpciuRpqFnmNB1OH7/zb
yZSpk/baZMZfSAW4Y9Fg5DGj25bslHje9z4u/Ikpn2ravGcIsHItrVuiGHyopzp6IK9PYv8l
PMgxS6IKEQbduk6zHmk9fLQU0vG2KUsONKKkMJI/5kd5OTHLD3wvZIlIBOvOZD+emEDL6M8A
LHfedidOxwtuQwo4dTv/1+C8EbYqHnjGsiK2GM/O76vDAOgwggTAMIIDqKADAgECAgEGMA0G
CSqGSIb3DQEBCwUAMFYxCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGluY29sbiBMYWJv
cmF0b3J5MQwwCgYDVQQLEwNQS0kxGDAWBgNVBAMTD01JVExMIFJvb3QgQ0EtMjAeFw0xNzAz
MDIxMjAwMDBaFw0yNjAzMDIyMzU5NTlaMFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKDBZNSVQg
TGluY29sbiBMYWJvcmF0b3J5MQwwCgYDVQQLDANQS0kxEzARBgNVBAMMCk1JVExMIENBLTUw
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCnmoMOvTkfw7nq19mrWazGaa+Q83Uv
0+ATXT3q6kr+WExIMIZ87C74WCcRXpvO7uvx7HvMsYWAFHW93wQwhjytxHIOZgKNJ4VnGVDU
l+KI7g0n9+Zjt3hB3HhHbcvbe9+Y4jz+XzCiLl2OaYvICKbxvbBSCLtPEeZQ6x6Tb6EK0ym0
gvYeHO3kuuY+SJHJMltbrLnIVLxjZrNVS77zXKvu6Q3hSdkRIB7kJgEXfL+p/z/2p94bEEZ2
TnQz0TkOjG+Jq7UlXlFRtvsYcDPEQD3UNkZsWcXgC1hXG8TGknUcAhlGxVhlKlFLmNd7342s
eGy2s9YxNDnSE+eXTtb0I5LLAgMBAAGjggGcMIIBmDASBgNVHRMBAf8ECDAGAQH/AgEAMB0G
A1UdDgQWBBQv77vGDR276Wr+rGfzBzsIdvZLWTAfBgNVHSMEGDAWgBT/ycllTFOA8akMPCGu
girH7vgy+zAOBgNVHQ8BAf8EBAMCAYYwZwYIKwYBBQUHAQEEWzBZMC4GCCsGAQUFBzAChiJo
dHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExSQ0EyMCcGCCsGAQUFBzABhhtodHRwOi8v
b2NzcC5sbC5taXQuZWR1L29jc3AwNAYDVR0fBC0wKzApoCegJYYjaHR0cDovL2NybC5sbC5t
aXQuZWR1L2dldGNybC9MTFJDQTIwgZIGA1UdIASBijCBhzANBgsqhkiG9xICAQMBBjANBgsq
hkiG9xICAQMBCDANBgsqhkiG9xICAQMBBzANBgsqhkiG9xICAQMBCTANBgsqhkiG9xICAQMB
CjANBgsqhkiG9xICAQMBCzANBgsqhkiG9xICAQMBDjANBgsqhkiG9xICAQMBDzANBgsqhkiG
9xICAQMBEDANBgkqhkiG9w0BAQsFAAOCAQEAMJYRwLPJ91K7e2mA2Nj10W0o5JMHYkaa+ctL
8/xY8QzIHFI5Ij+iydpPN9KCYn/4Sy80T3aNoYkFlS0GRQXhf0nsiY7TWJwAKw4AiO/yJ37/
oRKRgtyRicvaJ6RjlHCXBOalFLw9UtpodP4/idC51lxzsolaQZraBjVe7PL95PhS7D+22Nff
InzLdIb1DBf54NwOVfPIgABtxH1fhZrja7EhR9RoUw5E1O6iWaAuP/xWhSTQFWlhyA0/kkIi
9/HXaY0hYnhcjcbPPqjpyfIhSFjjXhjqK7t2wPrSrBFLFUbnLiNlgQHrvNYF5IqgIfnSBWIr
m3rfLhpZZJ/xJ7Yf6DCCA4owggJyoAMCAQICAQEwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UE
BhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTEY
MBYGA1UEAxMPTUlUTEwgUm9vdCBDQS0yMB4XDTE2MDQyMDEyMDAwMFoXDTM1MDQxOTIzNTk1
OVowVjELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAK
BgNVBAsTA1BLSTEYMBYGA1UEAxMPTUlUTEwgUm9vdCBDQS0yMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEAv3WoBEGOOJtm4ucvaf6vKIFPs8watCd6Smwq/XeRNo7P3jPIxNPw
F398RGDUmPJIXA7idzD6j0opFIW+kLqYye9e788PV0dqaJlX8818fNDbSE+8B6hieqKTR7Vf
OI74UVQEUKVRFuRFw6uVYuvgew2Tj/C2dEee37eruQl5nHkbV2OsWnZ7O+yt+etd6HRcaXLl
P9q8WKgA3B7vkOVIMCKoAuaWj+BFq7K+WNkiyi/KdOH9JmOpbyRK4jcA7xbLnF8JFUSNg5c4
Y1BJrFaZtkCeG6Nm9p524GllkRFzPgpj8VicV+AK+9rY07dTx02kYotTnKuy0YxBAwsUXxAQ
EwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBT/ycllTFOA8akMPCGugirH
7vgy+zAfBgNVHSMEGDAWgBT/ycllTFOA8akMPCGugirH7vgy+zAOBgNVHQ8BAf8EBAMCAYYw
DQYJKoZIhvcNAQELBQADggEBAHqYfEf/3J5aMKhlYQ0PnUAbMB8jZSr9/HvjfOF00crFUCfS
rqG8JQwo+S/iq66gcp62FEgJ0fQkDgVg6m+C2ETo1LoWiSxhYCfcSIQECljlXwR8wFSayF82
2S69IqvHhdq4d58jU6gYi6ssjU4vwsvsVLRJKk/m/Cg/w8gW6YHM5ahBD6/5Ccel2fI7oSms
kO991+otrC11YfDwCFvz7Am0r+K9iVhSWta4hmIuV0YBia07eZKSO02LPgQ8YOz3ku0Yt+mh
8VWRKux2CcYjMpk+WDV0BMp75tqb6pqBFkcKvEBXqxg+8+G/umjii4H0c5kvJhaQyykbmOKm
xO9IcJIwggT2MIID3qADAgECAhNZAAA7OX5fo0OiIK0RAAAAADs5MA0GCSqGSIb3DQEBCwUA
MFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKDBZNSVQgTGluY29sbiBMYWJvcmF0b3J5MQwwCgYD
VQQLDANQS0kxEzARBgNVBAMMCk1JVExMIENBLTUwHhcNMTgwODI4MjE0NTI5WhcNMjEwODI3
MjE0NTI5WjBhMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9y
eTEPMA0GA1UECxMGUGVvcGxlMSAwHgYDVQQDExdCbHVtZW50aGFsLlVyaS41MDAxMDU4NDCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAI5Vc19RKc/69lmwhogDOjjzPQbmc8s6
Z6rzP6oUHAswDICqZWwPt+FTbKr0YTAqRNsTEN4YiW0fORK+fNRvClo0pdiCqj3DwDQZLRI4
Dak1yTsUtVe35oomQbXtO+0A0L/CowYri/UKeRG1i1/0cXSf4mAx0ed9wh2SordAb8o2FuOU
0B2ppnqjro1VFugHHX6QOggaeLFOprT5gnTZUmqM37/d4DGB9XDdTQi144zQSwSWKkaUThsy
D9CHSRNcB79HBvlZGSM+BkIbayPdhQAuz4yKsOZEWPx/6LnMotzBevSswnCDf+u9ajCgMnje
WbrZRN+xoYEuhycXyK2b8/MCAwEAAaOCAbUwggGxMB0GA1UdDgQWBBTZUpq7Rsccv42yU9UQ
4wvojOl4pzAOBgNVHQ8BAf8EBAMCBSAwHwYDVR0jBBgwFoAUL++7xg0du+lq/qxn8wc7CHb2
S1kwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sbC5taXQuZWR1L2dldGNybC9sbGNh
NTBmBggrBgEFBQcBAQRaMFgwLQYIKwYBBQUHMAKGIWh0dHA6Ly9jcmwubGwubWl0LmVkdS9n
ZXR0by9sbGNhNTAnBggrBgEFBQcwAYYbaHR0cDovL29jc3AubGwubWl0LmVkdS9vY3NwMD0G
CSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIOD5R2H7Kdmhq2HFYPq8EWFtqEfHYXr0HCD6+0g
AgFkAgEJMCUGA1UdJQQeMBwGBFUdJQAGCCsGAQUFBwMEBgorBgEEAYI3CgMEMBkGA1UdEQQS
MBCBDnVyaUBsbC5taXQuZWR1MBgGA1UdIAQRMA8wDQYLKoZIhvcSAgEDAQgwJwYJKwYBBAGC
NxQCBBoeGABMAEwAVQBzAGUAcgBFAG4AYwAtAFMAVzANBgkqhkiG9w0BAQsFAAOCAQEACyN6
Yhi9LApOPpf60ypSV2WmV3sqnrsrdlPTW+am4wMK/M/5PZmt5jFVtXaErkWYdrbMdjeo2o/G
9N2DnrFOhz7kDYM9HC9AH/rWCfoSkI/C2N6Rq/uDnRJfao61wyv37qKtanNdkp+reyLxdVPn
foVrD/VZli4UV28u4XBuYDkjXPyyiH+bb395FnxOtTA3Uz41Ohpdvr6oLPEuy0IP4MPfK5wD
mS6GXcB+ze9sYEp+DJxE7WAbkW5Y536WPl/rfWm/k6ZC1KPVSRM7mS+atk44VOgzPLXkl6Tu
6zY8tMczfr5F0om1JfN8G50s4QDUGtsMgzW+LXVDhFD24xnUojGCAf4wggH6AgEBMGgwUTEL
MAkGA1UEBhMCVVMxHzAdBgNVBAoMFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsM
A1BLSTETMBEGA1UEAwwKTUlUTEwgQ0EtNQITWQAAOzgEdUZQjK++4gAAAAA7ODANBglghkgB
ZQMEAgEFAKBpMC8GCSqGSIb3DQEJBDEiBCCsh1UKZgo/kuuAivAPFbcxfXMyIlUUgPueTWgH
1XFgzDAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xOTAxMzEy
MTIzNTlaMA0GCSqGSIb3DQEBAQUABIIBAGT9yvgkHfyF61R290tlk8CkYMussJmTWWsbUdMT
uscqask0F5+uPSsrIN5S4ofWqL/OF3Edi1kr0/+4IPN9E52w8L04biALFkM6fR/Q1w5Bfp9q
7OHKqk5ENXIPNa3euzwS6tsHzsPAVH2WJyASqWcetTA9klgkcjv4VEnkaxtjEfhgnJYz98gv
FFxSEmn7Bb4bkqdhEOW6kUMLaakJCP21Hwr3Fynf6/4bmeF7T2tCm0wjm/k0oyRNIHpsTDgo
7SiUFBs/wIRRgXbMHxNEF3sxHrDNnScJmRKb57A+BcO5K4mQD92FDypF2/GQUy8dEmnug596
XQGi9MA1CRgbn44=

--B_3631796639_857375006--


From nobody Thu Jan 31 16:25:59 2019
Return-Path: <sfluhrer@cisco.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B6F3131153 for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 16:25:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.642
X-Spam-Level: 
X-Spam-Status: No, score=-14.642 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, 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 H5KufxDEWmS3 for <cfrg@ietfa.amsl.com>; Thu, 31 Jan 2019 16:25:56 -0800 (PST)
Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EFFDF131158 for <cfrg@irtf.org>; Thu, 31 Jan 2019 16:25:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3700; q=dns/txt; s=iport; t=1548980754; x=1550190354; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=RJ+kNmv/Jgv69xJjtMESpPBOBZnSF3kOxCV2s8Ra30c=; b=IXwupHJEp7jlJkbIGqrWM+RVdS/Wfz3Tte+Oxrl4iF7hja0+Kjma8YD/ i0ekTNhWsjCqnPsTKNbXMbyHtJCy/zJfpiVmHJ0Yy8OCRqnkTWBU3Gups Pf2UcZDmG9GpiaMQH5qwgahgZDN9D1z/Atwci5O7cE60VAouwtk+wZhw4 A=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ADAAAOkVNc/5BdJa1kDgsBAQEBAQE?= =?us-ascii?q?BAQEBAQEHAQEBAQEBgVEEAQEBAQELAYFaKWeBAycKg3mIGotygg2DRZRJgXs?= =?us-ascii?q?LAQEYC4RJAheCeCI0CQ0BAwEBAgEBAm0cDIVKAQEBBAEBIRE6FwQCAQgRBAE?= =?us-ascii?q?BAQICJgICAiULFQgIAgQBEggSgwgBggEPrEiBL4QuAYYABYELizUXgUA/gRG?= =?us-ascii?q?CZC6BJoFfGQGBeYJyglcComEJAoctin4hkj2KIIUujAACERSBJx84gVZwFTu?= =?us-ascii?q?CbIInF4EAAQ6EO4MVhQQ7QTEBAY5QgR8BAQ?=
X-IronPort-AV: E=Sophos;i="5.56,546,1539648000"; d="scan'208";a="233703094"
Received: from rcdn-core-8.cisco.com ([173.37.93.144]) by alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Feb 2019 00:25:52 +0000
Received: from XCH-RTP-007.cisco.com (xch-rtp-007.cisco.com [64.101.220.147]) by rcdn-core-8.cisco.com (8.15.2/8.15.2) with ESMTPS id x110PpAI030419 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 1 Feb 2019 00:25:52 GMT
Received: from xch-rtp-006.cisco.com (64.101.220.146) by XCH-RTP-007.cisco.com (64.101.220.147) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 31 Jan 2019 19:25:51 -0500
Received: from xch-rtp-006.cisco.com ([64.101.220.146]) by XCH-RTP-006.cisco.com ([64.101.220.146]) with mapi id 15.00.1395.000; Thu, 31 Jan 2019 19:25:51 -0500
From: "Scott Fluhrer (sfluhrer)" <sfluhrer@cisco.com>
To: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] NIST Report on 1st Round of PQ Algorithms
Thread-Index: AQHUuXzcjMapPB8zxEqQ3Fdfh3mpY6XKC1KAgAAsFID//9yawA==
Date: Fri, 1 Feb 2019 00:25:51 +0000
Message-ID: <7722e7a356ce48e8895aa5e46617fd5a@XCH-RTP-006.cisco.com>
References: <0FA48848-4403-44D5-8E5D-23AB308DB4D7@vigilsec.com> <fc0fc972-cdc4-dead-dfa9-346fcad820c5@strombergson.com> <7C98442E-0A5B-4F1E-9087-782B17F6145C@ll.mit.edu>
In-Reply-To: <7C98442E-0A5B-4F1E-9087-782B17F6145C@ll.mit.edu>
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.98.2.57]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Outbound-SMTP-Client: 64.101.220.147, xch-rtp-007.cisco.com
X-Outbound-Node: rcdn-core-8.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/k0JAI8eIGYF98UuNpBn-9BxFbDY>
Subject: Re: [Cfrg] NIST Report on 1st Round of PQ Algorithms
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Feb 2019 00:25:58 -0000

SSBiZWxpZXZlIHRoYXQncyBiZWNhdXNlIE5JU1QgZGlkbid0IGFzayBmb3IgYW4gQUtFOyBvbmx5
IEtFTXMsIHB1YmxpYyBrZXkgZW5jcnlwdGlvbiBhbmQgc2lnbmF0dXJlIGFsZ29yaXRobXMuDQoN
CkkgYmVsaWV2ZSB0aGF0IE5JU1RzIHJlYXNvbmluZyB3YXMgImxldCdzIG5haWwgZG93biB0aGUg
bW9zdCBiYXNpYyBhbmQgbW9zdCBjb21tb25seSB1c2VkIHByaW1pdGl2ZXMgZmlyc3Q7IHRoZW4g
d2UgY2FuIHdvcnJ5IGFib3V0IHRoZSBmYW5jaWVyIG9uZXMgKHN1Y2ggYXMgQUtFLCBJQkUsIChw
YXJ0aWFsbHkpIGhvbWVvbW9ycGhpYyBlbmNyeXB0aW9uLCBldGMpIg0KDQpOb3csIEkgc3VwcG9z
ZSBzb21lb25lIGNvdWxkIGhhdmUgc3VibWl0dGVkIGEgS0VNIHdpdGggYSBzaWRlIGlucHV0IHRo
YXQgd291bGQgYWN0IGFzIGFuIEFLRTsgaG93ZXZlciwgbm8gb25lIGRpZC4uLg0KDQo+IC0tLS0t
T3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IENmcmcgPGNmcmctYm91bmNlc0BpcnRmLm9y
Zz4gT24gQmVoYWxmIE9mIEJsdW1lbnRoYWwsIFVyaSAtIDA1NTMgLQ0KPiBNSVRMTA0KPiBTZW50
OiBUaHVyc2RheSwgSmFudWFyeSAzMSwgMjAxOSA0OjI0IFBNDQo+IFRvOiBjZnJnQGlydGYub3Jn
DQo+IFN1YmplY3Q6IFJlOiBbQ2ZyZ10gTklTVCBSZXBvcnQgb24gMXN0IFJvdW5kIG9mIFBRIEFs
Z29yaXRobXMNCj4gDQo+IEkgcGVyc29uYWxseSBhbSBzdXJwcmlzZWQgdGhhdCB0aGVyZSBhcmUg
bm8gQUtFIHNjaGVtZXMgLSBvbmx5IEtFTSAoYW5kDQo+IHdoaWxlIHlvdSBjYW4gY29uc3RydWN0
IGFuIEFLRSBmcm9tIGEgS0VNLCBpdCdzIHVzdWFsbHkgbm9uLXRyaXZpYWwgYW5kDQo+IGV4cGVu
c2l2ZSkuDQo+IA0KPiBBbnkgaWRlYSB3aHkgQUtFIHdlcmVuJ3Qgc3VibWl0dGVkLi4uPw0KPiAN
Cj4g77u/T24gMS8zMS8xOSwgMTM6NDcsICJDZnJnIG9uIGJlaGFsZiBvZiBKb2FjaGltIFN0csO2
bWJlcmdzb24iIDxjZnJnLQ0KPiBib3VuY2VzQGlydGYub3JnIG9uIGJlaGFsZiBvZiBqb2FjaGlt
QHN0cm9tYmVyZ3Nvbi5jb20+IHdyb3RlOg0KPiANCj4gICAgIEFsb2hhIQ0KPiANCj4gICAgIE9u
IDIwMTktMDEtMzEgMTY6NTEsIFJ1c3MgSG91c2xleSB3cm90ZToNCj4gICAgID4gTklTVCBqdXN0
IHBvc3RlZCBOSVNUSVIgODI0MCwgdGhlIFN0YXR1cyBSZXBvcnQgb24gdGhlIEZpcnN0IFJvdW5k
IG9mDQo+ICAgICA+IHRoZSBOSVNUIFBvc3QtUXVhbnR1bSBDcnlwdG9ncmFwaHkgU3RhbmRhcmRp
emF0aW9uIFByb2Nlc3MuICBJdCBpcw0KPiAgICAgPiBhdmFpbGFibGUgYXQgaHR0cHM6Ly9kb2ku
b3JnLzEwLjYwMjgvTklTVC5JUi44MjQwLg0KPiANCj4gICAgIEFuZCBoZXJlIGlzIHRoZSBsaXN0
IG9mIGNhbmRpZGF0ZXMgbW92aW5nIHRvIHRoZSBzZWNvbmQgcm91bmQ6DQo+IA0KPiAgICAgaHR0
cHM6Ly9jc3JjLm5pc3QuZ292L25ld3MvMjAxOS9wcWMtc3RhbmRhcmRpemF0aW9uLXByb2Nlc3Mt
Mm5kLXJvdW5kLQ0KPiBjYW5kaWRhdGVzDQo+IA0KPiAgICAgPkZyb20gdGhlIHBhZ2U6DQo+IA0K
PiAgICAgVGhlIDE3IFNlY29uZC1Sb3VuZCBDYW5kaWRhdGUgcHVibGljLWtleSBlbmNyeXB0aW9u
IGFuZA0KPiAgICAga2V5LWVzdGFibGlzaG1lbnQgYWxnb3JpdGhtcyBhcmU6DQo+ICAgICAgICAg
QklLRQ0KPiAgICAgICAgIENsYXNzaWMgTWNFbGllY2UNCj4gICAgICAgICBDUllTVEFMUy1LWUJF
Ug0KPiAgICAgICAgIEZyb2RvS0VNDQo+ICAgICAgICAgSFFDDQo+ICAgICAgICAgTEFDDQo+ICAg
ICAgICAgTEVEQWNyeXB0IChtZXJnZXIgb2YgTEVEQWtlbS9MRURBcGtjKQ0KPiAgICAgICAgIE5l
d0hvcGUNCj4gICAgICAgICBOVFJVIChtZXJnZXIgb2YgTlRSVUVuY3J5cHQvTlRSVS1IUlNTLUtF
TSkNCj4gICAgICAgICBOVFJVIFByaW1lDQo+ICAgICAgICAgTlRTLUtFTQ0KPiAgICAgICAgIFJP
TExPIChtZXJnZXIgb2YgTEFLRS9MT0NLRVIvT3Vyb2Jvcm9zLVIpDQo+ICAgICAgICAgUm91bmQ1
IChtZXJnZXIgb2YgSGlsYTUvUm91bmQyKQ0KPiAgICAgICAgIFJRQw0KPiAgICAgICAgIFNBQkVS
DQo+ICAgICAgICAgU0lLRQ0KPiAgICAgICAgIFRocmVlIEJlYXJzDQo+IA0KPiANCj4gICAgIFRo
ZSA5IFNlY29uZCBSb3VuZCBDYW5kaWRhdGVzIGZvciBkaWdpdGFsIHNpZ25hdHVyZXMgYXJlOg0K
PiAgICAgICAgIENSWVNUQUxTLURJTElUSElVTQ0KPiAgICAgICAgIEZBTENPTg0KPiAgICAgICAg
IEdlTVNTDQo+ICAgICAgICAgTFVPVg0KPiAgICAgICAgIE1RRFNTDQo+ICAgICAgICAgUGljbmlj
DQo+ICAgICAgICAgcVRFU0xBDQo+ICAgICAgICAgUmFpbmJvdw0KPiAgICAgICAgIFNQSElOQ1Mr
DQo+IA0KPiANCj4gICAgIC0tDQo+ICAgICBNZWQgdsOkbmxpZyBow6Rsc25pbmcsIFlvdXJzDQo+
IA0KPiAgICAgSm9hY2hpbSBTdHLDtm1iZXJnc29uIC0gQWxsdGlkIGkgaGFybW9uaXNrIHN2w6Ru
Z25pbmcuDQo+IA0KPiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09DQo+ID09PT09PT09PT09PT09DQo+IA0KPiAgICAgX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4gICAgIENmcmcgbWFpbGluZyBs
aXN0DQo+ICAgICBDZnJnQGlydGYub3JnDQo+ICAgICBodHRwczovL3d3dy5pcnRmLm9yZy9tYWls
bWFuL2xpc3RpbmZvL2NmcmcNCj4gDQo=

