
From nobody Wed Jun  1 02:55:44 2016
Return-Path: <session_request_developers@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 DB22B12D0AA; Wed,  1 Jun 2016 02:55:41 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "\"IETF Meeting Session Request Tool\"" <session_request_developers@ietf.org>
To: <session-request@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.21.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20160601095541.16167.11386.idtracker@ietfa.amsl.com>
Date: Wed, 01 Jun 2016 02:55:41 -0700
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/7k0Q5FN_sHsQWiv5bTpIP35WjAU>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@ietf.org, irtf-chair@irtf.org, cfrg-chairs@ietf.org
Subject: [Cfrg] cfrg - Update to a Meeting Session Request for IETF 96
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 01 Jun 2016 09:55:42 -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.5 Hours
Number of Attendees: 70
Conflicts to Avoid: 
 First Priority: saag tls dane dprive dispatch httpauth uta tcpinc kitten
 Second Priority: mile



Special Requests:
  Please generally avoid conflicts with SEC Area WGs/BOFs
---------------------------------------------------------


From nobody Wed Jun  1 08:02:19 2016
Return-Path: <khovratovich@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 2795912D5B9 for <cfrg@ietfa.amsl.com>; Wed,  1 Jun 2016 08:02:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, 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 OzJL_YvG5C9l for <cfrg@ietfa.amsl.com>; Wed,  1 Jun 2016 08:02:14 -0700 (PDT)
Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (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 6D98312D5AA for <cfrg@irtf.org>; Wed,  1 Jun 2016 08:02:14 -0700 (PDT)
Received: by mail-io0-x231.google.com with SMTP id k19so10746186ioi.3 for <cfrg@irtf.org>; Wed, 01 Jun 2016 08:02:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2HZnTd5UogEcJIGS4LqHfcoSzP6fxh+Pjd1M7KgQkLw=; b=d3f1T9+EzUUos002q9G+mdpmRofBtdaDqqwfVZ82GAurYR1wkl42MAI4b/WOskh7Ck F7vUsS7DHjvKxGBrmbQuEx5hUTpUXDuW39x7UsHEFW5ELCNav8J9RA93r7W5U+BVVkYO qXQ6/JhgJLpzOmWfg1vSwqcwZO0VcRAFntC0b9BqcwRf5M+MNCPl0C4Sz2jAqoX3NXAs 4tV5DIAi+5xKS+qVgXOChwhmVbs88/G1c5teh96YxKPgOy0U2zwZzM79MOcZcK6ZOoBw N7DxkskjyWQmojnhCE6R6EXphzrwl3Fus23rECXABU7wYeW8HPfUw/ZOqwTy1ptvvFBg chZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2HZnTd5UogEcJIGS4LqHfcoSzP6fxh+Pjd1M7KgQkLw=; b=ND0TtT1jfRRU9fTAtFkvBjWAAG7AwEQGTwhdz1+APIi5Gb1NvEwIru2p7TCFmbNFh1 87iMT6rWGiGq3bkEaWrIujkVurqOJ1xsA/7Hzmgzu+kUoQN834+wFrNAlzqfHGt2aoTA yvf0nNkxdvFavnaMKFU6pH8YOQCAM4VL8t5YBqsUxpu8rjldU8uVg7GXsb68LcbUOiam Ds5TdZXzvE+G3eHTT7+ApGmR/ozr4BVaBzU/wU+LBHUfArC+koZwS/wqG2okxlwT15s7 WBzmFTPTsupyCAH1CgPsBNRgV41LpSY3nrwNfL4pGh63mzDtABf0N0D/dw2gI+Xk5iTA PPSw==
X-Gm-Message-State: ALyK8tIPJ5jMqUgEbtMmp+r6GZYJJQYx7b9jDJEWxCfDCx5SWOt74HoHrs1k3HvesjiM3R3Y7JchmxAt2ZUzVw==
X-Received: by 10.107.20.8 with SMTP id 8mr6408876iou.12.1464793312759; Wed, 01 Jun 2016 08:01:52 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.115.65 with HTTP; Wed, 1 Jun 2016 08:01:38 -0700 (PDT)
In-Reply-To: <1cd036cd-e15b-7f9c-c3d5-28f6e2ef4c2b@stanford.edu>
References: <574601EF.60205@ist.ac.at> <574C7E2B.5080700@stanford.edu> <CALW8-7+D6BSzE4ufubZys=6ECn7GUvRQA2CDxKAANgvvOwddqQ@mail.gmail.com> <1cd036cd-e15b-7f9c-c3d5-28f6e2ef4c2b@stanford.edu>
From: Dmitry Khovratovich <khovratovich@gmail.com>
Date: Wed, 1 Jun 2016 17:01:38 +0200
Message-ID: <CALW8-7+MZ-b1VGc+4EOReCEbvCVou+e9UbzfR9sJMZavwqp64A@mail.gmail.com>
To: Henry Corrigan-Gibbs <henrycg@stanford.edu>
Content-Type: multipart/alternative; boundary=001a114fb2e6176bbb053438c5e7
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/jUkxv873wDwwPTHRXC25NYLEE3o>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Balloon-Hashing or Argon2i.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 01 Jun 2016 15:02:18 -0000

--001a114fb2e6176bbb053438c5e7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Henry,

Both for Balloon and for Argon2 there are now provable bounds of O(n^2)
with different constants, not very surprising since the mode of operation
is very simple (Argon is close to the simplest you can imagine and Baloon
is close to just Argon2 with 3 addresses instead of 1).

Argon2 is close to the fastest you can achieve since it was purposefully
fine-tuned for speed vs memory gains of attacker. If Balloon or other
design will want to approach similar speeds, design and parameter choices
will bring it very close to Argon2 design.

The Balloon mode though admits a simple ASIC attack with factor 3: a 3x
faster memory bus allows parallel loading of your 3 random blocks, whereas
on x64 you have to load them (almost) sequentially. This is much more
practical attack than theoretical attacks on Argon2i requiring thousands of
Blake2b cores on chip and terabyte/sec bandwidth. We knew of it while
designing Argon2 and thus made delta=3D1.

For fair comparison with Argon2 and all the other PHC primitives you need
to fix concrete parameters and  compression function and test
speed/security on this fixed instance.

Best regards,
Dmitry

On Tue, May 31, 2016 at 5:57 PM, Henry Corrigan-Gibbs <henrycg@stanford.edu=
>
wrote:

> Hi Dmity,
>
> Thanks for taking a look at the paper.
>
> For the purposes of the security proofs, we model the cryptographic
> compression function used in Argon2, Balloon, and scrypt, as a random
> oracle (as is standard). In practice, it is possible to instantiate Argon=
2i
> or Balloon or scrypt with any cryptographic compression function that
> "behaves like a random oracle." We are agnostic to the choice of
> cryptographic compression function -- we just evaluated our design with a
> few standard ones.
>
> My sense is that Balloon (instantiated with parameter delta=3D3) and Argo=
n2i
> will run at roughly the same speed, no matter the choice of cryptographic
> compression function. That's because three-pass Argon2i on N blocks of
> memory makes roughly 3N calls to the underlying compression function duri=
ng
> its execution. Two-round Balloon (the equivalent construction, since it
> makes three passes over memory) makes roughly 7N calls to the underlying
> compression function during its execution.
>
> However, the known attacks on three-pass Argon2i allow the attacker to us=
e
> roughly 2.5x less space than the defender with no time penalty, so to for=
ce
> the attacker to use N blocks of space requires the defender to run Argon2=
i
> with a ~2.5x larger memory buffer (i.e., a buffer of N' =3D 2.5N blocks).=
 In
> this setting, both functions would require ~7N invocations of the
> underlying cryptographic compression function, so the performance should =
be
> roughly equivalent for the two.
>
> Changing the underlying cryptographic compression function will change th=
e
> absolute performance of both Argon2i and Balloon, but I would expect thei=
r
> relative performance to stay close to constant. Indeed, if I instantiate
> Argon2i and Balloon with the compression function defined in the Argon2
> spec, then I get, on an Intel i7-6700 @ 3.4 GHz:
>   Argon2i (2.5 MB buffer): 153 hashes/sec
>   Balloon (1.0 MB buffer): 167 hashes/sec
>
> The surprise to us is that getting this sort of performance with Balloon
> is still possible, even though we are able to prove some meaningful
> statements about its security. (Of course, the Alwen-Blocki attacks still
> apply for large enough parameter sizes.)
>
> Henry
>
>
>
> On 5/31/16 7:02 AM, Dmitry Khovratovich wrote:
>
>> Dear Henry,
>>
>> thank you for the updated paper.
>>
>> We appreciate your work on lower-bounding the Argon2i tradeoff
>> resistance, it is a very interesting result, and we hope to mention it
>> in the specification. However for your proof to work you instantiate
>> Argon2  with a collision resistant hash function. During the competition
>> it became clear that collision-resistance of the inner function is not
>> needed in practice, since the attacker does not control intermediate
>> variables. It is similar to the situation with block-ciphers like AES
>> where a single round is cryptographically weak, though you might want it
>> to be a keyed PRP for the sake of a proof. Worse enough, a full-round
>> hash function with a narrow block implies more frequent random memory
>> access and more CPU load, which together make a terrible impact on the
>> performance. That's why we never defined Argon2 for such hash functions,
>> and recommend not calling such modifications "Argon2".
>>
>> This observation and possibly use of your own code for Argon2 causes
>>  performance comparison of your Balloon Hash design with Argon2i and
>> other designs to be incorrect.
>>
>> in the introduction you write
>> "if we ... run the construction for five =E2=80=9Crounds=E2=80=9D of has=
hing, and set
>> the space parameter to require the attacker to use 1 MiB of working
>> space to compute the function, then we can compute Balloon Hashes at the
>> rate of 13 hashes per second on a modern server, compared with 12.8 for
>> Argon2i, and 2.1 for Catena DBG".
>>
>> This statement underestimates the Argon2i performance by the factor of
>> 30 (!) or so.
>>
>> In detail. Argon2i makes much more than 13 hashes per second using 5
>> iterations and 1 MiB of memory. On my 2-core 2.3 GHz (i5-6200) laptop
>>  it computes 1000 hashes in 5.1-5.3 Gigacycles, thus averaging more than
>> 400 hashes per second. I modified our benchmark settings for that, but
>> even with default ones (3 iterations, 1 hash) everyone can observe
>> similar performance by running 'make bench' +'./bench' using the source
>> in https://github.com/P-H-C/phc-winner-argon2
>>
>> In the further text you write
>> "Let an authentication server must perform 100 hashes per second per
>> four-core machine, ... At the same authentication rate, Argon2i requires
>> the attacker to use a smaller buffer=E2=80=94roughly 1.5 MiB for the one=
-pass
>> variant".
>>
>> This is again incorrect. Here are the numbers for 1-pass Argon2i: 2MiB:
>> 225Mcycles, 16MiB: 1174 Mcycles, 32 MiB: 2532 Mcycles (a bit more than 1
>> second).
>>
>> So there is a factor of 20 underestimate here. (We also remind that
>> 1-pass Argon2i was never  recommended for practical use.)
>>
>> Best regards,
>> the Argon2 team
>>
>> On Mon, May 30, 2016 at 7:53 PM, Henry Corrigan-Gibbs
>> <henrycg@stanford.edu <mailto:henrycg@stanford.edu>> wrote:
>>
>>     Hi Joel,
>>
>>     Since I am one of the designers of the Balloon Hashing algorithm, it
>>     would be difficult for me to give an unbiased opinion on the pros
>>     and cons of Argon2i versus Balloon.
>>
>>     That said, we just updated the Balloon Hashing paper on ePrint:
>>     http://eprint.iacr.org/2016/027
>>
>>     The revised paper includes some new results that might be relevant
>>     to CFRG discussions on password hashing. Let me summarize the new
>>     results here:
>>
>>
>>     (1) We prove (in the single-instance, random-oracle model) a new,
>>     stronger memory-hardness claim about the Balloon algorithm. We show
>>     that computing one instance of the Balloon function with space S and
>>     time T requires a space-time product that (roughly) satisfies:
>>     S . T >=3D n^2 / 8.
>>     As the adversary's space usage drops below a certain threshold
>>     (which depends on the parameter settings) the trade-off gets even
>>     worse for the adversary.
>>
>>
>>     (2) We refine the analysis of the single-buffer Balloon algorithm,
>>     and the refined analysis allows us to dramatically improve the
>>     parameters of the scheme. After this change, the performance of the
>>     single-buffer Balloon function *meets or exceeds* that of Argon2i
>>     when we instantiate both with Blake2b as the underlying
>>     cryptographic hash function. (Consult the paper for the details on
>>     this.) The single-buffer Balloon algorithm runs so quickly now that
>>     we decided that the other two Balloon variants (double-buffer and
>>     linear) were superfluous. The revised paper includes only the
>>     single-buffer scheme, which we now just call the "Balloon algorithm"=
.
>>
>>
>>     (3) We discuss your (very cool) recent paper on parallel attacks on
>>     iMHFs and give some ideas on how to ameliorate them in the context
>>     of password hashing. Our recommendation is to follow Balloon Hashing
>>     with one round of scrypt (or even data-dependent Balloon). This
>>     composition apparently defends against either parallel attacks or
>>     cache attacks -- just not both at the same time. The design of the
>>     Argon2id function uses a similar idea. To us, this seems like a nice
>>     compromise between functionality and security.
>>
>>
>>     (4) We apply our analysis techniques to prove that Argon2i and a
>>     simplified variant of scrypt are also memory-hard, though with
>>     looser constants than one might like. We show that these two
>>     algorithms (again, in the single-instance random-oracle model)
>>     require space S and time T such that:
>>     S . T >=3D n^2 / C
>>     to compute with good probability. For Argon2i, we can prove this
>>     statement for C=3D192, and for scrypt with C=3D24. In contrast, we p=
rove
>>     the claim with C=3D8 for Balloon, and we additionally prove much
>>     stronger time-space trade-offs for Balloon for very-small-space
>>     adversaries. From a "provable security" perspective then, Balloon
>>     seems to have an edge over the other practical constructions out
>> there.
>>
>>
>>     If you find bugs or omissions in the ePrint draft, please let me kno=
w.
>>
>>     Henry
>>
>>
>>
>>     On 05/25/2016 12:50 PM, Joel Alwen wrote:
>>
>>         I was wondering what peoples opinion is on standardizing the
>>         double-buffer balloon hashing (DB) construction rather than
>> Argon2i.
>>         Both in terms of arguments for and against.
>>
>>         I'm sure other people have thought about this much more though
>>         so I'd
>>         love to hear what people think...
>>
>>         - Joel
>>
>>         _______________________________________________
>>         Cfrg mailing list
>>         Cfrg@irtf.org <mailto:Cfrg@irtf.org>
>>         https://www.irtf.org/mailman/listinfo/cfrg
>>
>>
>>     _______________________________________________
>>     Cfrg mailing list
>>     Cfrg@irtf.org <mailto:Cfrg@irtf.org>
>>     https://www.irtf.org/mailman/listinfo/cfrg
>>
>>
>>
>>
>> --
>> Best regards,
>> Dmitry Khovratovich
>>
>
>


--=20
Best regards,
Dmitry Khovratovich

--001a114fb2e6176bbb053438c5e7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div style=3D"font-size:12.8px">Hi Henry,</div><div style=
=3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px">Both for Ba=
lloon and for Argon2 there are now provable bounds of O(n^2) with different=
 constants, not very surprising since the mode of operation is very simple =
(Argon is close to the simplest you can imagine and Baloon is close to just=
 Argon2 with 3 addresses instead of 1).</div><div style=3D"font-size:12.8px=
"><br></div><div style=3D"font-size:12.8px">Argon2 is close to the fastest =
you can achieve since it was purposefully fine-tuned for speed vs memory ga=
ins of attacker. If Balloon or other design will want to approach similar s=
peeds, design and parameter choices will bring it very close to Argon2 desi=
gn.</div><div style=3D"font-size:12.8px"><br></div><div style=3D"font-size:=
12.8px">The Balloon mode though admits a simple ASIC attack with factor 3: =
a 3x faster memory bus allows parallel loading of your 3 random blocks, whe=
reas on x64 you have to load them (almost) sequentially. This is much more =
practical attack than theoretical attacks on Argon2i requiring thousands of=
 Blake2b cores on chip and terabyte/sec bandwidth. We knew of it while desi=
gning Argon2 and thus made delta=3D1.</div><div style=3D"font-size:12.8px">=
<br></div><div style=3D"font-size:12.8px"><span style=3D"font-size:12.8px">=
For fair comparison with Argon2 and all the other PHC primitives you need t=
o fix concrete parameters and=C2=A0 compression function and test speed/sec=
urity on this fixed instance.</span><br></div><div style=3D"font-size:12.8p=
x"><span style=3D"font-size:12.8px"><br></span></div><div style=3D"font-siz=
e:12.8px"><span style=3D"font-size:12.8px">Best regards,</span></div><div s=
tyle=3D"font-size:12.8px"><span style=3D"font-size:12.8px">Dmitry</span></d=
iv></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, =
May 31, 2016 at 5:57 PM, Henry Corrigan-Gibbs <span dir=3D"ltr">&lt;<a href=
=3D"mailto:henrycg@stanford.edu" target=3D"_blank">henrycg@stanford.edu</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dmity,<br>
<br>
Thanks for taking a look at the paper.<br>
<br>
For the purposes of the security proofs, we model the cryptographic compres=
sion function used in Argon2, Balloon, and scrypt, as a random oracle (as i=
s standard). In practice, it is possible to instantiate Argon2i or Balloon =
or scrypt with any cryptographic compression function that &quot;behaves li=
ke a random oracle.&quot; We are agnostic to the choice of cryptographic co=
mpression function -- we just evaluated our design with a few standard ones=
.<br>
<br>
My sense is that Balloon (instantiated with parameter delta=3D3) and Argon2=
i will run at roughly the same speed, no matter the choice of cryptographic=
 compression function. That&#39;s because three-pass Argon2i on N blocks of=
 memory makes roughly 3N calls to the underlying compression function durin=
g its execution. Two-round Balloon (the equivalent construction, since it m=
akes three passes over memory) makes roughly 7N calls to the underlying com=
pression function during its execution.<br>
<br>
However, the known attacks on three-pass Argon2i allow the attacker to use =
roughly 2.5x less space than the defender with no time penalty, so to force=
 the attacker to use N blocks of space requires the defender to run Argon2i=
 with a ~2.5x larger memory buffer (i.e., a buffer of N&#39; =3D 2.5N block=
s). In this setting, both functions would require ~7N invocations of the un=
derlying cryptographic compression function, so the performance should be r=
oughly equivalent for the two.<br>
<br>
Changing the underlying cryptographic compression function will change the =
absolute performance of both Argon2i and Balloon, but I would expect their =
relative performance to stay close to constant. Indeed, if I instantiate Ar=
gon2i and Balloon with the compression function defined in the Argon2 spec,=
 then I get, on an Intel i7-6700 @ 3.4 GHz:<br>
=C2=A0 Argon2i (2.5 MB buffer): 153 hashes/sec<br>
=C2=A0 Balloon (1.0 MB buffer): 167 hashes/sec<br>
<br>
The surprise to us is that getting this sort of performance with Balloon is=
 still possible, even though we are able to prove some meaningful statement=
s about its security. (Of course, the Alwen-Blocki attacks still apply for =
large enough parameter sizes.)<br>
<br>
Henry<div><div class=3D"h5"><br>
<br>
<br>
On 5/31/16 7:02 AM, Dmitry Khovratovich wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div class=3D"h5">
Dear Henry,<br>
<br>
thank you for the updated paper.<br>
<br>
We appreciate your work on lower-bounding the Argon2i tradeoff<br>
resistance, it is a very interesting result, and we hope to mention it<br>
in the specification. However for your proof to work you instantiate<br>
Argon2=C2=A0 with a collision resistant hash function. During the competiti=
on<br>
it became clear that collision-resistance of the inner function is not<br>
needed in practice, since the attacker does not control intermediate<br>
variables. It is similar to the situation with block-ciphers like AES<br>
where a single round is cryptographically weak, though you might want it<br=
>
to be a keyed PRP for the sake of a proof. Worse enough, a full-round<br>
hash function with a narrow block implies more frequent random memory<br>
access and more CPU load, which together make a terrible impact on the<br>
performance. That&#39;s why we never defined Argon2 for such hash functions=
,<br>
and recommend not calling such modifications &quot;Argon2&quot;.<br>
<br>
This observation and possibly use of your own code for Argon2 causes<br>
=C2=A0performance comparison of your Balloon Hash design with Argon2i and<b=
r>
other designs to be incorrect.<br>
<br>
in the introduction you write<br>
&quot;if we ... run the construction for five =E2=80=9Crounds=E2=80=9D of h=
ashing, and set<br>
the space parameter to require the attacker to use 1 MiB of working<br>
space to compute the function, then we can compute Balloon Hashes at the<br=
>
rate of 13 hashes per second on a modern server, compared with 12.8 for<br>
Argon2i, and 2.1 for Catena DBG&quot;.<br>
<br>
This statement underestimates the Argon2i performance by the factor of<br>
30 (!) or so.<br>
<br>
In detail. Argon2i makes much more than 13 hashes per second using 5<br>
iterations and 1 MiB of memory. On my 2-core 2.3 GHz (i5-6200) laptop<br>
=C2=A0it computes 1000 hashes in 5.1-5.3 Gigacycles, thus averaging more th=
an<br>
400 hashes per second. I modified our benchmark settings for that, but<br>
even with default ones (3 iterations, 1 hash) everyone can observe<br>
similar performance by running &#39;make bench&#39; +&#39;./bench&#39; usin=
g the source<br>
in <a href=3D"https://github.com/P-H-C/phc-winner-argon2" rel=3D"noreferrer=
" target=3D"_blank">https://github.com/P-H-C/phc-winner-argon2</a><br>
<br>
In the further text you write<br>
&quot;Let an authentication server must perform 100 hashes per second per<b=
r>
four-core machine, ... At the same authentication rate, Argon2i requires<br=
>
the attacker to use a smaller buffer=E2=80=94roughly 1.5 MiB for the one-pa=
ss<br>
variant&quot;.<br>
<br>
This is again incorrect. Here are the numbers for 1-pass Argon2i: 2MiB:<br>
225Mcycles, 16MiB: 1174 Mcycles, 32 MiB: 2532 Mcycles (a bit more than 1<br=
>
second).<br>
<br>
So there is a factor of 20 underestimate here. (We also remind that<br>
1-pass Argon2i was never=C2=A0 recommended for practical use.)<br>
<br>
Best regards,<br>
the Argon2 team<br>
<br>
On Mon, May 30, 2016 at 7:53 PM, Henry Corrigan-Gibbs<br></div></div><div><=
div class=3D"h5">
&lt;<a href=3D"mailto:henrycg@stanford.edu" target=3D"_blank">henrycg@stanf=
ord.edu</a> &lt;mailto:<a href=3D"mailto:henrycg@stanford.edu" target=3D"_b=
lank">henrycg@stanford.edu</a>&gt;&gt; wrote:<br>
<br>
=C2=A0 =C2=A0 Hi Joel,<br>
<br>
=C2=A0 =C2=A0 Since I am one of the designers of the Balloon Hashing algori=
thm, it<br>
=C2=A0 =C2=A0 would be difficult for me to give an unbiased opinion on the =
pros<br>
=C2=A0 =C2=A0 and cons of Argon2i versus Balloon.<br>
<br>
=C2=A0 =C2=A0 That said, we just updated the Balloon Hashing paper on ePrin=
t:<br>
=C2=A0 =C2=A0 <a href=3D"http://eprint.iacr.org/2016/027" rel=3D"noreferrer=
" target=3D"_blank">http://eprint.iacr.org/2016/027</a><br>
<br>
=C2=A0 =C2=A0 The revised paper includes some new results that might be rel=
evant<br>
=C2=A0 =C2=A0 to CFRG discussions on password hashing. Let me summarize the=
 new<br>
=C2=A0 =C2=A0 results here:<br>
<br>
<br>
=C2=A0 =C2=A0 (1) We prove (in the single-instance, random-oracle model) a =
new,<br>
=C2=A0 =C2=A0 stronger memory-hardness claim about the Balloon algorithm. W=
e show<br>
=C2=A0 =C2=A0 that computing one instance of the Balloon function with spac=
e S and<br>
=C2=A0 =C2=A0 time T requires a space-time product that (roughly) satisfies=
:<br>
=C2=A0 =C2=A0 S . T &gt;=3D n^2 / 8.<br>
=C2=A0 =C2=A0 As the adversary&#39;s space usage drops below a certain thre=
shold<br>
=C2=A0 =C2=A0 (which depends on the parameter settings) the trade-off gets =
even<br>
=C2=A0 =C2=A0 worse for the adversary.<br>
<br>
<br>
=C2=A0 =C2=A0 (2) We refine the analysis of the single-buffer Balloon algor=
ithm,<br>
=C2=A0 =C2=A0 and the refined analysis allows us to dramatically improve th=
e<br>
=C2=A0 =C2=A0 parameters of the scheme. After this change, the performance =
of the<br>
=C2=A0 =C2=A0 single-buffer Balloon function *meets or exceeds* that of Arg=
on2i<br>
=C2=A0 =C2=A0 when we instantiate both with Blake2b as the underlying<br>
=C2=A0 =C2=A0 cryptographic hash function. (Consult the paper for the detai=
ls on<br>
=C2=A0 =C2=A0 this.) The single-buffer Balloon algorithm runs so quickly no=
w that<br>
=C2=A0 =C2=A0 we decided that the other two Balloon variants (double-buffer=
 and<br>
=C2=A0 =C2=A0 linear) were superfluous. The revised paper includes only the=
<br>
=C2=A0 =C2=A0 single-buffer scheme, which we now just call the &quot;Balloo=
n algorithm&quot;.<br>
<br>
<br>
=C2=A0 =C2=A0 (3) We discuss your (very cool) recent paper on parallel atta=
cks on<br>
=C2=A0 =C2=A0 iMHFs and give some ideas on how to ameliorate them in the co=
ntext<br>
=C2=A0 =C2=A0 of password hashing. Our recommendation is to follow Balloon =
Hashing<br>
=C2=A0 =C2=A0 with one round of scrypt (or even data-dependent Balloon). Th=
is<br>
=C2=A0 =C2=A0 composition apparently defends against either parallel attack=
s or<br>
=C2=A0 =C2=A0 cache attacks -- just not both at the same time. The design o=
f the<br>
=C2=A0 =C2=A0 Argon2id function uses a similar idea. To us, this seems like=
 a nice<br>
=C2=A0 =C2=A0 compromise between functionality and security.<br>
<br>
<br>
=C2=A0 =C2=A0 (4) We apply our analysis techniques to prove that Argon2i an=
d a<br>
=C2=A0 =C2=A0 simplified variant of scrypt are also memory-hard, though wit=
h<br>
=C2=A0 =C2=A0 looser constants than one might like. We show that these two<=
br>
=C2=A0 =C2=A0 algorithms (again, in the single-instance random-oracle model=
)<br>
=C2=A0 =C2=A0 require space S and time T such that:<br>
=C2=A0 =C2=A0 S . T &gt;=3D n^2 / C<br>
=C2=A0 =C2=A0 to compute with good probability. For Argon2i, we can prove t=
his<br>
=C2=A0 =C2=A0 statement for C=3D192, and for scrypt with C=3D24. In contras=
t, we prove<br>
=C2=A0 =C2=A0 the claim with C=3D8 for Balloon, and we additionally prove m=
uch<br>
=C2=A0 =C2=A0 stronger time-space trade-offs for Balloon for very-small-spa=
ce<br>
=C2=A0 =C2=A0 adversaries. From a &quot;provable security&quot; perspective=
 then, Balloon<br>
=C2=A0 =C2=A0 seems to have an edge over the other practical constructions =
out there.<br>
<br>
<br>
=C2=A0 =C2=A0 If you find bugs or omissions in the ePrint draft, please let=
 me know.<br>
<br>
=C2=A0 =C2=A0 Henry<br>
<br>
<br>
<br>
=C2=A0 =C2=A0 On 05/25/2016 12:50 PM, Joel Alwen wrote:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I was wondering what peoples opinion is on stan=
dardizing the<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 double-buffer balloon hashing (DB) construction=
 rather than Argon2i.<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Both in terms of arguments for and against.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I&#39;m sure other people have thought about th=
is much more though<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 so I&#39;d<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 love to hear what people think...<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 - Joel<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 _______________________________________________=
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Cfrg mailing list<br></div></div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:Cfrg@irtf.org" target=3D"_bla=
nk">Cfrg@irtf.org</a> &lt;mailto:<a href=3D"mailto:Cfrg@irtf.org" target=3D=
"_blank">Cfrg@irtf.org</a>&gt;<span class=3D""><br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"https://www.irtf.org/mailman/listinf=
o/cfrg" rel=3D"noreferrer" target=3D"_blank">https://www.irtf.org/mailman/l=
istinfo/cfrg</a><br>
<br>
<br>
=C2=A0 =C2=A0 _______________________________________________<br>
=C2=A0 =C2=A0 Cfrg mailing list<br></span>
=C2=A0 =C2=A0 <a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.=
org</a> &lt;mailto:<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@=
irtf.org</a>&gt;<span class=3D""><br>
=C2=A0 =C2=A0 <a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D=
"noreferrer" target=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</=
a><br>
<br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Dmitry Khovratovich<br>
</span></blockquote>
<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div>Best regards,<=
/div><div>Dmitry Khovratovich</div></div>
</div>

--001a114fb2e6176bbb053438c5e7--


From nobody Sun Jun  5 11:01:38 2016
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 D733512D19B for <cfrg@ietfa.amsl.com>; Sun,  5 Jun 2016 11:01:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, 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 oAYPYSQznaia for <cfrg@ietfa.amsl.com>; Sun,  5 Jun 2016 11:01:35 -0700 (PDT)
Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (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 177CA12D0B2 for <cfrg@irtf.org>; Sun,  5 Jun 2016 11:01:35 -0700 (PDT)
Received: by mail-qk0-x22d.google.com with SMTP id s186so42889328qkc.1 for <cfrg@irtf.org>; Sun, 05 Jun 2016 11:01:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to;  bh=u7RX/hB6r2q7J3HlniFyjb1TfLvDAZvMGAnIIEIcWdI=; b=L/qrQSZPnM4GHNaqyAoOhn9+3zpa7gxZbyyI4dcDSISa1TVrl/8Ao09fkQn1vYwDSF yHZQAb4uQGQOoiKD89eb+JWj/olpgqFicefqx/MShkQ/ZeVnuGqhNAB5miTqUO9PAvrk XICNotjJK4xWQ5KaDtUKC2KeqNjG6RzMbj85sAb0+9DKIva67p4L2mohPd6tZIm+CSZB wfIXox2p+TFZXLZ17nImZW4jA27WlikpkZo49X9QxTuhmWqC0ZNO5b4C/3B+5vEMDwoh fyKxftDvW3RwxHM8VF2Xh+bVK7qBW4W0tPhXxqdEdixva1WUVOYy1RWvI8+yMxXMA2if 8ZUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=u7RX/hB6r2q7J3HlniFyjb1TfLvDAZvMGAnIIEIcWdI=; b=jqpvujKCZ8XXPC8IM42+vEaJvNnoFyLNDh2S+0XmZqf/6cZdmBF8MUZqUSHGgjQv5j 4weYNKHmHBgTlhBJLcjUhOIFT9PkJ8ei6bSgQqfb9M1bW3dPJJELooie2SKm4+9qg8mp 2q/zDDbS+jEt7xVlcgPi8Tp9TlPsQsdXAPHNUtVNPmcuGU+mxr5TNgTn4bCYnM3KdG0F XGmnJPuOoIBJRpQ2YR2wv8Hg+zNM7i9tMOFvgIjvkeSxDUtZts7IM2MhpX2ZwuGzgZMg 7GQmvTVVdfXtbZVDNtNVapZAWygPCI0SwQHbyo2oPg/gcC/jpbS9GfOIJfkwUMSV4z85 pxFw==
X-Gm-Message-State: ALyK8tI5/C1owPjImm7j+eDQf/grCmBQallym0fkfS5O9rn+3aC2VnwLz+Fge3sasHzk9SLfdDFJkQwyDWRY7Q==
X-Received: by 10.233.237.14 with SMTP id c14mr12030424qkg.88.1465149694118; Sun, 05 Jun 2016 11:01:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.200.36.182 with HTTP; Sun, 5 Jun 2016 11:01:33 -0700 (PDT)
In-Reply-To: <CAMr0u6nsRdPvxHqz6xF8QvTZ186KfSgS33mdEscrJ=2VwNyp4Q@mail.gmail.com>
References: <CAMr0u6nsRdPvxHqz6xF8QvTZ186KfSgS33mdEscrJ=2VwNyp4Q@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
Date: Sun, 5 Jun 2016 21:01:33 +0300
Message-ID: <CAMr0u6mnpt0Byi4GmqDbzuVU6z6p3u-=MfNcyRZNdMX+MphD8g@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>,  "alexey.melnikov@isode.com" <alexey.melnikov@isode.com>,  =?UTF-8?Q?Schmidt=2C_J=C3=B6rn=2DMarc?= <Joern-Marc.Schmidt@secunet.com>,  "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=94eb2c0c0a060f91f305348bbf0b
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/fGAifszcpKcsqjsbm5kbTnKMwNY>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] A new generalized version of SESPAKE RFC draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 05 Jun 2016 18:01:37 -0000

--94eb2c0c0a060f91f305348bbf0b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear colleagues,

We've updated a SESPAKE RFC draft (
https://datatracker.ietf.org/doc/draft-smyshlyaev-sespake/) =E2=80=93 namel=
y, we've
made some minor corrections of the test examples after final compatibility
testing of two implementations that are starting to being distributed =E2=
=80=93 and
looking forward to a fruitful discussion of PAKE proposals in Berlin (hope
to make a 10-minute talk at CFRG section in July =E2=80=93 many thanks to K=
enny and
Alexey for the opportunity).


Regards,

Stanislav V. Smyshlyaev, Ph.D.,

Head of Information Security Department,

CryptoPro LLC



2016-05-05 7:30 GMT+03:00 Stanislav V. Smyshlyaev <smyshsv@gmail.com>:

> Dear colleagues,
>
> we've updated the SESPAKE RFC draft (
> https://datatracker.ietf.org/doc/draft-smyshlyaev-sespake/) to generalize
> the protocol and to exclude strict conditions of GOST usage.
>
> All our statements (posted by me previously to CFRG) about conformity of
> SESPAKE to PAKE requirements remain true, as well as the full security
> proof (http://eprint.iacr.org/2015/1237) =E2=80=93 it is based only on th=
e
> conditions that the underlying primitives (hash function, elliptic curve,
> HMAC) are secure (in the corresponding adversary models).
>
> All test vectors remain based on GOST hash/HMAC and elliptic curves from =
RFC
> 7836 <https://tools.ietf.org/html/rfc7836>.
>
>
> Thanks a lot to J=C3=B6rn for his work on PAKE requirements RFC and for o=
ur
> discussion =E2=80=93 I hope, it helped to make both RFC drafts (PAKE requ=
irements
> and SESPAKE) better.
>
>
> Best regards,
>
> Stanislav
>
>

--94eb2c0c0a060f91f305348bbf0b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear colleagues,<div><br></div><div>We&#39;ve updated a SE=
SPAKE RFC draft=C2=A0(<a href=3D"https://datatracker.ietf.org/doc/draft-smy=
shlyaev-sespake/" target=3D"_blank">https://datatracker.ietf.org/doc/draft-=
smyshlyaev-sespake/</a>) =E2=80=93 namely, we&#39;ve made some minor correc=
tions of the test examples after final compatibility testing of two impleme=
ntations that are starting to being distributed =E2=80=93 and looking forwa=
rd to a fruitful discussion of PAKE proposals in Berlin (hope to make a 10-=
minute talk at CFRG section in July =E2=80=93 many thanks to Kenny and Alex=
ey for the opportunity).</div><div><br><div class=3D"gmail_extra"><br clear=
=3D"all"><div><div class=3D"gmail_signature" data-smartmail=3D"gmail_signat=
ure"><div dir=3D"ltr"><p class=3D"MsoNormal"><a name=3D"_MailAutoSig"><span=
 lang=3D"EN-US" style=3D"color:rgb(31,73,125)">Regards,</span></a></p><p cl=
ass=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:rgb(31,73,125)">Stani=
slav V. Smyshlyaev, Ph.D.,</span></p><p class=3D"MsoNormal"><span lang=3D"E=
N-US" style=3D"color:rgb(31,73,125)">Head of Information Security Departmen=
t,</span></p><p class=3D"MsoNormal"><span style=3D"color:rgb(31,73,125)">Cr=
yptoPro LLC</span></p><div><br></div><div><br></div></div></div></div>
<br><div class=3D"gmail_quote">2016-05-05 7:30 GMT+03:00 Stanislav V. Smysh=
lyaev <span dir=3D"ltr">&lt;<a href=3D"mailto:smyshsv@gmail.com" target=3D"=
_blank">smyshsv@gmail.com</a>&gt;</span>:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-sty=
le:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir=3D"l=
tr">Dear colleagues,<div><br></div><div>we&#39;ve updated the SESPAKE RFC d=
raft (<a href=3D"https://datatracker.ietf.org/doc/draft-smyshlyaev-sespake/=
" target=3D"_blank">https://datatracker.ietf.org/doc/draft-smyshlyaev-sespa=
ke/</a>) to generalize the protocol and to exclude strict conditions of GOS=
T usage.=C2=A0</div><div><br></div><div>All our statements (posted by me pr=
eviously to CFRG) about conformity of SESPAKE to PAKE requirements remain t=
rue, as well as the full security proof (<a href=3D"http://eprint.iacr.org/=
2015/1237" target=3D"_blank">http://eprint.iacr.org/2015/1237</a>) =E2=80=
=93 it is based only on the conditions that the underlying primitives (hash=
 function, elliptic curve, HMAC) are secure (in the corresponding adversary=
 models).=C2=A0</div><div><br></div><div>All test vectors remain based on G=
OST hash/HMAC and elliptic curves from <a href=3D"https://tools.ietf.org/ht=
ml/rfc7836" target=3D"_blank">RFC 7836</a>.</div><div><br></div><div><br></=
div><div>Thanks a lot to=C2=A0J=C3=B6rn for his work on PAKE requirements R=
FC and for our discussion =E2=80=93 I hope, it helped to make both RFC draf=
ts (PAKE requirements and SESPAKE) better.</div><div><br></div><div><br></d=
iv><div><div><div><div><div dir=3D"ltr"><p><font color=3D"#1f497d">Best reg=
ards,</font></p><p><font color=3D"#1f497d">Stanislav</font></p><div><br></d=
iv></div></div></div>
</div></div></div>
</blockquote></div><br></div></div></div>

--94eb2c0c0a060f91f305348bbf0b--


From nobody Wed Jun  8 04:49:52 2016
Return-Path: <wwwrun@rfc-editor.org>
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 AC8F412D5F2; Wed,  8 Jun 2016 04:49:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.628
X-Spam-Level: 
X-Spam-Status: No, score=-105.628 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 VY7Xo-ghl7pt; Wed,  8 Jun 2016 04:49:50 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8645F12D0B5; Wed,  8 Jun 2016 04:49:49 -0700 (PDT)
Received: by rfc-editor.org (Postfix, from userid 30) id 4B501B80AC4; Wed,  8 Jun 2016 04:49:49 -0700 (PDT)
To: martin.thomson@gmail.com, ynir.ietf@gmail.com, agl@google.com
X-PHP-Originating-Script: 30:errata_mail_lib.php
From: RFC Errata System <rfc-editor@rfc-editor.org>
Message-Id: <20160608114949.4B501B80AC4@rfc-editor.org>
Date: Wed,  8 Jun 2016 04:49:49 -0700 (PDT)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/x-A9BXTuZTPjeQQZnKM2jV4qHdY>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: rfc-editor@rfc-editor.org, cfrg@irtf.org, irtf-chair@irtf.org, irsg@irtf.org
Subject: [Cfrg] [Errata Verified] RFC7539 (4700)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 08 Jun 2016 11:49:51 -0000

The following errata report has been verified for RFC7539,
"ChaCha20 and Poly1305 for IETF Protocols". 

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=7539&eid=4700

--------------------------------------
Status: Verified
Type: Technical

Reported by: Martin Thomson <martin.thomson@gmail.com>
Date Reported: 2016-05-24
Verified by: Lars Eggert (IRSG)

Section: 2.8

Original Text
-------------
    The output from the AEAD is twofold:

   o  A ciphertext of the same length as the plaintext.
   o  A 128-bit tag, which is the output of the Poly1305 function.

Corrected Text
--------------
    The output from the AEAD is the concatenation of:

   o  A ciphertext of the same length as the plaintext.
   o  A 128-bit tag, which is the output of the Poly1305 function.

Notes
-----
Section 2.1 of RFC 5116 defines the AEAD interface, and that interface produces a single output, C (or an error).

--------------------------------------
RFC7539 (draft-irtf-cfrg-chacha20-poly1305-10)
--------------------------------------
Title               : ChaCha20 and Poly1305 for IETF Protocols
Publication Date    : May 2015
Author(s)           : Y. Nir, A. Langley
Category            : INFORMATIONAL
Source              : Crypto Forum Research Group
Area                : N/A
Stream              : IRTF
Verifying Party     : IRSG


From nobody Wed Jun 15 02:14:31 2016
Return-Path: <khovratovich@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 A05F612D122 for <cfrg@ietfa.amsl.com>; Wed, 15 Jun 2016 02:14:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, 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 XCMOLGFAEq1E for <cfrg@ietfa.amsl.com>; Wed, 15 Jun 2016 02:14:26 -0700 (PDT)
Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (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 6F99112D0A6 for <cfrg@irtf.org>; Wed, 15 Jun 2016 02:14:26 -0700 (PDT)
Received: by mail-io0-x22c.google.com with SMTP id f30so9186576ioj.2 for <cfrg@irtf.org>; Wed, 15 Jun 2016 02:14:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZakauT3jqp8vH8dpZC9++7Cmb8eTrvPh3ryUvLAolE8=; b=0Qpi2wY3wErq01QHEjAQVGg+ElYhv1gDpCPmEB7PQxqDP9qxd6ek1OTqHQxv0JZ82+ C5xQdHf+fsuxbpe8JrfVqPieJ36mSthZa33Jt5leZvvMMlMFoSBZ4cb/R7IRC+LzVOLr MzsFxYvbnPeDGwtlQx7xF/t/e6ySaLtHmrQjRnI9AppPwdhiyP92BBAYR0HfnipimKzj kvg/+VTiMjwQbMkslgBKT0HGfz9NVLZOrF5HHhP6acI0UQK++UD3UGvqxUoU8XDSs8L/ hN9gKeKJouAz+SgUyukEppAJUFgg14QxuRVP6YZ4lOv7jzcChNLhc836Hg2zISYZbiin CwNQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZakauT3jqp8vH8dpZC9++7Cmb8eTrvPh3ryUvLAolE8=; b=QKDX7VXwRkr5nX+1g88aHb7vHQxfP8WSbs+zwyztzEhFiPAahWpogYRGHktvmiZeLU O0H6XXd6e8bkMg0j5USDj/baOotTKmoTbbuhVqxGBM6ikyUghKMEeWYiCIPFl1vv+qVh 9ayKni2o1/GEFP//riGUSIN9M+BE/0J/ga5Tzm8zymTTLh3sq/APBpm6BDy9k6ejipqA +RbOzRymO3UgWn0hHRFwjaXCii4cywDxD6HTeoHuVHZ1lRd6720Q15c58cgIPE9TzLL+ 0XQ/UrlMEKGYZ+6yByGr5k09qBdwFPmyE08nQha7XafgoLs5RErvgZi0yNlKg0LBFHvK p+MA==
X-Gm-Message-State: ALyK8tIip18lKfYTweLVw34xBIf7dW9hq1VIS+SrKvWdg0QuvWvHA2zQxEqBUeAXYgko8/fid2zuCsXvROR5nQ==
X-Received: by 10.107.146.4 with SMTP id u4mr38356705iod.189.1465982065741; Wed, 15 Jun 2016 02:14:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.115.65 with HTTP; Wed, 15 Jun 2016 02:14:11 -0700 (PDT)
In-Reply-To: <CAEB_pdccDaATC+7kXD2+vX6TVQ1Rt4Z29uMTb5=vYwT_us4V7g@mail.gmail.com>
References: <CALW8-7JZZuWszw+Zj0CWHp79wXeQ2JxvKHT0Bpiwv3hz=m493A@mail.gmail.com> <CALW8-7Js5_sAJ+4ZVg4Hg2iLH41c6aunQMHLH=M+n=neCR0UXw@mail.gmail.com> <57460090.9040901@ist.ac.at> <CAGiyFdcHxUsWeW-hrNpyaJfgK8WZzy=Mbbkc+cr=ht8tgb3CTQ@mail.gmail.com> <574D60C5.80309@ist.ac.at> <CAGiyFdfEjQ3H6HJxSqn1-cmk3fySWepNso1264nt24z0kMg7ig@mail.gmail.com> <CAEB_pdccDaATC+7kXD2+vX6TVQ1Rt4Z29uMTb5=vYwT_us4V7g@mail.gmail.com>
From: Dmitry Khovratovich <khovratovich@gmail.com>
Date: Wed, 15 Jun 2016 11:14:11 +0200
Message-ID: <CALW8-7+w0=s2F3Qs70hpeesaiwjki7OgyeHQd9zRB9vRkns0MA@mail.gmail.com>
To: Stefano Tessaro <tessaro@cs.ucsb.edu>
Content-Type: multipart/alternative; boundary=001a1148cc3a46ba2005354d8c1e
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/v6dFD5va_31O8GdD8qN5w-JlA2A>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Alex Biryukov - UNI <alex.biryukov@uni.lu>, cfrg@irtf.org
Subject: Re: [Cfrg] [MASSMAIL]Re: adopting Argon2 as a CFRG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 15 Jun 2016 09:14:29 -0000

--001a1148cc3a46ba2005354d8c1e
Content-Type: text/plain; charset=UTF-8

Hi Stefano,

the previous attacks on Argon2i and Argon2d do have asymptotic
generalizations. The ranking attack implementation, for instance, shows
(Table 3 in [1]) that depth of random graphs can be upper bounded by a
linear function of the memory reduction factor. We knew from our  heuristic
estimates  that the adversary's advantage grows with total memory spent,
now the more rigorous techniques in the AB paper provided a proof for that.

To summarize, the AB result should be viewed as a theoretical
generalization of attacks in [1] rather than an improvement over them. It
does bring more understanding of memory-hard functions but does not lessen
the security of Argon2i with practical parameters.

[1] "Tradeoff Cryptanalysis of Memory-Hard Functions " Asiacrypt'15, also
in http://eprint.iacr.org/2015/227.pdf
-- 
Best regards,
Dmitry Khovratovich

On Tue, May 31, 2016 at 7:07 PM, Stefano Tessaro <tessaro@cs.ucsb.edu>
wrote:

> This may be obvious to many, but a point that I believe is not
> stressed enough in the on-going discussion is that the AB16 attack
> shows a substantial *asymptotic* improvement over what could be
> expected from a memory-hard function.
>
> In contrast, comparisons here are focusing on the *concrete*
> complexity of the AB16 attack for actual real-world parameters,
> compared with the best known attacks against Argon2i. (The latter
> attacks do not seem to have an obvious asymptotic generalization
> outperforming the AB16 attack, but I am happy to be corrected on
> this.)
>
> Regardless of which attack performs best, asymptotic breaks typically
> tell us more about a construction than just a number.
>
> Indeed, constants and log-factors are likely to be improved in future
> works, and the real question seems to be how much value one should put
> in asymptotic attacks and how much Argon2i (or any other design
> affected by the attacks) is resilient to potential future improvements
> of AB16.
>
> I am not advocating for any particular design. As a passive observer,
> I just feel the attacks should be compared more carefully.
>
> Stefano
>
> On Tue, May 31, 2016 at 3:44 AM, Jean-Philippe Aumasson
> <jeanphilippe.aumasson@gmail.com> wrote:
> >
> > I haven't read the AB16 paper, but I observe that
> >
> > 1) Argon2 designers say "the AB16 attack is less efficient than known
> > attacks"
> >
> > 2) Joel says "the AB16 attack is more efficient than known attacks"
> >
> > Are you guys both right for different notions of "efficient", or is one
> of
> > your analyses wrong?
> >
> > Specifically: Joel, is there something that strikes you as incorrect in
> the
> > analysis in 5.6 of https://www.cryptolux.org/images/0/0d/Argon2.pdf?
> >
> >
> >
> > On Tue, May 31, 2016 at 12:00 PM Joel Alwen <jalwen@ist.ac.at> wrote:
> >>
> >> > Furthermore, my understanding is that the Alwen-Blocki attack on
> >> > Argon2i isn't more efficient than attacks already documented, as
> >> > discussed in 5.6 in
> >> > https://www.cryptolux.org/images/0/0d/Argon2.pdf. So I don't see
> >> > these new results as a showstopper.
> >>
> >> Actually the Alwen-Blocki is more efficient then other known attacks
> >> both in terms of asymptotic and exact constants for interesting
> >> parameter ranges. This is already true for the worst case analysis in
> >> the paper. (See my earlier email in this thread for and references on
> >> this.) Moreover there is good reason to believe that it will behave far
> >> better in practice and that it can also be further improved.
> >>
> >> To be clear: I am neither advocating for nor against Argon2i (or any
> >> other algorithm). My intention at this point is to clarify what is
> >> actually known about Argon2i.
> >>
> >>
> >> As to why I responded positively to Kenny's question about having a new
> >> PHC *in an ideal world*; the reason is that recent results both in terms
> >> of attacks and security proofs all point towards a new desirable
> >> property of an iMHF. That is the underlying DAG of the iMHF should have
> >> a specific combinatoric property (called depth-robustness). Not only is
> >> being depth-robust necessary to avoid the AB16 attack, it also allows us
> >> to make provable security type statements. However constructing the most
> >> efficient & simple such graphs is not a trivial task, especially not
> >> ones which result in the strongest possible provable security
> >> statements. As such a, concerted effort to produce the best such graph
> >> combined with other properties we have learned about in the previous PHC
> >> would likely result in a significantly improved iMHF compared to
> >> everything we currently have available. Of course we may not want to
> >> wait for this, nor spend the energy on it. My reasoning and response
> >> were mindful of the "in an ideal world" part of the question.
> >>
> >> - joel
> >>
> >>  On Wed, May 25, 2016 at 9:44 PM Joel Alwen <jalwen@ist.ac.at
> >> > <mailto:jalwen@ist.ac.at>> wrote:
> >> >
> >> >
> >> >> 3. The best attacks on Argon2, published in the original design
> >> >> document in early 2015, have factor 1.3 for Argon2d and factor 3
> >> >> for Argon2i.
> >> >>
> >> >> 4. The best attack found by Alwen and Blocki has factor 2 for
> >> >> Argon2i.
> >> >>
> >> >> 5. In a bit more details, the advantage of the Alwen-Blocki attack
> >> >>  is upper bounded by (M^{1/4})/36, where M is the number of
> >> >> kilobytes used by Argon2i. Thus the attack has factor 2 with
> >> >> memory up to 16 GB, and less than 1 for memory up to 1 GB. Details
> >> >> in Section 5.6 of https://www.cryptolux.org/images/0/0d/Argon2.pdf
> >> >
> >> > I believe the results of Alwen-Blocki (AB16) actually show that at
> >> > least 6 passes over memory are required for the above suggested
> >> > parameters. - See Corollary 5.6 in [1] - See Figure 1(a) in [1] and
> >> > paragraph titled "Parameter Optimization"
> >> >
> >> > [1] https://eprint.iacr.org/2016/115
> >> >
> >> > Moreover, I think it important to note that the analysis of the
> >> > attack complexity in [1] is very "worst case" in several ways and
> >> > that this leaves room for significantly improvements in practice.
> >> > And of course the analysis was not optimized for concrete parameters
> >> > such as those mentioned above.
> >> >
> >> > Basically I think there are several good reasons to believe that 6
> >> > passes over memory are also not sufficient to avoid the attack.
> >> >
> >> > - Joel
> >> >
> >> >
> >> >
> >> >
> >> > On 05/21/2016 04:38 AM, Dmitry Khovratovich wrote:
> >> >> Some clarifications due to the increased attention to the paper by
> >> >>  Alwen and Blocki, which has been presented at the recent Eurocrypt
> >> >>  CFRG meeting.
> >> >>
> >> >> 1. One of security parameters of memory-hard password hashing
> >> >> functions is how much an ASIC attacker can reduce the area-time
> >> >> product (AT) of a password cracker implemented on ASIC. The AT is
> >> >> conjectured to be proportional to the amortized cracking cost per
> >> >> password.
> >> >>
> >> >> 2. The memory-hard functions with input-independent memory access
> >> >> (such as Argon2i) have been known for its relatively larger
> >> >> AT-reduction factor compared to functions with input-dependent
> >> >> memory access (such as Argon2d). To mitigate this, the minimum of
> >> >> 3 passes over memory for Argon2i was set.
> >> >>
> >> >> 3. The best attacks on Argon2, published in the original design
> >> >> document in early 2015, have factor 1.3 for Argon2d and factor 3
> >> >> for Argon2i.
> >> >>
> >> >> 4. The best attack found by Alwen and Blocki has factor 2 for
> >> >> Argon2i.
> >> >>
> >> >> 5. In a bit more details, the advantage of the Alwen-Blocki attack
> >> >>  is upper bounded by (M^{1/4})/36, where M is the number of
> >> >> kilobytes used by Argon2i. Thus the attack has factor 2 with
> >> >> memory up to 16 GB, and less than 1 for memory up to 1 GB. Details
> >> >> in Section 5.6 of https://www.cryptolux.org/images/0/0d/Argon2.pdf
> >> >>
> >> >> Best regards, Argon2 team
> >> >>
> >> >> On Mon, Feb 1, 2016 at 10:06 PM, Dmitry Khovratovich
> >> >> <khovratovich@gmail.com <mailto:khovratovich@gmail.com>
> >> > <mailto:khovratovich@gmail.com <mailto:khovratovich@gmail.com>>>
> >> > wrote:
> >> >>
> >> >> Dear all,
> >> >>
> >> >> as explained in a recent email
> >> >> http://article.gmane.org/gmane.comp.security.phc/3606 , we are
> >> >> fully aware of the analysis of Argon2i made by Corrigan-Gibbs et
> >> >> al. , we know how to mitigate the demonstrated effect, and have
> >> >> already made some benchmarks on the patch.
> >> >>
> >> >> Soon after the Crypto deadline (Feb-9) we will develop a new
> >> >> release including code, rationale, and test vectors.
> >> >>
> >> >> -- Best regards, the Argon2 team.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> -- Best regards, Dmitry Khovratovich
> >> >>
> >> >>
> >> >> _______________________________________________ Cfrg mailing list
> >> >> Cfrg@irtf.org <mailto:Cfrg@irtf.org>
> >> > https://www.irtf.org/mailman/listinfo/cfrg
> >> >>
> >> >
> >> -
> >
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > https://www.irtf.org/mailman/listinfo/cfrg
> >
>
>
>
> --
> Stefano Tessaro
> Assistant Professor of Computer Science
> University of California, Santa Barbara
> http://cs.ucsb.edu/~tessaro/
>



-- 
Best regards,
Dmitry Khovratovich

--001a1148cc3a46ba2005354d8c1e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div style=3D"font-size:12.8px">Hi Stefano,</div=
><div style=3D"font-size:12.8px"><span style=3D"font-size:12.8px"><br></spa=
n></div><div style=3D"font-size:12.8px"><span style=3D"font-size:12.8px">th=
e previous attacks on Argon2i and Argon2d do have asymptotic generalization=
s. The ranking attack implementation, for instance, shows (Table 3 in [1]) =
that depth of random graphs can be upper bounded by a linear function of th=
e memory reduction factor.=C2=A0</span><span style=3D"font-size:12.8px">We =
knew from our=C2=A0 heuristic estimates=C2=A0 that</span><span style=3D"fon=
t-size:12.8px">=C2=A0the adversary&#39;s advantage grows with total memory =
spent, now the more rigorous techniques in the AB paper provided a proof fo=
r that.</span><br></div><div style=3D"font-size:12.8px"><br></div><div styl=
e=3D"font-size:12.8px">To summarize, the AB result should be viewed as a th=
eoretical generalization of attacks in [1] rather than an improvement over =
them. It does bring more understanding of memory-hard functions but does no=
t lessen the security of Argon2i with practical parameters.</div><div style=
=3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px">[1] &quot;T=
radeoff Cryptanalysis of Memory-Hard Functions &quot; Asiacrypt&#39;15, als=
o in <a href=3D"http://eprint.iacr.org/2015/227.pdf">http://eprint.iacr.org=
/2015/227.pdf</a>=C2=A0 =C2=A0=C2=A0</div></div>--=C2=A0<br><div class=3D"g=
mail_signature" data-smartmail=3D"gmail_signature"><div>Best regards,</div>=
<div>Dmitry Khovratovich</div></div></div></div><div class=3D"gmail_extra">=
<br><div class=3D"gmail_quote">On Tue, May 31, 2016 at 7:07 PM, Stefano Tes=
saro <span dir=3D"ltr">&lt;<a href=3D"mailto:tessaro@cs.ucsb.edu" target=3D=
"_blank">tessaro@cs.ucsb.edu</a>&gt;</span> wrote:<br><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">This may be obvious to many, but a point that I believe is not<br=
>
stressed enough in the on-going discussion is that the AB16 attack<br>
shows a substantial *asymptotic* improvement over what could be<br>
expected from a memory-hard function.<br>
<br>
In contrast, comparisons here are focusing on the *concrete*<br>
complexity of the AB16 attack for actual real-world parameters,<br>
compared with the best known attacks against Argon2i. (The latter<br>
attacks do not seem to have an obvious asymptotic generalization<br>
outperforming the AB16 attack, but I am happy to be corrected on<br>
this.)<br>
<br>
Regardless of which attack performs best, asymptotic breaks typically<br>
tell us more about a construction than just a number.<br>
<br>
Indeed, constants and log-factors are likely to be improved in future<br>
works, and the real question seems to be how much value one should put<br>
in asymptotic attacks and how much Argon2i (or any other design<br>
affected by the attacks) is resilient to potential future improvements<br>
of AB16.<br>
<br>
I am not advocating for any particular design. As a passive observer,<br>
I just feel the attacks should be compared more carefully.<br>
<br>
Stefano<br>
<div><div class=3D"h5"><br>
On Tue, May 31, 2016 at 3:44 AM, Jean-Philippe Aumasson<br>
&lt;<a href=3D"mailto:jeanphilippe.aumasson@gmail.com">jeanphilippe.aumasso=
n@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I haven&#39;t read the AB16 paper, but I observe that<br>
&gt;<br>
&gt; 1) Argon2 designers say &quot;the AB16 attack is less efficient than k=
nown<br>
&gt; attacks&quot;<br>
&gt;<br>
&gt; 2) Joel says &quot;the AB16 attack is more efficient than known attack=
s&quot;<br>
&gt;<br>
&gt; Are you guys both right for different notions of &quot;efficient&quot;=
, or is one of<br>
&gt; your analyses wrong?<br>
&gt;<br>
&gt; Specifically: Joel, is there something that strikes you as incorrect i=
n the<br>
&gt; analysis in 5.6 of <a href=3D"https://www.cryptolux.org/images/0/0d/Ar=
gon2.pdf" rel=3D"noreferrer" target=3D"_blank">https://www.cryptolux.org/im=
ages/0/0d/Argon2.pdf</a>?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, May 31, 2016 at 12:00 PM Joel Alwen &lt;<a href=3D"mailto:jalw=
en@ist.ac.at">jalwen@ist.ac.at</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Furthermore, my understanding is that the Alwen-Blocki attack=
 on<br>
&gt;&gt; &gt; Argon2i isn&#39;t more efficient than attacks already documen=
ted, as<br>
&gt;&gt; &gt; discussed in 5.6 in<br>
&gt;&gt; &gt; <a href=3D"https://www.cryptolux.org/images/0/0d/Argon2.pdf" =
rel=3D"noreferrer" target=3D"_blank">https://www.cryptolux.org/images/0/0d/=
Argon2.pdf</a>. So I don&#39;t see<br>
&gt;&gt; &gt; these new results as a showstopper.<br>
&gt;&gt;<br>
&gt;&gt; Actually the Alwen-Blocki is more efficient then other known attac=
ks<br>
&gt;&gt; both in terms of asymptotic and exact constants for interesting<br=
>
&gt;&gt; parameter ranges. This is already true for the worst case analysis=
 in<br>
&gt;&gt; the paper. (See my earlier email in this thread for and references=
 on<br>
&gt;&gt; this.) Moreover there is good reason to believe that it will behav=
e far<br>
&gt;&gt; better in practice and that it can also be further improved.<br>
&gt;&gt;<br>
&gt;&gt; To be clear: I am neither advocating for nor against Argon2i (or a=
ny<br>
&gt;&gt; other algorithm). My intention at this point is to clarify what is=
<br>
&gt;&gt; actually known about Argon2i.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; As to why I responded positively to Kenny&#39;s question about hav=
ing a new<br>
&gt;&gt; PHC *in an ideal world*; the reason is that recent results both in=
 terms<br>
&gt;&gt; of attacks and security proofs all point towards a new desirable<b=
r>
&gt;&gt; property of an iMHF. That is the underlying DAG of the iMHF should=
 have<br>
&gt;&gt; a specific combinatoric property (called depth-robustness). Not on=
ly is<br>
&gt;&gt; being depth-robust necessary to avoid the AB16 attack, it also all=
ows us<br>
&gt;&gt; to make provable security type statements. However constructing th=
e most<br>
&gt;&gt; efficient &amp; simple such graphs is not a trivial task, especial=
ly not<br>
&gt;&gt; ones which result in the strongest possible provable security<br>
&gt;&gt; statements. As such a, concerted effort to produce the best such g=
raph<br>
&gt;&gt; combined with other properties we have learned about in the previo=
us PHC<br>
&gt;&gt; would likely result in a significantly improved iMHF compared to<b=
r>
&gt;&gt; everything we currently have available. Of course we may not want =
to<br>
&gt;&gt; wait for this, nor spend the energy on it. My reasoning and respon=
se<br>
&gt;&gt; were mindful of the &quot;in an ideal world&quot; part of the ques=
tion.<br>
&gt;&gt;<br>
&gt;&gt; - joel<br>
&gt;&gt;<br>
&gt;&gt;=C2=A0 On Wed, May 25, 2016 at 9:44 PM Joel Alwen &lt;<a href=3D"ma=
ilto:jalwen@ist.ac.at">jalwen@ist.ac.at</a><br>
&gt;&gt; &gt; &lt;mailto:<a href=3D"mailto:jalwen@ist.ac.at">jalwen@ist.ac.=
at</a>&gt;&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; 3. The best attacks on Argon2, published in the original =
design<br>
&gt;&gt; &gt;&gt; document in early 2015, have factor 1.3 for Argon2d and f=
actor 3<br>
&gt;&gt; &gt;&gt; for Argon2i.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 4. The best attack found by Alwen and Blocki has factor 2=
 for<br>
&gt;&gt; &gt;&gt; Argon2i.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 5. In a bit more details, the advantage of the Alwen-Bloc=
ki attack<br>
&gt;&gt; &gt;&gt;=C2=A0 is upper bounded by (M^{1/4})/36, where M is the nu=
mber of<br>
&gt;&gt; &gt;&gt; kilobytes used by Argon2i. Thus the attack has factor 2 w=
ith<br>
&gt;&gt; &gt;&gt; memory up to 16 GB, and less than 1 for memory up to 1 GB=
. Details<br>
&gt;&gt; &gt;&gt; in Section 5.6 of <a href=3D"https://www.cryptolux.org/im=
ages/0/0d/Argon2.pdf" rel=3D"noreferrer" target=3D"_blank">https://www.cryp=
tolux.org/images/0/0d/Argon2.pdf</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I believe the results of Alwen-Blocki (AB16) actually show th=
at at<br>
&gt;&gt; &gt; least 6 passes over memory are required for the above suggest=
ed<br>
&gt;&gt; &gt; parameters. - See Corollary 5.6 in [1] - See Figure 1(a) in [=
1] and<br>
&gt;&gt; &gt; paragraph titled &quot;Parameter Optimization&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [1] <a href=3D"https://eprint.iacr.org/2016/115" rel=3D"noref=
errer" target=3D"_blank">https://eprint.iacr.org/2016/115</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Moreover, I think it important to note that the analysis of t=
he<br>
&gt;&gt; &gt; attack complexity in [1] is very &quot;worst case&quot; in se=
veral ways and<br>
&gt;&gt; &gt; that this leaves room for significantly improvements in pract=
ice.<br>
&gt;&gt; &gt; And of course the analysis was not optimized for concrete par=
ameters<br>
&gt;&gt; &gt; such as those mentioned above.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Basically I think there are several good reasons to believe t=
hat 6<br>
&gt;&gt; &gt; passes over memory are also not sufficient to avoid the attac=
k.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; - Joel<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 05/21/2016 04:38 AM, Dmitry Khovratovich wrote:<br>
&gt;&gt; &gt;&gt; Some clarifications due to the increased attention to the=
 paper by<br>
&gt;&gt; &gt;&gt;=C2=A0 Alwen and Blocki, which has been presented at the r=
ecent Eurocrypt<br>
&gt;&gt; &gt;&gt;=C2=A0 CFRG meeting.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 1. One of security parameters of memory-hard password has=
hing<br>
&gt;&gt; &gt;&gt; functions is how much an ASIC attacker can reduce the are=
a-time<br>
&gt;&gt; &gt;&gt; product (AT) of a password cracker implemented on ASIC. T=
he AT is<br>
&gt;&gt; &gt;&gt; conjectured to be proportional to the amortized cracking =
cost per<br>
&gt;&gt; &gt;&gt; password.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 2. The memory-hard functions with input-independent memor=
y access<br>
&gt;&gt; &gt;&gt; (such as Argon2i) have been known for its relatively larg=
er<br>
&gt;&gt; &gt;&gt; AT-reduction factor compared to functions with input-depe=
ndent<br>
&gt;&gt; &gt;&gt; memory access (such as Argon2d). To mitigate this, the mi=
nimum of<br>
&gt;&gt; &gt;&gt; 3 passes over memory for Argon2i was set.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 3. The best attacks on Argon2, published in the original =
design<br>
&gt;&gt; &gt;&gt; document in early 2015, have factor 1.3 for Argon2d and f=
actor 3<br>
&gt;&gt; &gt;&gt; for Argon2i.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 4. The best attack found by Alwen and Blocki has factor 2=
 for<br>
&gt;&gt; &gt;&gt; Argon2i.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 5. In a bit more details, the advantage of the Alwen-Bloc=
ki attack<br>
&gt;&gt; &gt;&gt;=C2=A0 is upper bounded by (M^{1/4})/36, where M is the nu=
mber of<br>
&gt;&gt; &gt;&gt; kilobytes used by Argon2i. Thus the attack has factor 2 w=
ith<br>
&gt;&gt; &gt;&gt; memory up to 16 GB, and less than 1 for memory up to 1 GB=
. Details<br>
&gt;&gt; &gt;&gt; in Section 5.6 of <a href=3D"https://www.cryptolux.org/im=
ages/0/0d/Argon2.pdf" rel=3D"noreferrer" target=3D"_blank">https://www.cryp=
tolux.org/images/0/0d/Argon2.pdf</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Best regards, Argon2 team<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Mon, Feb 1, 2016 at 10:06 PM, Dmitry Khovratovich<br>
&gt;&gt; &gt;&gt; &lt;<a href=3D"mailto:khovratovich@gmail.com">khovratovic=
h@gmail.com</a> &lt;mailto:<a href=3D"mailto:khovratovich@gmail.com">khovra=
tovich@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &lt;mailto:<a href=3D"mailto:khovratovich@gmail.com">khovrato=
vich@gmail.com</a> &lt;mailto:<a href=3D"mailto:khovratovich@gmail.com">kho=
vratovich@gmail.com</a>&gt;&gt;&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Dear all,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; as explained in a recent email<br>
&gt;&gt; &gt;&gt; <a href=3D"http://article.gmane.org/gmane.comp.security.p=
hc/3606" rel=3D"noreferrer" target=3D"_blank">http://article.gmane.org/gman=
e.comp.security.phc/3606</a> , we are<br>
&gt;&gt; &gt;&gt; fully aware of the analysis of Argon2i made by Corrigan-G=
ibbs et<br>
&gt;&gt; &gt;&gt; al. , we know how to mitigate the demonstrated effect, an=
d have<br>
&gt;&gt; &gt;&gt; already made some benchmarks on the patch.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Soon after the Crypto deadline (Feb-9) we will develop a =
new<br>
&gt;&gt; &gt;&gt; release including code, rationale, and test vectors.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; -- Best regards, the Argon2 team.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; -- Best regards, Dmitry Khovratovich<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________ Cfrg mail=
ing list<br>
&gt;&gt; &gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a> &lt;ma=
ilto:<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>&gt;<br>
&gt;&gt; &gt; <a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D=
"noreferrer" target=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</=
a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; -<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
</div></div>&gt; <a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=
=3D"noreferrer" target=3D"_blank">https://www.irtf.org/mailman/listinfo/cfr=
g</a><br>
&gt;<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
<br>
--<br>
Stefano Tessaro<br>
Assistant Professor of Computer Science<br>
University of California, Santa Barbara<br>
<a href=3D"http://cs.ucsb.edu/~tessaro/" rel=3D"noreferrer" target=3D"_blan=
k">http://cs.ucsb.edu/~tessaro/</a><br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r><div class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div>Be=
st regards,</div><div>Dmitry Khovratovich</div></div>
</div>

--001a1148cc3a46ba2005354d8c1e--


From nobody Thu Jun 16 05:41:43 2016
Return-Path: <khovratovich@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 D936A12D5C2 for <cfrg@ietfa.amsl.com>; Wed, 15 Jun 2016 07:42:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, 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 UnbEcy5pWsxq for <cfrg@ietfa.amsl.com>; Wed, 15 Jun 2016 07:42:44 -0700 (PDT)
Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (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 94D2412B03E for <cfrg@irtf.org>; Wed, 15 Jun 2016 07:42:43 -0700 (PDT)
Received: by mail-io0-x22e.google.com with SMTP id f30so13942926ioj.2 for <cfrg@irtf.org>; Wed, 15 Jun 2016 07:42:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to;  bh=JHiEfUFlZFAOiAzEoktqfMd89IoRfRtm/b9cctLfG5c=; b=d/kyQIAOSIPvsClF9efMI5WClyR8T5zumrsvEUwpFjAfx1qS1yIl8qZFuhM2QaqbFc Paae3SDebkWvxINvY6A1ax8aZ/GO3JHtW1NAHJiT/vGoOOsvqFQxlfkXYZ/zdAuLfmTg 7N3hq4WZ30fvWDF8DywBWfdPYjL87OaSvCuzM2pqxVsILRkvUXuCjf/wz5JRWc8tHe/u Fp9CklEoWhd6xp3WneYH3dFXgv8LqQ+HwTTeYR8/NRRlSy5RxnX6tgpMUOk8Lka+cev8 ofHmzmtiPAGYwnLMDcLTg0k/fiI072te16i+0axHAQyquUF/VtrF9rHpIaYZKXFyrcIF MfhA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=JHiEfUFlZFAOiAzEoktqfMd89IoRfRtm/b9cctLfG5c=; b=moHN3TzAR/lG3AeFKXZfVO+GOZMUTHjWDNpMb9/tqnYmUaN/+api/EntYhe7JY4v8b 0xc1kTIwnT6sFk9q+sK9KZbx1bnZcYD5edGf20gUy+3u25xBYQ9VqK70US2jN2VVrDLS 5wRiFJuDs4izdDVsqonowxoWhwC8nvZV4fuCKfEEa2PNedONEsnvoboZrlUkDPwCZs7b wRg3IJJcYreSWeiHwGlyFILkZdhuibkNf+WbJtXLy73PJSDNVEhatgR6ykixdMsXuvGK dwhTPLqPMmeMbVYmkN++BdtGGfW811BnAt/WLCW5d7sbX6PwGXpeWGFhMWzNagmw0JSy STfw==
X-Gm-Message-State: ALyK8tIAf/XVTK5oPyX95fQU0ImRIQ5yBHEz1GRBP93L/fIimPFrR5m+cRcLLpW6w/9SEqUfIgbF6CXhVXhq0A==
X-Received: by 10.107.47.152 with SMTP id v24mr45637322iov.8.1466001762619; Wed, 15 Jun 2016 07:42:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.115.65 with HTTP; Wed, 15 Jun 2016 07:42:27 -0700 (PDT)
In-Reply-To: <CALW8-7Js5_sAJ+4ZVg4Hg2iLH41c6aunQMHLH=M+n=neCR0UXw@mail.gmail.com>
References: <CALW8-7JZZuWszw+Zj0CWHp79wXeQ2JxvKHT0Bpiwv3hz=m493A@mail.gmail.com> <CALW8-7Js5_sAJ+4ZVg4Hg2iLH41c6aunQMHLH=M+n=neCR0UXw@mail.gmail.com>
From: Dmitry Khovratovich <khovratovich@gmail.com>
Date: Wed, 15 Jun 2016 16:42:27 +0200
Message-ID: <CALW8-7LYC7kzN98n-rwJLBZufUtukFepKveBFujycEjU7F65Yg@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/mixed; boundary=001a1137a4484dc31c0535522226
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/ZV5dfho-vokM1Yb8Oy0eCXcPf-0>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
X-Mailman-Approved-At: Thu, 16 Jun 2016 05:41:42 -0700
Subject: Re: [Cfrg] [MASSMAIL]Re: adopting Argon2 as a CFRG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 15 Jun 2016 14:42:48 -0000

--001a1137a4484dc31c0535522226
Content-Type: multipart/alternative; boundary=001a1137a4484dc3160535522224

--001a1137a4484dc3160535522224
Content-Type: text/plain; charset=UTF-8

Dear chairs and others,

we would like to proceed with the Argon2 draft unless there are strong
objections. We have expanded the security section of the document to inform
the user of the potential time-memory tradeoffs given the recent analysis
papers. "Paranoid" parameter sets have been recommended as well. The final
draft would then be presented in Berlin.

Best regards,
the Argon2 team.

On Sat, May 21, 2016 at 10:38 AM, Dmitry Khovratovich <
khovratovich@gmail.com> wrote:

> Some clarifications due to the increased attention to the paper by Alwen
> and Blocki, which has been presented at the recent Eurocrypt CFRG meeting.
>
> 1. One of security parameters of memory-hard password hashing functions is
> how much an ASIC attacker can reduce the area-time product (AT) of a
> password cracker implemented on ASIC. The AT is conjectured to be
> proportional to the amortized cracking cost per password.
>
> 2. The memory-hard functions with input-independent memory access (such as
> Argon2i) have been known for its relatively larger AT-reduction factor
> compared to functions with input-dependent memory access (such as Argon2d).
> To mitigate this, the minimum of 3 passes over memory for Argon2i was set.
>
> 3. The best attacks on Argon2, published in the original design document
> in early 2015, have factor 1.3 for Argon2d and factor 3 for Argon2i.
>
> 4. The best attack found by Alwen and Blocki has factor 2 for Argon2i.
>
> 5. In a bit more details, the advantage of the Alwen-Blocki attack is
> upper bounded by (M^{1/4})/36, where M is the number of kilobytes used by
> Argon2i. Thus the attack has factor 2 with memory up to 16 GB, and less
> than 1 for memory up to 1 GB. Details in Section 5.6 of
> https://www.cryptolux.org/images/0/0d/Argon2.pdf
>
> Best regards,
> Argon2 team
>
> On Mon, Feb 1, 2016 at 10:06 PM, Dmitry Khovratovich <
> khovratovich@gmail.com> wrote:
>
>> Dear all,
>>
>> as explained in a recent email
>> http://article.gmane.org/gmane.comp.security.phc/3606 , we are fully
>> aware of the analysis of Argon2i made by Corrigan-Gibbs et al. , we know
>> how to mitigate the demonstrated effect, and have already made some
>> benchmarks on the patch.
>>
>> Soon after the Crypto deadline (Feb-9) we will develop a new release
>> including code, rationale, and test vectors.
>>
>> --
>> Best regards,
>> the Argon2 team.
>>
>
>
>
> --
> Best regards,
> Dmitry Khovratovich
>



-- 
Best regards,
Dmitry Khovratovich

--001a1137a4484dc3160535522224
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear chairs and=C2=A0<span style=3D"font-size:12.8px">othe=
rs,</span><div><div style=3D"font-size:12.8px"><br></div><div style=3D"font=
-size:12.8px">we would like to proceed with the Argon2 draft unless there a=
re strong objections. We have expanded the security section of the document=
 to inform the user of the potential time-memory tradeoffs given the recent=
 analysis papers. &quot;Paranoid&quot; parameter sets have been recommended=
 as well. The final draft would then be presented in Berlin.</div></div><di=
v style=3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px">Best=
 regards,</div><div style=3D"font-size:12.8px">the Argon2 team.</div></div>=
<div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, May 21, 2=
016 at 10:38 AM, Dmitry Khovratovich <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:khovratovich@gmail.com" target=3D"_blank">khovratovich@gmail.com</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Some =
clarifications due to the increased attention to the paper by Alwen and Blo=
cki, which has been presented at the recent Eurocrypt CFRG meeting.</div><d=
iv><br></div><div>1. One of security parameters of memory-hard password has=
hing functions is how much an ASIC attacker can reduce the area-time produc=
t (AT) of a password cracker implemented on ASIC. The AT is conjectured to =
be proportional to the amortized cracking cost per password.</div><div><br>=
</div><div>2. The memory-hard functions with input-independent memory acces=
s (such as Argon2i) have been known for its relatively larger AT-reduction =
factor compared to functions with input-dependent memory access (such as Ar=
gon2d). To mitigate this, the minimum of 3 passes over memory for Argon2i w=
as set.</div><div><br></div><div>3. The best attacks on Argon2, published i=
n the original design document in early 2015, have factor 1.3 for Argon2d a=
nd factor 3 for Argon2i.=C2=A0</div><div><br></div><div>4. The best attack =
found by Alwen and Blocki has factor 2 for Argon2i.</div><div><br></div><di=
v>5. In a bit more details, the advantage of the Alwen-Blocki attack is upp=
er bounded by (M^{1/4})/36, where M is the number of kilobytes used by Argo=
n2i. Thus the attack has factor 2 with memory up to 16 GB, and less than 1 =
for memory up to 1 GB. Details in Section 5.6 of <a href=3D"https://www.cry=
ptolux.org/images/0/0d/Argon2.pdf" target=3D"_blank">https://www.cryptolux.=
org/images/0/0d/Argon2.pdf</a></div><div><br></div><div>Best regards,</div>=
<div>Argon2 team</div></div><div class=3D"gmail_extra"><div><div class=3D"h=
5"><br><div class=3D"gmail_quote">On Mon, Feb 1, 2016 at 10:06 PM, Dmitry K=
hovratovich <span dir=3D"ltr">&lt;<a href=3D"mailto:khovratovich@gmail.com"=
 target=3D"_blank">khovratovich@gmail.com</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div dir=3D"ltr">Dear all,<div><br></div><div>as exp=
lained in a recent email=C2=A0<a href=3D"http://article.gmane.org/gmane.com=
p.security.phc/3606" target=3D"_blank">http://article.gmane.org/gmane.comp.=
security.phc/3606</a> , we are fully aware of the analysis of Argon2i made =
by Corrigan-Gibbs et al. , we know how to mitigate the demonstrated effect,=
 and have already made some benchmarks on the patch.</div><div><br></div><d=
iv>Soon after the Crypto deadline (Feb-9) we will develop a new release inc=
luding code, rationale, and test vectors.=C2=A0<span><font color=3D"#888888=
"><br clear=3D"all"><div><br></div>-- <br><div><div>Best regards,</div><div=
>the Argon2 team.</div></div>
</font></span></div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span c=
lass=3D"">-- <br><div><div>Best regards,</div><div>Dmitry Khovratovich</div=
></div>
</span></div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div>Best regards,<=
/div><div>Dmitry Khovratovich</div></div>
</div>

--001a1137a4484dc3160535522224--

--001a1137a4484dc31c0535522226
Content-Type: text/plain; charset=US-ASCII; name="draft-irtf-cfrg-argon2.txt"
Content-Disposition: attachment; filename="draft-irtf-cfrg-argon2.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ipgzkl0x0

CgoKCk5ldHdvcmsgV29ya2luZyBHcm91cCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBBLiBCaXJ5dWtvdgpJbnRlcm5ldC1EcmFmdCAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIEQuIERpbnUKSW50ZW5kZWQgc3RhdHVzOiBJbmZv
cm1hdGlvbmFsICAgICAgICAgICAgICAgICAgICAgICAgICAgRC4gS2hvdnJhdG92aWNoCkV4cGly
ZXM6IERlY2VtYmVyIDE3LCAyMDE2ICAgICAgICAgICAgICAgICAgICAgIFVuaXZlcnNpdHkgb2Yg
THV4ZW1ib3VyZwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBTLiBKb3NlZnNzb24KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU0pEIEFCCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSnVuZSAxNSwgMjAx
NgoKCiAgICBUaGUgbWVtb3J5LWhhcmQgQXJnb24yIHBhc3N3b3JkIGhhc2ggYW5kIHByb29mLW9m
LXdvcmsgZnVuY3Rpb24KICAgICAgICAgICAgICAgICAgICAgICBkcmFmdC1pcnRmLWNmcmctYXJn
b24yLTAwCgpBYnN0cmFjdAoKICAgVGhpcyBkb2N1bWVudCBkZXNjcmliZXMgdGhlIEFyZ29uMiBt
ZW1vcnktaGFyZCBmdW5jdGlvbiBmb3IgcGFzc3dvcmQKICAgaGFzaGluZyBhbmQgcHJvb2Ytb2Yt
d29yayBhcHBsaWNhdGlvbn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FogWE9SIFI6CgogICAgICAgICAgIEc6IChYLCBZKSAt
PiBSID0gWCBYT1IgWSAtUC0+IFEgLVAtPiBaIC1QLT4gWiBYT1IgUgoKCgoKCgoKCgoKCgoKCgoK
CgoKCgoKCgpCaXJ5dWtvdiwgZXQgYWwuICAgICAgICBFeHBpcmVzIERlY2VtYmVyIDE3LCAyMDE2
ICAgICAgICAgICAgICAgW1BhZ2UgOF0KDApJbnRlcm5ldC1EcmFmdCAgICAgICAgICAgICAgICAg
ICBBcmdvbjIgICAgICAgICAgICAgICAgICAgICAgICBKdW5lIDIwMTYKCgogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgKy0tLSsgICAgICAgKy0tLSsKICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIHwgWCB8ICAgICAgIHwgWSB8CiAgICAgICAgICAgICAgICAgICAgICAgICAgICArLS0tKyAg
ICAgICArLS0tKwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgICB8CiAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIC0tLS0+WE9SPC0tLS0KICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIC0tLS0tLS0tfAogICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAg
IFwgLwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgKy0tLSsKICAgICAgICAgICAg
ICAgICAgICAgICAgICAgIHwgICAgIHwgUiB8CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB8
ICAgICArLS0tKwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICB8CiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICB8ICAgICAgXCAvCiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICB8ICAgUCByb3d3aXNlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgIHwKICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICBcIC8KICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIHwgICAgICstLS0rCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICB8IFEg
fAogICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgKy0tLSsKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIHwgICAgICAgfAogICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAg
IFwgLwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgUCBjb2x1bW53aXNlCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICB8ICAgICAgIHwKICAgICAgICAgICAgICAgICAgICAgICAgICAg
IHwgICAgICBcIC8KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICstLS0rCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICB8ICAgICB8IFogfAogICAgICAgICAgICAgICAgICAgICAg
ICAgICAgfCAgICAgKy0tLSsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgfAog
ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgIFwgLwogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgLS0tLS0tPlhPUgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCAvCgogICAgICAgICAgICAgICAg
ICAgICAgQXJnb24yIGNvbXByZXNzaW9uIGZ1bmN0aW9uIEcuCgozLjYuICBQZXJtdXRhdGlvbiBQ
CgogICBQZXJtdXRhdGlvbiBQIGlzIGJhc2VkIG9uIHRoZSByb3VuZCBmdW5jdGlvbiBvZiBCTEFL
RTJiLiAgVGhlIDgKICAgMTYtYnl0ZSBpbnB1dHMgU18wLCBTXzEsIC4uLiAsIFNfNyBhcmUgdmll
d2VkIGFzIGEgNHg0IG1hdHJpeCBvZgogICA2NC1iaXQgd29yZHMsIHdoZXJlIFNfaSA9ICh2X3sy
KmkrMX0gfHwgdl97MippfSk6CgogICAgICAgICAgICB2XzAgIHZfMSAgdl8yICB2XzMKICAgICAg
ICAgICAgdl80ICB2XzUgIHZfNiAgdl83CiAgICAgICAgICAgIHZfOCAgdl85IHZfMTAgdl8xMQog
ICAgICAgICAgIHZfMTIgdl8xMyB2XzE0IHZfMTUKCiAgIEl0IHdvcmtzIGFzIGZvbGxvd3M6CgoK
CgoKQmlyeXVrb3YsIGV0IGFsLiAgICAgICAgRXhwaXJlcyBEZWNlbWJlciAxNywgMjAxNiAgICAg
ICAgICAgICAgIFtQYWdlIDldCgwKSW50ZXJuZXQtRHJhZnQgICAgICAgICAgICAgICAgICAgQXJn
b24yICAgICAgICAgICAgICAgICAgICAgICAgSnVuZSAyMDE2CgoKICAgICAgICAgICBHKHZfMCwg
dl80LCAgdl84LCB2XzEyKQogICAgICAgICAgIEcodl8xLCB2XzUsICB2XzksIHZfMTMpCiAgICAg
ICAgICAgRyh2XzIsIHZfNiwgdl8xMCwgdl8xNCkKICAgICAgICAgICBHKHZfMywgdl83LCB2XzEx
LCB2XzE1KQoKICAgICAgICAgICBHKHZfMCwgdl81LCB2XzEwLCB2XzE1KQogICAgICAgICAgIEco
dl8xLCB2XzYsIHZfMTEsIHZfMTIpCiAgICAgICAgICAgRyh2XzIsIHZfNywgIHZfOCwgdl8xMykK
ICAgICAgICAgICBHKHZfMywgdl80LCAgdl85LCB2XzE0KQoKICAgRyhhLCBiLCBjLCBkKSBpcyBk
ZWZpbmVkIGFzIGZvbGxvd3M6CgogICAgICAgICAgIGEgPC0gKGEgKyBiICsgMiAqIHRydW5jKGEp
ICogdHJ1bmMoYikpIG1vZCAyKio2NAogICAgICAgICAgIGQgPC0gKGQgXiBhKSA+Pj4gMzIKICAg
ICAgICAgICBjIDwtIChjICsgZCArIDIgKiB0cnVuYyhjKSAqIHRydW5jKGQpKSBtb2QgMioqNjQK
ICAgICAgICAgICBiIDwtIChiIF4gYykgPj4+IDI0CgogICAgICAgICAgIGEgPC0gKGEgKyBiICsg
MiAqIHRydW5jKGEpICogdHJ1bmMoYikpIG1vZCAyKio2NAogICAg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AzXSwKICAgICAgICAgYmxvY2tSLnZbMTYgKiBpICsgNF0sIGJsb2NrUi52WzE2ICog
aSArIDVdLAogICAgICAgICBibG9ja1IudlsxNiAqIGkgKyA2XSwgYmxvY2tSLnZbMTYgKiBpICsg
N10sCiAgICAgICAgIGJsb2NrUi52WzE2ICogaSArIDhdLCBibG9ja1IudlsxNiAqIGkgKyA5XSwK
ICAgICAgICAgYmxvY2tSLnZbMTYgKiBpICsgMTBdLCBibG9ja1IudlsxNiAqIGkgKyAxMV0sCiAg
ICAgICAgIGJsb2NrUi52WzE2ICogaSArIDEyXSwgYmxvY2tSLnZbMTYgKiBpICsgMTNdLAogICAg
ICAgICBibG9ja1IudlsxNiAqIGkgKyAxNF0sIGJsb2NrUi52WzE2ICogaSArIDE1XSk7CiAgICAg
fQoKICAgICAvKiBBcHBseSBCbGFrZTIgb24gcm93cyBvZiA2NC1iaXQgd29yZHM6ICgwLDEsMTYs
MTcsLi4uMTEyLDExMyksCiAgICAgICAgdGhlbiAoMiwzLDE4LDE5LC4uLiwxMTQsMTE1KSwgLi4u
IGFuZCBmaW5hbGx5CiAgICAgICAgKDE0LDE1LDMwLDMxLC4uLiwxMjYsMTI3KSAqLwogICAgIGZv
ciAoaSA9IDA7IGkgPCA4OyBpKyspIHsKICAgICAgIEJMQUtFMl9ST1VORF9OT01TRygKICAgICAg
ICAgYmxvY2tSLnZbMiAqIGldLCBibG9ja1IudlsyICogaSArIDFdLAogICAgICAgICBibG9ja1Iu
dlsyICogaSArIDE2XSwgYmxvY2tSLnZbMiAqIGkgKyAxN10sCiAgICAgICAgIGJsb2NrUi52WzIg
KiBpICsgMzJdLCBibG9ja1IudlsyICogaSArIDMzXSwKICAgICAgICAgYmxvY2tSLnZbMiAqIGkg
KyA0OF0sIGJsb2NrUi52WzIgKiBpICsgNDldLAogICAgICAgICBibG9ja1IudlsyICogaSArIDY0
XSwgYmxvY2tSLnZbMiAqIGkgKyA2NV0sCiAgICAgICAgIGJsb2NrUi52WzIgKiBpICsgODBdLCBi
bG9ja1IudlsyICogaSArIDgxXSwKICAgICAgICAgYmxvY2tSLnZbMiAqIGkgKyA5Nl0sIGJsb2Nr
Ui52WzIgKiBpICsgOTddLAogICAgICAgICBibG9ja1IudlsyICogaSArIDExMl0sIGJsb2NrUi52
WzIgKiBpICsgMTEzXSk7CiAgICAgfQoKICAgICBjb3B5X2Jsb2NrKG5leHRfYmxvY2ssICZibG9j
a190bXApOwogICAgIHhvcl9ibG9jayhuZXh0X2Jsb2NrLCAmYmxvY2tSKTsKICAgfQoKCgoKCgpC
aXJ5dWtvdiwgZXQgYWwuICAgICAgICBFeHBpcmVzIERlY2VtYmVyIDE3LCAyMDE2ICAgICAgICAg
ICAgICBbUGFnZSAxMl0KDApJbnRlcm5ldC1EcmFmdCAgICAgICAgICAgICAgICAgICBBcmdvbjIg
ICAgICAgICAgICAgICAgICAgICAgICBKdW5lIDIwMTYKCgogICB2b2lkIGZpbGxfYmxvY2tfd2l0
aF94b3IoY29uc3QgYmxvY2sgKnByZXZfYmxvY2ssCiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICBjb25zdCBibG9jayAqcmVmX2Jsb2NrLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgYmxv
Y2sgKm5leHRfYmxvY2spIHsKICAgICBibG9jayBibG9ja1IsIGJsb2NrX3RtcDsKICAgICB1bnNp
Z25lZCBpOwoKICAgICBjb3B5X2Jsb2NrKCZibG9ja1IsIHJlZl9ibG9jayk7CiAgICAgeG9yX2Js
b2NrKCZibG9ja1IsIHByZXZfYmxvY2spOwogICAgIGNvcHlfYmxvY2soJmJsb2NrX3RtcCwgJmJs
b2NrUik7CgogICAgIC8qIFNhdmluZyB0aGUgbmV4dCBibG9jayBjb250ZW50cyBmb3IgWE9SIG92
ZXIgKi8KICAgICB4b3JfYmxvY2soJmJsb2NrX3RtcCwgbmV4dF9ibG9jayk7CgogICAgIC8qIE5v
dyBibG9ja1IgPSByZWZfYmxvY2sgKyBwcmV2X2J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xNCwxNSwzMCwzMSwuLi4sMTI2LDEyNykgKi8KICAgICBmb3IgKGkgPSAwOyBpIDwgODsgaSsr
KSB7CiAgICAgICBCTEFLRTJfUk9VTkRfTk9NU0coCiAgICAgICAgIGJsb2NrUi52WzIgKiBpXSwg
YmxvY2tSLnZbMiAqIGkgKyAxXSwKICAgICAgICAgYmxvY2tSLnZbMiAqIGkgKyAxNl0sIGJsb2Nr
Ui52WzIgKiBpICsgMTddLAogICAgICAgICBibG9ja1IudlsyICogaSArIDMyXSwgYmxvY2tSLnZb
MiAqIGkgKyAzM10sCiAgICAgICAgIGJsb2NrUi52WzIgKiBpICsgNDhdLCBibG9ja1IudlsyICog
aSArIDQ5XSwKICAgICAgICAgYmxvY2tSLnZbMiAqIGkgKyA2NF0sIGJsb2NrUi52WzIgKiBpICsg
NjVdLAogICAgICAgICBibG9ja1IudlsyICogaSArIDgwXSwgYmxvY2tSLnZbMiAqIGkgKyA4MV0s
CiAgICAgICAgIGJsb2NrUi52WzIgKiBpICsgOTZdLCBibG9ja1IudlsyICogaSArIDk3XSwKICAg
ICAgICAgYmxvY2tSLnZbMiAqIGkgKyAxMTJdLCBibG9ja1IudlsyICogaSArIDExM10pOwogICAg
IH0KCiAgICAgY29weV9ibG9jayhuZXh0X2Jsb2NrLCAmYmxvY2tfdG1wKTsKICAgICB4b3JfYmxv
Y2sobmV4dF9ibG9jaywgJmJsb2NrUik7CiAgIH0KCgoKQmlyeXVrb3YsIGV0IGFsLiAgICAgICAg
RXhwaXJlcyBEZWNlbWJlciAxNywgMjAxNiAgICAgICAgICAgICAgW1BhZ2UgMTNdCgwKSW50ZXJu
ZXQtRHJhZnQgICAgICAgICAgICAgICAgICAgQXJnb24yICAgICAgICAgICAgICAgICAgICAgICAg
SnVuZSAyMDE2CgoKICAgdm9pZCBnZW5lcmF0ZV9hZGRyZXNzZXMoY29uc3QgYXJnb24yX2luc3Rh
bmNlX3QgKmluc3RhbmNlLAogICAgICAgICAgICAgICAgICAgICAgICA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V0OwogICAgICAgaWYgKGluc3RhbmNlLT52ZXJzaW9uID09IEFSR09OMl9PTERf
VkVSU0lPTl9OVU1CRVIpIHsKICAgICAgICAgLyogdmVyc2lvbiAxLjIuMSBhbmQgZWFybGllcjog
b3ZlcndyaXRlLCBub3QgWE9SICovCiAgICAgICAgIGZpbGxfYmxvY2soaW5zdGFuY2UtPm1lbW9y
eSArIHByZXZfb2Zmc2V0LCByZWZfYmxvY2ssCiAgICAgICAgICAgICAgICAgICAgY3Vycl9ibG9j
ayk7CiAgICAgICB9IGVsc2UgewogICAgICAgICBpZigwID09IHBvc2l0aW9uLnBhc3MpIHsKICAg
ICAgICAgICBmaWxsX2Jsb2NrKGluc3RhbmNlLT5tZW1vcnkgKyBwcmV2X29mZnNldCwgcmVmX2Js
b2NrLAogICAgICAgICAgICAgICAgICAgICAgY3Vycl9ibG9jayk7CiAgICAgICAgIH0gZWxzZSB7
CiAgICAgICAgICAgZmlsbF9ibG9ja193aXRoX3hvcihpbnN0YW5jZS0+bWVtb3J5ICsgcHJldl9v
ZmZzZXQsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWZfYmxvY2ssIGN1cnJfYmxv
Y2spOwogICAgICAgICB9CiAgICAgICB9CiAgICAgfQoKICAgICBmcmVlKHBzZXVkb19yYW5kcyk7
CiAgIH0KCiAgdWludDMyX3QgaW5kZXhfYWxwaGEoY29uc3QgYXJnb24yX2luc3RhbmNlX3QgKmlu
c3RhbmNlLAogICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGFyZ29uMl9wb3NpdGlvbl90ICpw
b3NpdGlvbiwKICAgICAgICAgICAgICAgICAgICAgICB1aW50MzJfdCBwc2V1ZG9fcmFuZCwKICAg
ICAgICAgICAgICAgICAgICAgICBpbnQgc2FtZV9sYW5lKSB7CiAgICAvKgogICAgICogUGFzcyAw
OgogICAgICogIFRoaXMgbGFuZSA6IGFsbCBhbHJlYWR5IGZpbmlzaGVkIHNlZ21lbnRzIHBsdXMg
YWx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gICAvKiBUaGUgc2FtZSBsYW5lID0+IGFkZCBjdXJy
ZW50IHNlZ21lbnQgKi8KICAgICAgICAgIHJlZmVyZW5jZV9hcmVhX3NpemUgPSBwb3NpdGlvbi0+
c2xpY2UgKgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluc3RhbmNlLT5zZWdtZW50
X2xlbmd0aCArCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24tPmluZGV4
IC0gMTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmVmZXJlbmNlX2FyZWFfc2l6ZSA9IHBv
c2l0aW9uLT5zbGljZSAqCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5zdGFuY2Ut
PnNlZ21lbnRfbGVuZ3RoICsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKHBvc2l0
aW9uLT5pbmRleCA9PSAwKSA/ICgtMSkgOiAwKTsKICAgICAgICB9CiAgICAgIH0KICAgIH0gZWxz
ZSB7CiAgICAgIC8qIFNlY29uZCBwYXNzICovCiAgICAgIGlmIChzYW1lX2xhbmUpIHsKICAgICAg
ICByZWZlcmVuY2VfYXJlYV9zaXplID0gaW5zdGFuY2UtPmxhbmVfbGVuZ3RoIC0KICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgaW5zdGFuY2UtPnNlZ21lbnRfbGVuZ3RoICsKICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24tPmluZGV4IC0gMTsKICAgICAgfSBlbHNlIHsK
ICAgICAgICByZWZlcmVuY2VfYXJlYV9zaXplID0gaW5zdGFuY2UtPmxhbmVfbGVuZ3RoIC0KICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5zdGFuY2UtPnNlZ21lbnRfbGVuZ3RoICsKICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgKChwb3NpdGlvbi0+aW5kZXggPT0gMCkgPyAoLTEp
IDogMCk7CiAgICAgIH0KICAgIH0K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ig
KHMgPSAwOyBzIDwgQVJHT04yX1NZTkNfUE9JTlRTOyArK3MpIHsKICAgICAgaW50IHJjOwogICAg
ICB1aW50MzJfdCBsOwoKICAgICAgLyogMi4gQ2FsbGluZyB0aHJlYWRzICovCiAgICAgIGZvciAo
bCA9IDA7IGwgPCBpbnN0YW5jZS0+bGFuZXM7ICsrbCkgewogICAgICAgIGFyZ29uMl9wb3NpdGlv
bl90IHBvc2l0aW9uOwoKICAgICAgICAvKiAyLjEgSm9pbiBhIHRocmVhZCBpZiBsaW1pdCBpcyBl
eGNlZWRlZCAqLwogICAgICAgIGlmIChsID49IGluc3RhbmNlLT50aHJlYWRzKSB7CiAgICAgICAg
ICByYyA9IGFyZ29uMl90aHJlYWRfam9pbih0aHJlYWRbbCAtIGluc3RhbmNlLT50aHJlYWRzXSk7
CiAgICAgICAgICBpZiAocmMpIHsKICAgICAgICAgICAgZnJlZSh0aHJfZGF0YSk7CiAgICAgICAg
ICAgIGZyZWUodGhyZWFkKTsKICAgICAgICAgICAgcmV0dXJuIEFSR09OMl9USFJFQURfRkFJTDsK
ICAgICAgICAgIH0KCgoKQmlyeXVrb3YsIGV0IGFsLiAgICAgICAgRXhwaXJlcyBEZWNlbWJlciAx
NywgMjAxNiAgICAgICAgICAgICAgW1BhZ2UgMThdCgwKSW50ZXJuZXQtRHJhZnQgICAgICAgICAg
ICAgICAgICAgQXJnb24yICAgICAgICAgICAgICAgICAgICAgICAgSnVuZSAyMDE2CgoKICAgICAg
ICB9CgogICAgICAgIC8qIDIuMiBDcmVhdGUgdGhyZWFkICovCiAgICAgICAgcG9zaXRpb24ucGFz
cyA9IHI7CiAgICAgICAgcG9zaXRpb24ubGFuZSA9IGw7CiAgICAgICAgcG9zaXRpb24uc2xpY2Ug
PSAodWludDhfdClzOwogICAgICAgIHBvc2l0aW9uLmluZGV4ID0gMDsKICAgICAgICAvKiBwcmVw
YXJpbmcgdGhlIHRocmVhZCBpbnB1dCAqLwogICAgICAgIHRocl9kYXRhW2xdLmluc3RhbmNlX3B0
ciA9IGluc3RhbmNlOwogICAgICAgIG1lbWNweSgmKHRocl9kYXRhW2xdLnBvcyksICZwb3NpdGlv
biwKICAgICAgICAgICAgICAgc2l6ZW9mKGFyZ29uMl9wb3NpdGlvbl90KSk7CiAgICAgICAgcmMg
PSBhcmdvbjJfdGhyZWFkX2NyZWF0ZSgmdGhyZWFkW2xdLCAmZmlsbF9zZWdtZW50X3RociwKICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICh2b2lkICopJnRocl9kYXRhW2xdKTsKICAg
ICAgICBpZiAocmMpIHsKICAgICAgICAgIGZyZWUodGhyX2RhdGEpOwogICAgICAgICAgZnJlZSh0
aHJlYWQpOwogICAgICAgICAgcmV0dXJuIEFSR09OMl9USFJFQURfRkFJTDsKICAgICAgICB9Cgog
ICAgICAgIC8qIGZpbGxfc2VnbWVudChpbnN0YW5jZSwgcG9zaXRpb24pOyAqLwogICAgICAgIC8q
Tm9uLXRocmVhZCBlcXVpdmFsZW50IG9mIHRoZSBsaW5lcyBhYm92ZSAqLwogICAgICB9CgogICAg
ICAvKiAzLiBKb2luaW5nIHJlbWFpbmluZyB0aHJlYWRzICovCiAgICAgIGZvciAobCA9IGluc3Rh
bmNlLT5sYW5lcyAtIGluc3RhbmNlLT50aHJlYWRzOyBsIDwgaW5zdGFuY2UtPmxhbmVzOwogICAg
ICAgICAgICsrbCkgewogICAgICAgIHJjID0gYXJnb24yX3RocmVhZF9qb2luKHRocmVhZFtsXSk7
CiAgICAgICAgaWYgKHJjKSB7CiAgICAgICAgICByZXR1cm4gQVJHT04yX1RIUkVBRF9GQUlMOwog
ICAgICAgIH0KICAgICAgfQogICAgfQogIH0KCiAgaWYgKHRocmVhZCAhPSBOVUxMKSB7CiAgICBm
cmVlKHRocmVhZCk7CiAgfQogIGlmICh0aHJfZGF0YSAhPSBOVUxMKSB7CiAgICBmcmVlKHRocl9k
YXRhKTsKICB9CgogIHJldHVybiBBUkdPTjJfT0s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MdXhlbWJvdXJnCgoK
ICAgRGFuaWVsIERpbnUKICAgVW5pdmVyc2l0eSBvZiBMdXhlbWJvdXJnCgoKICAgRG1pdHJ5IEto
b3ZyYXRvdmljaAogICBVbml2ZXJzaXR5IG9mIEx1eGVtYm91cmcKCgogICBTaW1vbiBKb3NlZnNz
b24KICAgU0pEIEFCCgogICBFbWFpbDogc2ltb25Aam9zZWZzc29uLm9yZwogICBVUkk6ICAgaHR0
cDovL2pvc2Vmc3Nvbi5vcmcvCgoKCgoKCgoKCgoKCgoKCgoKCkJpcnl1a292LCBldCBhbC4gICAg
ICAgIEV4cGlyZXMgRGVjZW1iZXIgMTcsIDIwMTYgICAgICAgICAgICAgIFtQYWdlIDI0XQo=
--001a1137a4484dc31c0535522226--


From nobody Fri Jun 17 09:23:47 2016
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 B356312D84A for <cfrg@ietfa.amsl.com>; Fri, 17 Jun 2016 09:23:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level: 
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_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 ByZPTG-SW5jG for <cfrg@ietfa.amsl.com>; Fri, 17 Jun 2016 09:23:43 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0044.outbound.protection.outlook.com [104.47.0.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D00512D846 for <cfrg@irtf.org>; Fri, 17 Jun 2016 09:23:42 -0700 (PDT)
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; bh=M/c/lHPd6xEOr/qzy8an9A33KnKSwWlKQpYQuhnqkSU=; b=vtX5KBheI0okVmarYxHsw/U8NML5CzTiYJRIXCre13lNOG455REFFcv+TZh6hM+ctE+nzqzFWdlo4MsWwSu/ojcYjMC0NVHtmDBMVOrk1GJSWew42zRspVvBh4pAgrtRh3bfvvyvu/qepHdPzq2I6WcQkVyL2vURMP0p/Ls8ZCI=
Received: from AM4PR03MB1811.eurprd03.prod.outlook.com (10.167.88.147) by AM4PR03MB1812.eurprd03.prod.outlook.com (10.167.88.148) with Microsoft SMTP Server (TLS) id 15.1.517.8; Fri, 17 Jun 2016 16:23:39 +0000
Received: from AM4PR03MB1811.eurprd03.prod.outlook.com ([10.167.88.147]) by AM4PR03MB1811.eurprd03.prod.outlook.com ([10.167.88.147]) with mapi id 15.01.0517.014; Fri, 17 Jun 2016 16:23:39 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Dmitry Khovratovich <khovratovich@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] [MASSMAIL]Re: adopting Argon2 as a CFRG document
Thread-Index: AQHRszxDNKUWfIzAsEm/HHL33ss7NJ/qwc2AgANSQoA=
Date: Fri, 17 Jun 2016 16:23:39 +0000
Message-ID: <D389E290.6E9FE%kenny.paterson@rhul.ac.uk>
References: <CALW8-7JZZuWszw+Zj0CWHp79wXeQ2JxvKHT0Bpiwv3hz=m493A@mail.gmail.com> <CALW8-7Js5_sAJ+4ZVg4Hg2iLH41c6aunQMHLH=M+n=neCR0UXw@mail.gmail.com> <CALW8-7LYC7kzN98n-rwJLBZufUtukFepKveBFujycEjU7F65Yg@mail.gmail.com>
In-Reply-To: <CALW8-7LYC7kzN98n-rwJLBZufUtukFepKveBFujycEjU7F65Yg@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.4.160422
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [134.219.148.47]
x-ms-office365-filtering-correlation-id: 7be8e07b-0843-4a07-501d-08d396cbbdf5
x-microsoft-exchange-diagnostics: 1; AM4PR03MB1812; 6:A+9Jrs9JfsbAmb6hyQ7FcqKXQDm1zv8XHrW04WCYidoiDG7WVkvWeln/gezAOO9Jwtb9WloT2mH8GUbBEIVcn2Pr31l18CXirmZ8kx6MF+SqjSU4sKsU8/CoNICxxMpctMAhKb27klFrqpUnvwPVY4ty95ABTMDaDxoHgTzQq9LbnTK47rQ7etV+NKSh7mgxspAdU0jp/CjyQk8QuIlp8nf84JTmmpxmOiWf8/ZE/ritE8MPteYxoUw9J4Idgza9I3Py8VAYVjriXz14PZ5mI+x8k1j5+Rt1zZy1y9jTN/A=; 5:5RgW1IVFJXGGbrsCRNzFb2XnhHPh0e4X46TwIX/9UF2zeDdq9jW+ARLxY9JttrLmfUXWLHIx8+5qXSOwy7H4KFgkneiuRrtmnCM7nZpMCG4hCzXj4LCTgI4YJO5BB3ZcdeJXQwMTtbqXxWGMOvoWGg==; 24:LcWcyjVGkvWd6MKOyjmSv1giH7ei5VcLPnKa+nGGguF71boupqx0rZNasJ1Ne8e57Wnm5JQLkbXDl4Ayj8EFwD/tsZ/wrze5G2rhwwmQC7g=; 7:US2MD07qAAo17vYCDwQkakjjsjjOphHV+NTNgKuWFb0oLXvGzAg6uABAk2MR+fyAMF1YQ2slyQayKUdPdHoYOun1B8m8CIG5gIswD4oCuRYSSizopfPUeqsusmW4ijbmqcCTfIPKFNVOUvOFapcZiJaiu/PTPiqGqu0ZolHkJD2MYzA8+ZG9kd0MB0/9EqOCd6wCdgzXHC5JomlZlvJFEQ==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR03MB1812;
x-microsoft-antispam-prvs: <AM4PR03MB1812B273CC93E668D3D79A5FBC570@AM4PR03MB1812.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:AM4PR03MB1812; BCL:0; PCL:0; RULEID:; SRVR:AM4PR03MB1812; 
x-forefront-prvs: 09760A0505
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(24454002)(199003)(377454003)(189002)(97736004)(5001770100001)(68736007)(74482002)(83506001)(102836003)(6116002)(3846002)(4001350100001)(106356001)(106116001)(86362001)(586003)(87936001)(101416001)(3660700001)(105586002)(7846002)(19580395003)(19580405001)(2900100001)(2950100001)(36756003)(11100500001)(66066001)(77096005)(15975445007)(3280700002)(50986999)(2906002)(551544002)(107886002)(81166006)(81156014)(76176999)(54356999)(5002640100001)(92566002)(10400500002)(2501003)(189998001)(5004730100002)(8936002)(122556002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR03MB1812; H:AM4PR03MB1811.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <C6E23BF4ED24FC4D9C04EB41AB65C5EC@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2016 16:23:39.8189 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR03MB1812
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/s4r6Qd6NnWRDObIr5T7bgoXZ0Rk>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] [MASSMAIL]Re: adopting Argon2 as a CFRG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 17 Jun 2016 16:23:46 -0000

RGVhciBEbWl0cnksDQoNClBsZWFzZSBwcm9jZWVkIGJ5IHVwbG9hZGluZyBhIG5ldyBkcmFmdCBh
cyBzb29uIGFzIGl0IGlzIHJlYWR5Lg0KDQpXZSBjYW4gY2VydGFpbmx5IGdpdmUgeW91IHNvbWUg
c3BlYWtpbmcgdGltZSB0byB1cGRhdGUgdXMgYXQgdGhlIENGUkcNCm1lZXRpbmcgaW4gQmVybGlu
LiBUaGlzIHdpbGwgYmUgdmVyeSBoZWxwZnVsIGluZGVlZC4NCg0KSSBzaG91bGQgZW1waGFzaXNl
LCBvZiBjb3Vyc2UsIHRoYXQgd2hhdCB5b3UgbWF5IGNvbnNpZGVyI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RGVhciBhbGwsDQo+DQo+DQo+YXMgZXhwbGFpbmVk
IGluIGEgcmVjZW50IGVtYWlsDQo+aHR0cDovL2FydGljbGUuZ21hbmUub3JnL2dtYW5lLmNvbXAu
c2VjdXJpdHkucGhjLzM2MDYgLCB3ZSBhcmUgZnVsbHkNCj5hd2FyZSBvZiB0aGUgYW5hbHlzaXMg
b2YgQXJnb24yaSBtYWRlIGJ5IENvcnJpZ2FuLUdpYmJzIGV0IGFsLiAsIHdlDQo+IGtub3cgaG93
IHRvIG1pdGlnYXRlIHRoZSBkZW1vbnN0cmF0ZWQgZWZmZWN0LCBhbmQgaGF2ZSBhbHJlYWR5IG1h
ZGUgc29tZQ0KPmJlbmNobWFya3Mgb24gdGhlIHBhdGNoLg0KPg0KPg0KPlNvb24gYWZ0ZXIgdGhl
IENyeXB0byBkZWFkbGluZSAoRmViLTkpIHdlIHdpbGwgZGV2ZWxvcCBhIG5ldyByZWxlYXNlDQo+
aW5jbHVkaW5nIGNvZGUsIHJhdGlvbmFsZSwgYW5kIHRlc3QgdmVjdG9ycy4NCj4NCj4NCj4tLSAN
Cj5CZXN0IHJlZ2FyZHMsDQo+dGhlIEFyZ29uMiB0ZWFtLg0KPg0KPg0KPg0KPg0KPg0KPg0KPg0K
Pg0KPg0KPg0KPg0KPg0KPi0tIA0KPkJlc3QgcmVnYXJkcywNCj5EbWl0cnkgS2hvdnJhdG92aWNo
DQo+DQo+DQo+DQo+DQo+DQo+DQo+DQo+DQo+DQo+LS0gDQo+QmVzdCByZWdhcmRzLA0KPkRtaXRy
eSBLaG92cmF0b3ZpY2gNCj4NCj4NCg0K


From nobody Wed Jun 22 07:53:09 2016
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 0337C12D94E; Wed, 22 Jun 2016 07:53:08 -0700 (PDT)
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>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.24.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20160622145308.11083.29834.idtracker@ietfa.amsl.com>
Date: Wed, 22 Jun 2016 07:53:08 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/B115PHJpWi9CDT2ho3DLSQXoc5c>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-xmss-hash-based-signatures-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 22 Jun 2016 14:53:08 -0000

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

        Title           : XMSS: Extended Hash-Based Signatures
        Authors         : Andreas Huelsing
                          Denis Butin
                          Stefan-Lukas Gazdag
                          Aziz Mohaisen
	Filename        : draft-irtf-cfrg-xmss-hash-based-signatures-04.txt
	Pages           : 67
	Date            : 2016-06-22

Abstract:
   This note describes the eXtended Merkle Signature Scheme (XMSS), a
   hash-based digital signature system.  It follows existing
   descriptions in scientific literature.  The note specifies the WOTS+
   one-time signature scheme, a single-tree (XMSS) and a multi-tree
   variant (XMSS^MT) of XMSS.  Both variants use WOTS+ as a main
   building block.  XMSS provides cryptographic digital signatures
   without relying on the conjectured hardness of mathematical problems.
   Instead, it is proven that it only relies on the properties of
   cryptographic hash functions.  XMSS provides strong security
   guarantees and is even secure when the collision resistance of the
   underlying hash function is broken.  It is suitable for compact
   implementations, relatively simple to implement, and naturally
   resists side-channel attacks.  Unlike most other signature systems,
   hash-based signatures withstand attacks using quantum computers.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-xmss-hash-based-signatures/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-irtf-cfrg-xmss-hash-based-signatures-04

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-xmss-hash-based-signatures-04


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 Thu Jun 23 06:56:05 2016
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 AA4A712D811; Thu, 23 Jun 2016 06:56:03 -0700 (PDT)
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>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.24.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20160623135603.31136.57027.idtracker@ietfa.amsl.com>
Date: Thu, 23 Jun 2016 06:56:03 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/yIfLfrjbeSRvmbteWpGt8qw0TLw>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-xmss-hash-based-signatures-05.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 23 Jun 2016 13:56:04 -0000

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

        Title           : XMSS: Extended Hash-Based Signatures
        Authors         : Andreas Huelsing
                          Denis Butin
                          Stefan-Lukas Gazdag
                          Aziz Mohaisen
	Filename        : draft-irtf-cfrg-xmss-hash-based-signatures-05.txt
	Pages           : 67
	Date            : 2016-06-23

Abstract:
   This note describes the eXtended Merkle Signature Scheme (XMSS), a
   hash-based digital signature system.  It follows existing
   descriptions in scientific literature.  The note specifies the WOTS+
   one-time signature scheme, a single-tree (XMSS) and a multi-tree
   variant (XMSS^MT) of XMSS.  Both variants use WOTS+ as a main
   building block.  XMSS provides cryptographic digital signatures
   without relying on the conjectured hardness of mathematical problems.
   Instead, it is proven that it only relies on the properties of
   cryptographic hash functions.  XMSS provides strong security
   guarantees and is even secure when the collision resistance of the
   underlying hash function is broken.  It is suitable for compact
   implementations, relatively simple to implement, and naturally
   resists side-channel attacks.  Unlike most other signature systems,
   hash-based signatures withstand attacks using quantum computers.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-xmss-hash-based-signatures/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-irtf-cfrg-xmss-hash-based-signatures-05

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-xmss-hash-based-signatures-05


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 Thu Jun 23 06:56:16 2016
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 04E8512D0A9; Thu, 23 Jun 2016 06:56:05 -0700 (PDT)
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>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.24.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20160623135605.31116.33567.idtracker@ietfa.amsl.com>
Date: Thu, 23 Jun 2016 06:56:05 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/x79I-vSeMK_Ylwp-vP6dyQUBlz0>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-xmss-hash-based-signatures-05.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 23 Jun 2016 13:56:05 -0000

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

        Title           : XMSS: Extended Hash-Based Signatures
        Authors         : Andreas Huelsing
                          Denis Butin
                          Stefan-Lukas Gazdag
                          Aziz Mohaisen
	Filename        : draft-irtf-cfrg-xmss-hash-based-signatures-05.txt
	Pages           : 67
	Date            : 2016-06-23

Abstract:
   This note describes the eXtended Merkle Signature Scheme (XMSS), a
   hash-based digital signature system.  It follows existing
   descriptions in scientific literature.  The note specifies the WOTS+
   one-time signature scheme, a single-tree (XMSS) and a multi-tree
   variant (XMSS^MT) of XMSS.  Both variants use WOTS+ as a main
   building block.  XMSS provides cryptographic digital signatures
   without relying on the conjectured hardness of mathematical problems.
   Instead, it is proven that it only relies on the properties of
   cryptographic hash functions.  XMSS provides strong security
   guarantees and is even secure when the collision resistance of the
   underlying hash function is broken.  It is suitable for compact
   implementations, relatively simple to implement, and naturally
   resists side-channel attacks.  Unlike most other signature systems,
   hash-based signatures withstand attacks using quantum computers.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-xmss-hash-based-signatures/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-irtf-cfrg-xmss-hash-based-signatures-05

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-xmss-hash-based-signatures-05


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 Fri Jun 24 04:35:30 2016
Return-Path: <bleichen@google.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 55CC612D878 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 04:35:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.126
X-Spam-Level: 
X-Spam-Status: No, score=-4.126 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 sLmSsqtxjveG for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 04:35:27 -0700 (PDT)
Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (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 2D5D112D08D for <cfrg@ietf.org>; Fri, 24 Jun 2016 04:35:27 -0700 (PDT)
Received: by mail-vk0-x235.google.com with SMTP id c2so115825492vkg.1 for <cfrg@ietf.org>; Fri, 24 Jun 2016 04:35:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=RZkvRrwiX31qRLZwttdBUnCLWAkGv3NxH6fL8R3WTxQ=; b=VI+jLvGvdlcOVXv/B9MZnyBu5hhbHkl15lB8goB6Ab7llf5MEZRFrrIhhI1Iorn1/N cf3Ym6cSKvjYbUcHhw1NpV06GcdxwDa6vXBLydv8Tdb6oKEzapYHy8Br9IMNWFnCAMcZ MW68lQfTZQiRo0Ta5wHrSzzD4gJ28q7upcEspPL60ls1tUUW+LaD1cyF+tY5r7f/MI9k Ju8Jk7Nn1ges9LKVz2eFP6sIk5ueB+C7RzIDIR+pflwF6Tifb0Qn7R986al3pWQCzd1I OcBscWvqt4+lDxAzE4Py94nmoxp9CjmbePptg5gnAeinPD8by8Ti5p/KxAGwPiChr9zt +O2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RZkvRrwiX31qRLZwttdBUnCLWAkGv3NxH6fL8R3WTxQ=; b=AOM1wrDUANm1yVEgtCBN16NjjjdnMi3vTh/p9wywFevDCWVpHId0+xFaY1PpGSCAOC fCnI7yNb1hK+41IH4ESR4E1i7Yj9LvkDXJ51X77MefhHWJRk8QM5tD2jxOvPpGNivf6u +qh86SiM0hLzV/cD1otzdudaxsccIO1t1Bf63Nk8YPVgsBU7zSjsnn8R57YsRfBjYoGq wdRulxxoH8SmVBInSKEf+qPfAhegdS4+Ewi4BcefbP7Jj1bMfmGo1N3V1D9mFY14VrPq N0LdW2Pjtc9OzXjpkdxg0yXFJD5bZsurL+vt9slnO8R+o1wF3IJGSyMX+9ErZFeslLj3 cruQ==
X-Gm-Message-State: ALyK8tJdz/XRN0TdQV4Hilc0RYbuNnFFYAXcEijTFc1HayMlXe54StPhDfTUIpcnhYgLKlJ3FOIVFcwoPpyoUKZE
X-Received: by 10.31.205.131 with SMTP id d125mr1903021vkg.98.1466768125386; Fri, 24 Jun 2016 04:35:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.147.196 with HTTP; Fri, 24 Jun 2016 04:35:24 -0700 (PDT)
From: Daniel Bleichenbacher <bleichen@google.com>
Date: Fri, 24 Jun 2016 13:35:24 +0200
Message-ID: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com>
To: cfrg@ietf.org
Content-Type: multipart/alternative; boundary=001a114e7102151602053604916d
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qgh-Yxmj7CC7cq2YZLpmfGA3x-o>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 11:35:29 -0000

--001a114e7102151602053604916d
Content-Type: text/plain; charset=UTF-8

I'm wondering what can or should be expected about the security of the
additional data.

In particular, I'm considering the following scenario:

Sender and receiver share a secret S.
The sender knows the public key of the receiver and the receiver of course
knows the private key.
They use a hybrid encryption as follows:

The sender chooses a new AES-GCM-SIV key, encrypts his message
and includes S as additional data. The AES-GCM-SIV key is wrapped with
the receivers public key and the wrapped key and ciphertext are sent to the
receiver.

Here an attacker can use that AES-GCM-SIV allows to select a key such that
the
element H used for POLYVAL is 0. In this case it would not be necessary for
the sender
to know S to construct a ciphertext that validates.
A similar attack using AES-GCM seems much harder since the value H for the
GHASH
is obtained by encrypting 0 and thus I'm not aware of a way to do the same
thing here.

The attack does of course not violate any of the guarantees claimed.
However, in the industry lots of ad hoc protocols are designed without
proper security reductions and hence it seems a bit scary to me to allow
this kind of "weak" keys. And since abuse resistance is
one of the goals it might be a good idea to avoid such type of abuses.

--001a114e7102151602053604916d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m wondering what can or should be expected about the=
 security of the additional data.<div><br></div><div>In particular, I&#39;m=
 considering the following scenario:</div><div><br></div><div>Sender and re=
ceiver share a secret S.</div><div>The sender knows the public key of the r=
eceiver and the receiver of course knows the private key.</div><div>They us=
e a hybrid encryption as follows:</div><div><br></div><div>The sender choos=
es a new AES-GCM-SIV key, encrypts his message</div><div>and includes S as =
additional data. The AES-GCM-SIV key is wrapped with</div><div>the receiver=
s public key and the wrapped key and ciphertext are sent to the receiver.</=
div><div><br></div><div>Here an attacker can use that AES-GCM-SIV allows to=
 select a key such that the</div><div>element H used for POLYVAL is 0. In t=
his case it would not be necessary for the sender</div><div>to know S to co=
nstruct a ciphertext that validates.</div><div>A similar attack using AES-G=
CM seems much harder since the value H for the GHASH</div><div>is obtained =
by encrypting 0 and thus I&#39;m not aware of a way to do the same thing he=
re.</div><div><br></div><div>The attack does of course not violate any of t=
he guarantees claimed.</div><div>However, in the industry lots of ad hoc pr=
otocols are designed without proper security reductions and hence it seems =
a bit scary to me to allow this kind of &quot;weak&quot; keys. And since ab=
use resistance is</div><div>one of the goals it might be a good idea to avo=
id such type of abuses.</div><div><br></div></div>

--001a114e7102151602053604916d--


From nobody Fri Jun 24 06:08:22 2016
Return-Path: <prvs=59834099b5=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 E418412DA8F for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:08:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.624
X-Spam-Level: 
X-Spam-Status: No, score=-5.624 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, 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 6i2ucyEkpRbb for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:08:18 -0700 (PDT)
Received: from llmx2.ll.mit.edu (LLMX2.LL.MIT.EDU [129.55.12.48]) by ietfa.amsl.com (Postfix) with ESMTP id 9AD7C12DA77 for <cfrg@ietf.org>; Fri, 24 Jun 2016 06:08:13 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by llmx2.ll.mit.edu (unknown) with ESMTP id u5OD5fSa003772; Fri, 24 Jun 2016 09:05:41 -0400
From: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
To: Daniel Bleichenbacher <bleichen@google.com>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AdHOGXPgqD25y0zmskKltSj3U+rSKQ==
Date: Fri, 24 Jun 2016 13:08:09 +0000
Message-ID: <20160624130816.18296913.43011.75951@ll.mit.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============0304649693=="
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-24_06:, , signatures=0
X-Proofpoint-Spam-Details: rule=inbound_notspam policy=inbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606240142
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/LdGeeYUzDNybCgZncgMV43_zrD0>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 13:08:21 -0000

--===============0304649693==
Content-Type: multipart/alternative; boundary="===============1300081799=="
MIME-Version: 1.0

--===============1300081799==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding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HRvIG1lIHRvIGFsbG93IHRoaXMga2luZCBvZiAid2VhayIga2V5
cy4gQW5kIHNpbmNlIGFidXNlIHJlc2lzdGFuY2UgaXMKb25lIG9mIHRoZSBnb2FscyBpdCBtaWdo
dCBiZSBhIGdvb2QgaWRlYSB0byBhdm9pZCBzdWNoIHR5cGUgb2YgYWJ1c2VzLgoKCg==

--===============1300081799==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head></head><body lang=3D"en-US" style=3D"background-color: rgb(255,=
 255, 255); line-height: initial;">                                        =
                                              <div style=3D"width: 100%; fo=
nt-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif=
; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, =
255, 255);">What is the probability of a sender (accidentally?)=E2=80=8E ge=
nerating a key that results in H being 0?&nbsp;</div><div style=3D"width: 1=
00%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, san=
s-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rg=
b(255, 255, 255);"><br></div><div style=3D"width: 100%; font-size: initial;=
 font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, =
73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Shoul=
d a protocol check the H value and refuse to proceed (request re-generation=
) if H is 0?</div>                                                         =
                                                                           =
 <div style=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slat=
e Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initia=
l; background-color: rgb(255, 255, 255);"><br></div>                       =
                                                                           =
                                                                           =
                      <div style=3D"font-size: initial; font-family: Calibr=
i, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align=
: initial; background-color: rgb(255, 255, 255);">Sent&nbsp;from&nbsp;my&nb=
sp;BlackBerry&nbsp;10&nbsp;smartphone&nbsp;on&nbsp;the&nbsp;Verizon&nbsp;Wi=
reless&nbsp;4G&nbsp;LTE&nbsp;network.</div>                                =
                                                                           =
                                                                       <tab=
le width=3D"100%" style=3D"background-color:white;border-spacing:0px;"> <tb=
ody><tr><td colspan=3D"2" style=3D"font-size: initial; text-align: initial;=
 background-color: rgb(255, 255, 255);">                           <div sty=
le=3D"border-style: solid none none; border-top-color: rgb(181, 196, 223); =
border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha=
 Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Daniel Bleichenb=
acher</div><div><b>Sent: </b>Friday, June 24, 2016 07:35</div><div><b>To: <=
/b>cfrg@ietf.org</div><div><b>Subject: </b>[Cfrg] AES-GCM-SIV security of t=
he additional data</div></div></td></tr></tbody></table><div style=3D"borde=
r-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-=
width: 1pt; font-size: initial; text-align: initial; background-color: rgb(=
255, 255, 255);"></div>=E2=80=8E<br><div id=3D"_originalContent" style=3D"">

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">


<div dir=3D"ltr">I'm wondering what can or should be expected about the sec=
urity of the additional data.
<div>
<br></div>
<div>In particular, I'm considering the following scenario:</div>
<div>
<br></div>
<div>Sender and receiver share a secret S.</div>
<div>The sender knows the public key of the receiver and the receiver of co=
urse knows the private key.</div>
<div>They use a hybrid encryption as follows:</div>
<div><br>
</div>
<div>The sender chooses a new AES-GCM-SIV key, encrypts his message</div>
<div>and includes S as additional data. The AES-GCM-SIV key is wrapped with=
</div>
<div>the receivers public key and the wrapped key and ciphertext are sent t=
o the receiver.</div>
<div>
<br></div>
<div>Here an attacker can use that AES-GCM-SIV allows to select a key such =
that the</div>
<div>element H used for POLYVAL is 0. In this case it would not be necessar=
y for the sender</div>
<div>to know S to construct a ciphertext that validates.</div>
<div>A similar attack using AES-GCM seems much harder since the value H for=
 the GHASH</div>
<div>is obtained by encrypting 0 and thus I'm not aware of a way to do the =
same thing here.</div>
<div><br>
</div>
<div>The attack does of course not violate any of the guarantees claimed.</=
div>
<div>However, in the industry lots of ad hoc protocols are designed without=
 proper security reductions and hence it seems a bit scary to me to allow t=
his kind of "weak" keys. And since abuse resistance is</div>
<div>one of the goals it might be a good idea to avoid such type of abuses.=
</div>
<div><br>
</div>
</div>


<br><!--end of _originalContent --></div></body></html>
--===============1300081799==--

--===============0304649693==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBglghkgBZQMEAgEwgAYJKoZIhvcNAQcBAACggg7NMIIE
6jCCA9KgAwIBAgIKMz1Y1wAAAABunjANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0G
A1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRM
TCBDQS0zMB4XDTE2MDExNDE3MzU1MloXDTE5MDExMzE3MzU1MlowYTELMAkGA1UEBhMCVVMxHzAd
BgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMX
Qmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCz
HVEw2ojNZjWEnTASyJaQIvzziBmrH07FzMEY2xFGNDJpss38CcFRjfRx1EyEp7BrFdAXC2pHjFwa
gFr+McYdXZiKEci0Mzna2uibsMDVbhlT6TwtmAL6QzdtjN28dn+7vQUkRUWUm9VVaBVVxUgX3f2l
oEZsJNvWb7C8vj2DZF/uEt/EU/9KcUuodMgCR4zYLFVpNh1U6tCYACNDNtj/nmNjubtez1Y56zjZ
AVOXZWsjNCPrC2jVwDdg1AIcs5ayDMOC2p1F95kSxWsJwinKfSe8p2/YR/cwUo8ljFoBPj60AGW3
WjaJyKXK+ZgJwjwl9gG/pg2T4mQhIAIZWZQ9AgMBAAGjggGyMIIBrjAdBgNVHQ4EFg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fuFf14TGUYcUCdw41U44fUP6RypuwERYRa90ACeqHAo8syxeYrL
GtVbIcexJQSJNHF4XqepizC6hjV92swJMYIB8TCCAe0CAQEwXzBRMQswCQYDVQQGEwJVUzEfMB0G
A1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRM
TCBDQS0zAgozPVjXAAAAAG6eMAsGCWCGSAFlAwQCAaBpMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0B
BwEwHAYJKoZIhvcNAQkFMQ8XDTE2MDYyNDEzMDgxNVowLwYJKoZIhvcNAQkEMSIEIN1VM+cqZevz
H4VoZCPA9kAAbEYM8PBkV3njeNc/dGUkMAsGCSqGSIb3DQEBCwSCAQBTOr7n7vr02UPxU9PjVItJ
iuY7noc6jQY/+MzMJ/mU9h5Adke/XRsU8x5xayOKSJpfFd2MOq2pksTiMy+Ec/CH/6jnGsm6h++H
AoJcime9Og/s+I0yUxIBIpPUIlf9o1vSq0NyvYslK7U356dJxnmMmG5JPI7ZLA+Rtm12xbRoi0RQ
zglwV95t5/k7M656jNexwH+RvfwySAur2D5z0zlKwBF0rTvAPwlJWSBdovU5Pj6IAbxVBu9U8Mcz
VYssjkqYRMoyzSlMIku4ooKCWAruxOazUHyuyXj31o09xj7RXpY9jhwKadw+DC4Owv7VVIcHLuME
kliUBA6osyWIUTGcAAAAAAAA

--===============0304649693==--


From nobody Fri Jun 24 06:17:31 2016
Return-Path: <bleichen@google.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 E6C2612DA9A for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:17:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.126
X-Spam-Level: 
X-Spam-Status: No, score=-4.126 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 wf1JNHgnZ--U for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:17:27 -0700 (PDT)
Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (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 DFB7112DA9D for <cfrg@ietf.org>; Fri, 24 Jun 2016 06:17:26 -0700 (PDT)
Received: by mail-vk0-x22e.google.com with SMTP id c2so119383706vkg.1 for <cfrg@ietf.org>; Fri, 24 Jun 2016 06:17:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Kz9cPOv5fg5rsOh+NAJO0jt6p8zawhf4HP0Mm8hYOhY=; b=QVTaXk4FKuuf+IbSsjrKuYuUCyxB0t4tdRJYcRm1d+4b41QNBHCikZGSD/zxkfzE9P ip1fyB3BwiofzGIpKpAvSKo87iPGHMryiZsIENZ9MNK7u2b7cysga5F/vIeZMtm2p0aM 5XcM8SpnCxaym/MQ7WCHKqbLKJWwqUAx/ATWWMMRNuU6vUB400gUPX8rwUkwn/2c3Vvk SlqEmdplTzMJjmPjxVqB7L1NWevysZj5YkfbEvIf5r4+6x997OKzWkXO6rFhqY3qHWBw ou0aGS4J6JI7XZlLuMhHQPrxy0IqAsLTOesFb0fW+jpp84CghmgH8dlW0nDIlTlST4w3 OPAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Kz9cPOv5fg5rsOh+NAJO0jt6p8zawhf4HP0Mm8hYOhY=; b=daumxsaVGL+w16CcIpQuVo6iTS6SwO4ud2pEg1C3dgcpyBpZ5hryMiHmz8wZvQ0Wdf LQrTgo1w8hrmcZ0I8LwPitgsUWVEfKquORlbhUy9UW6Y0SRTqSoqu0dU2Frz4IbFyP0j IUcOJyh/8j2kxURJ5csLVoPqO5Bm+PGKo9Y81GobD+9AZV8Gy6NGBXeuUzQLAQAbeAlN s2PwfgEsRCLPfcBalne93lddqPYa1uc5K2hIJWNQ1opiFtIMdXGdgBWHjbRMn6yihtFh rahf5iSt/EO1Cngz+omNslxaD33uPYFctxbuT1ywiLW8SAI2BDMRsOlk9Q9cD1AMTFUZ drug==
X-Gm-Message-State: ALyK8tJ0GdXth/krRFkxCKoq/Ixvy23BNyxqqUASu6avSfw6nSAwiOaYALie9+gedp1msCKEtpIpOHFvTAoreAQ2
X-Received: by 10.159.55.235 with SMTP id q98mr2316976uaq.83.1466774245676; Fri, 24 Jun 2016 06:17:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.147.196 with HTTP; Fri, 24 Jun 2016 06:17:25 -0700 (PDT)
In-Reply-To: <20160624130816.18296913.43011.75951@ll.mit.edu>
References: <20160624130816.18296913.43011.75951@ll.mit.edu>
From: Daniel Bleichenbacher <bleichen@google.com>
Date: Fri, 24 Jun 2016 15:17:25 +0200
Message-ID: <CAPqF7e0Ov=wGimBu8ggKJeLXueHmpbsqgxYg-w8fveUX1Sm0JQ@mail.gmail.com>
To: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
Content-Type: multipart/alternative; boundary=94eb2c04004ce180d0053605fd27
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/yU4M_3EyD6Ouvc98ftIagYB4-_0>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 13:17:30 -0000

--94eb2c04004ce180d0053605fd27
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, Jun 24, 2016 at 3:08 PM, Blumenthal, Uri - 0553 - MITLL <
uri@ll.mit.edu> wrote:

> What is the probability of a sender (accidentally?)=E2=80=8E generating a=
 key that
> results in H being 0?
>
>
Random key generation is not my concern. My concern is a sender choosing a
key on purpose in such a way that
he does not have to authenticate additional data. The typical assumption is
that if an integrity check passes
then the sender is aware of the plaintext. Should this also be the case for
the additional data?


> Should a protocol check the H value and refuse to proceed (request
> re-generation) if H is 0?
>
>
> Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE netw=
ork.
> *From: *Daniel Bleichenbacher
> *Sent: *Friday, June 24, 2016 07:35
> *To: *cfrg@ietf.org
> *Subject: *[Cfrg] AES-GCM-SIV security of the additional data
> =E2=80=8E
>
> I'm wondering what can or should be expected about the security of the
> additional data.
>
> In particular, I'm considering the following scenario:
>
> Sender and receiver share a secret S.
> The sender knows the public key of the receiver and the receiver of cours=
e
> knows the private key.
> They use a hybrid encryption as follows:
>
> The sender chooses a new AES-GCM-SIV key, encrypts his message
> and includes S as additional data. The AES-GCM-SIV key is wrapped with
> the receivers public key and the wrapped key and ciphertext are sent to
> the receiver.
>
> Here an attacker can use that AES-GCM-SIV allows to select a key such tha=
t
> the
> element H used for POLYVAL is 0. In this case it would not be necessary
> for the sender
> to know S to construct a ciphertext that validates.
> A similar attack using AES-GCM seems much harder since the value H for th=
e
> GHASH
> is obtained by encrypting 0 and thus I'm not aware of a way to do the sam=
e
> thing here.
>
> The attack does of course not violate any of the guarantees claimed.
> However, in the industry lots of ad hoc protocols are designed without
> proper security reductions and hence it seems a bit scary to me to allow
> this kind of "weak" keys. And since abuse resistance is
> one of the goals it might be a good idea to avoid such type of abuses.
>
>
>

--94eb2c04004ce180d0053605fd27
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Fri, Jun 24, 2016 at 3:08 PM, Blumenthal, Uri - 0553 - MITLL <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:uri@ll.mit.edu" target=3D"_blank">uri@ll.m=
it.edu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang=3D=
"en-US" style=3D"background-color:rgb(255,255,255);line-height:initial">   =
                                                                           =
        <div style=3D"width:100%;font-size:initial;font-family:Calibri,&#39=
;Slate Pro&#39;,sans-serif,sans-serif;color:rgb(31,73,125);text-align:initi=
al;background-color:rgb(255,255,255)">What is the probability of a sender (=
accidentally?)=E2=80=8E generating a key that results in H being 0?=C2=A0</=
div><div style=3D"width:100%;font-size:initial;font-family:Calibri,&#39;Sla=
te Pro&#39;,sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;b=
ackground-color:rgb(255,255,255)"><br></div></div></blockquote><div><br></d=
iv><div>Random key generation is not my concern. My concern is a sender cho=
osing a key on purpose in such a way that</div><div>he does not have to aut=
henticate additional data. The typical assumption is that if an integrity c=
heck passes</div><div>then the sender is aware of the plaintext. Should thi=
s also be the case for the additional data?</div><div>=C2=A0</div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><div lang=3D"en-US" style=3D"background-color:rgb(255=
,255,255);line-height:initial"><div style=3D"width:100%;font-size:initial;f=
ont-family:Calibri,&#39;Slate Pro&#39;,sans-serif,sans-serif;color:rgb(31,7=
3,125);text-align:initial;background-color:rgb(255,255,255)"></div><div sty=
le=3D"width:100%;font-size:initial;font-family:Calibri,&#39;Slate Pro&#39;,=
sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-co=
lor:rgb(255,255,255)">Should a protocol check the H value and refuse to pro=
ceed (request re-generation) if H is 0?</div>                              =
                                                                           =
                            <div style=3D"width:100%;font-size:initial;font=
-family:Calibri,&#39;Slate Pro&#39;,sans-serif,sans-serif;color:rgb(31,73,1=
25);text-align:initial;background-color:rgb(255,255,255)"><br></div>       =
                                                                           =
                                                                           =
                                      <div style=3D"font-size:initial;font-=
family:Calibri,&#39;Slate Pro&#39;,sans-serif,sans-serif;color:rgb(31,73,12=
5);text-align:initial;background-color:rgb(255,255,255)">Sent=C2=A0from=C2=
=A0my=C2=A0BlackBerry=C2=A010=C2=A0smartphone=C2=A0on=C2=A0the=C2=A0Verizon=
=C2=A0Wireless=C2=A04G=C2=A0LTE=C2=A0network.</div>                        =
                                                                           =
                                                                           =
    <table width=3D"100%" style=3D"background-color:white;border-spacing:0p=
x"> <tbody><tr><td colspan=3D"2" style=3D"font-size:initial;text-align:init=
ial;background-color:rgb(255,255,255)">                           <div styl=
e=3D"border-style:solid none none;border-top-color:rgb(181,196,223);border-=
top-width:1pt;padding:3pt 0in 0in;font-family:Tahoma,&#39;BB Alpha Sans&#39=
;,&#39;Slate Pro&#39;;font-size:10pt">  <div><b>From: </b>Daniel Bleichenba=
cher</div><div><b>Sent: </b>Friday, June 24, 2016 07:35</div><div><b>To: </=
b><a href=3D"mailto:cfrg@ietf.org" target=3D"_blank">cfrg@ietf.org</a></div=
><div><b>Subject: </b>[Cfrg] AES-GCM-SIV security of the additional data</d=
iv></div></td></tr></tbody></table><div style=3D"border-style:solid none no=
ne;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial=
;text-align:initial;background-color:rgb(255,255,255)"></div>=E2=80=8E<div>=
<div class=3D"h5"><br><div>




<div dir=3D"ltr">I&#39;m wondering what can or should be expected about the=
 security of the additional data.
<div>
<br></div>
<div>In particular, I&#39;m considering the following scenario:</div>
<div>
<br></div>
<div>Sender and receiver share a secret S.</div>
<div>The sender knows the public key of the receiver and the receiver of co=
urse knows the private key.</div>
<div>They use a hybrid encryption as follows:</div>
<div><br>
</div>
<div>The sender chooses a new AES-GCM-SIV key, encrypts his message</div>
<div>and includes S as additional data. The AES-GCM-SIV key is wrapped with=
</div>
<div>the receivers public key and the wrapped key and ciphertext are sent t=
o the receiver.</div>
<div>
<br></div>
<div>Here an attacker can use that AES-GCM-SIV allows to select a key such =
that the</div>
<div>element H used for POLYVAL is 0. In this case it would not be necessar=
y for the sender</div>
<div>to know S to construct a ciphertext that validates.</div>
<div>A similar attack using AES-GCM seems much harder since the value H for=
 the GHASH</div>
<div>is obtained by encrypting 0 and thus I&#39;m not aware of a way to do =
the same thing here.</div>
<div><br>
</div>
<div>The attack does of course not violate any of the guarantees claimed.</=
div>
<div>However, in the industry lots of ad hoc protocols are designed without=
 proper security reductions and hence it seems a bit scary to me to allow t=
his kind of &quot;weak&quot; keys. And since abuse resistance is</div>
<div>one of the goals it might be a good idea to avoid such type of abuses.=
</div>
<div><br>
</div>
</div>


<br></div></div></div></div></blockquote></div><br></div></div>

--94eb2c04004ce180d0053605fd27--


From nobody Fri Jun 24 06:24:49 2016
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 C956412D110 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:24:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_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 m52TUGCe8tEp for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:24:45 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0069.outbound.protection.outlook.com [104.47.0.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AF85312D0E9 for <cfrg@ietf.org>; Fri, 24 Jun 2016 06:24:44 -0700 (PDT)
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; bh=CHhQye9XVq3CPUa5Pp0KE0Chh5Yi5IyYXiEhnADqvD8=; b=HilOS7Tga+/jsCuyJBQce5YK/x3PCkPldthC7f6Q/OeKnijSBqLQ/JynJwyib1Fi9dxcd3Y58jzzoJ2t0mHTIAu7uyXJQO8Lxo9k/i+tNoekVaqQ5ezZEQnScK0fM0FanTHHzodDyAkRrIqZCBSzWlp7jEhaaKI1PC0AGckyE/o=
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) by VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) with Microsoft SMTP Server (TLS) id 15.1.523.12; Fri, 24 Jun 2016 13:24:40 +0000
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) by VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) with mapi id 15.01.0523.019; Fri, 24 Jun 2016 13:24:40 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Daniel Bleichenbacher <bleichen@google.com>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AQHRzgyMNFkKTSqpJkGxUgqboNSngJ/4rLoA
Date: Fri, 24 Jun 2016 13:24:40 +0000
Message-ID: <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com>
In-Reply-To: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.5.160527
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [78.146.50.187]
x-ms-office365-filtering-correlation-id: daa41899-0994-447d-4814-08d39c32e5b9
x-microsoft-exchange-diagnostics: 1; VI1PR03MB1822; 6:AfsU9l1EZ0ZRxRtOZk0sBKD0YPN50B8bU1Yzp47WQx3e/ABsels7lQ5iKCC0YkOXDJbMEXn10QEkl6jqlySycTwW9ODJnEVZ4L+btQN1UTwCdF4H9I41XPvchur8bhKVOfHQafC4aMcT2Joi0XbJ2Qzan8vlHgP/JgsbE1SR7ltjVKNJZOIGNdLM/8nPYKCQdJ1FfNPIC+DFNsl2QV4QK/pwYwBtVClWAfgre/tsptHgvb54gCSyXT2ws6EvZ8LlwhzTVQz62E4gwtKi/nzFLhqcdAWoN0W/CRAaF3Vq33V7v6/U5smSeOr2bOQEB9qq; 5:fHq9C5IpN75Gs5fRnxGS2hZUsXnqB479F0ikDCcZ4gGN4tQQ5sED7hMBmSdLgrByqan9zIGlYowPWSqrNbZ7qCUSwV1kBVikntUXzh3qxK4EKulXCc9yaZT4FqOrhiUgI4z1qqe+mwTrPC2b3vzHwg==; 24:VOHP9EDZLMAhH8Z+9ssTXTQNGLIFQu66VQ+JjNmbBYf5nPi3J6ncU6X644ZPk8fJysWGYoNittdeEvJKA75ZRLfI3jcTvSbu8VNwtkLXQHU=; 7:ul5UiRrOYUtzEHXGNRAYNLS4HCpvPaJ4EPusuvntNLJh687WwgOXMRTOZQE35Tnk/SvGDDEVNtkUJ9myCzXTpkzzfgkEEojl95z4Cu+ZNE0N/LlOZrRN8QLeyZfHt0THg9Tl01NotSW/qRy6wjiL1QCfEenig3QPoUi+WXHIGtLShL5vM2gCh4tWIQEBQD92aCBM0CsyPbsNELsiBE8tvyb3RZL++7y8HzTSEyTy5JII1y9BZF3sH39G3Hj/311SKtRFZSIDQS6o3QdYAidNYw==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR03MB1822;
x-microsoft-antispam-prvs: <VI1PR03MB182217FE5AE90841C13A1798BC2E0@VI1PR03MB1822.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(211936372134217);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:VI1PR03MB1822; BCL:0; PCL:0; RULEID:; SRVR:VI1PR03MB1822; 
x-forefront-prvs: 0983EAD6B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(24454002)(199003)(97736004)(83506001)(86362001)(5001770100001)(189998001)(66066001)(76176999)(4001350100001)(8676002)(11100500001)(3280700002)(106356001)(10400500002)(107886002)(305945005)(7736002)(19580405001)(19580395003)(87936001)(105586002)(92566002)(2906002)(81156014)(106116001)(54356999)(50986999)(5002640100001)(81166006)(68736007)(77096005)(101416001)(15975445007)(2900100001)(3660700001)(122556002)(2950100001)(36756003)(102836003)(586003)(2501003)(68196006)(230783001)(561944003)(3846002)(15650500001)(74482002)(6116002)(7846002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR03MB1822; H:VI1PR03MB1822.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  MX:1; A:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <DF773594793AA64B9E38D033BABC27C0@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2016 13:24:40.4944 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB1822
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/UqGh7O3iG5f24X2A6pwFVNG-WqA>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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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eSB0byBtZSB0byBhbGxvdw0KPnRoaXMga2luZCBvZiAid2VhayIga2V5cy4gQW5kIHNpbmNlIGFi
dXNlIHJlc2lzdGFuY2UgaXMNCj5vbmUgb2YgdGhlIGdvYWxzIGl0IG1pZ2h0IGJlIGEgZ29vZCBp
ZGVhIHRvIGF2b2lkIHN1Y2ggdHlwZSBvZiBhYnVzZXMuDQo+DQo+DQo+DQoNCg==


From nobody Fri Jun 24 06:41:34 2016
Return-Path: <asanso@adobe.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 5BC1A12DAE9 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:41:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.003
X-Spam-Level: 
X-Spam-Status: No, score=-2.003 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=adobe.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 gta6sVTB4yc1 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:41:31 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0054.outbound.protection.outlook.com [65.55.169.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D52A212DAEF for <cfrg@ietf.org>; Fri, 24 Jun 2016 06:40:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adobe.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jmIIkDaTjBUiG3ptpjbFfx9F3mAhFaskUktakO+mpNw=; b=pxHP3ZrpGRt4kY5jlOT1/wI0FrthRoaUhIj6x6vO5FXWrc39Zz7jBImsbfablVW+MMP5PMmWLk98MBvr+9tzC0CWEeN3TeXvzIMsUZBiIzIbUe0XzEGl2M2GZDbvEJzOWkI6H0dGK3kkA0hO3it9YjZ31D2exu3AnpTiOTQfIDY=
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com (10.161.203.148) by BY1PR0201MB1031.namprd02.prod.outlook.com (10.161.203.149) with Microsoft SMTP Server (TLS) id 15.1.523.12; Fri, 24 Jun 2016 13:40:31 +0000
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) by BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) with mapi id 15.01.0523.019; Fri, 24 Jun 2016 13:40:31 +0000
From: Antonio Sanso <asanso@adobe.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AQHRzgyHGT1YRe0Ankm4eF10cRh2kZ/4m2wAgAAEbwA=
Date: Fri, 24 Jun 2016 13:40:31 +0000
Message-ID: <A9961C08-798F-4871-96D6-5B1A989A9FDE@adobe.com>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com> <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is ) smtp.mailfrom=asanso@adobe.com; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [192.147.117.11]
x-ms-office365-filtering-correlation-id: 250a9dac-c2ed-4f61-c2c6-08d39c351ca3
x-microsoft-exchange-diagnostics: 1; BY1PR0201MB1031; 6:is3KHHWu2Y/2LAsg5p/qj8Rr9IFVVpL54EEmO8UgEaoeEp8bz0lMTf05ikk4YTmvCr3crrIPrkBKxp0NRhE3nTpZvHTH1TfqwCdx1oLjyt+3bz1ZOTuNFfskMVjmddtjemudAwKXsVP/gly3vxgVjgPHXRXyV1YZnGfVlMr37di4rEOaKFLcLlyrtmXi0JSctJ7ORXRJhs7hhj4PlvV5DQ0xyRrcpjpVTiySPAWYaeRCPG3LscggaPQH797WyfCbkH1ZoyNrY69NwuI5kYXQUiE6MgB225hyUS0LcTRtqD6wZ1n3D1nC3uGXbhSYDCes2K+9839+BQSUoFGOc78lx3Uy/j60mhw4Xu+aPm5afbw=; 5:r9EcsYHrVk22mTQVcAP0ohUvKGqLmUAONGcdhaV60R9JCjMMF/F+yaV7pUvfBNn6z8uAiJApoltJbHnstMeKxJxlLwYudbAxMEzTNXNsVY6NrV/7pPVN2HTECVZ4nA5inXEzMazd4eDEYzSctJlkTw==; 24:Fk7S+KeZVV6L1mCwe00OBOLpDS1D8zLCb5Zk6QhvJ3feuNW9xYkP+GyBrs7q/FTGtxoYqnwIEtON2DHaiagOnV1e2d+l+liyQibaLPhzNF4=; 7:fMU9xRjMKLEdpfSzRRHpkV/hSQFm1hzSNkRC2REdY49aKzfMT2pqnnHPLTWrBOLnowmz0ZeR/VgzsrMplYwHY81x7LburA5/YXD/9GMEZ+KPEhcGMDgWWUTk52f2Gn6NdTHiOp0MmNtDReAm4PtcDeS9VMw0GHKpv8NGWD/VvbMyH+3awBjx58NqDfxab5MYULdu+jZN2CboDk8XNS+/5RPUvjGtkJE2p4GW6+AtiyM8R5tftTzzCEVHcND8Zeb33WCmGXyBo4XlsTBipcS5iw==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0201MB1031;
x-microsoft-antispam-prvs: <BY1PR0201MB10317FDCA6ADBDE0475B9DA2D92E0@BY1PR0201MB1031.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(211936372134217);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(61426038)(61427038); SRVR:BY1PR0201MB1031; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0201MB1031; 
x-forefront-prvs: 0983EAD6B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(7916002)(377454003)(199003)(189002)(24454002)(7736002)(6116002)(102836003)(8676002)(54356999)(83716003)(11100500001)(3846002)(92566002)(2906002)(36756003)(305945005)(82746002)(50986999)(86362001)(105586002)(76176999)(101416001)(586003)(230783001)(10400500002)(189998001)(81166006)(122556002)(81156014)(106116001)(33656002)(106356001)(15650500001)(3660700001)(561944003)(99286002)(97736004)(68736007)(8936002)(3280700002)(66066001)(2900100001)(10090500001)(7846002)(2950100001)(87936001)(5002640100001)(77096005)(110136002)(19580395003)(8666005)(19580405001)(15975445007)(4326007)(7059030)(104396002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0201MB1031; H:BY1PR0201MB1030.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-ID: <2D9AF1E947CE5841A8AC30BAC56BEE96@namprd02.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2016 13:40:31.5154 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB1031
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/JaYFOPTMnmJEvX-hHEQxUj757J8>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 13:41:33 -0000

hi Kenny

On Jun 24, 2016, at 3:24 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk> wr=
ote:

> Hi Daniel,
>=20
> Thanks for your message.
>=20
> The usual expectation in AEAD is that the AD is integrity protected, but
> there's no assurance as to its confidentiality. It's not usually
> considered part of the ciphertext, but might be included along with it in
> a message being sent to a receiver, or might be reconstructed from other
> data/context by the receiver.
>=20
> In your scenario it looks like you are trying to use the shared secret S
> to provide authentication of the sender to the receiver, along with
> confidentiality for the message being delivered

to me this seems a pretty common scenario.
If I am not completely wrong in my understanding is for example what JWE do=
es [0] and [1] for example

regards

antonio

[0] https://tools.ietf.org/html/rfc7516#page-32
[1] https://tools.ietf.org/html/rfc7516#page-36

> . In this scenario, it's
> not clear to me why the sender and receiver would not just use S as an
> AES-GCM-SIV key to transport a session key K, and then use K in another
> instance of AES-GCM-SIV to transport the desired messages. Of course, thi=
s
> construction would not prevent replay attacks; for that you'd need
> additional mechanisms, like incorporating a counter into the AD of the
> key-transporting AEAD.
>=20
> But perhaps one should not underestimate the ingenuity of implementers in
> wanting to use public key encryption. Is this where you are coming from?
>=20
> On a related point, my view is that it is a disbenefit that the
> AES-GCM-SIV proposal has two separate keys (one for encryption, the other
> for authentication) as inputs. That's not the AEAD interface that we have
> raised our implementers on. I raised this point at the CFRG meeting in
> Vienna back in May. Simply concatenating the two keys in the current
> proposal into one would address this issue, but not the one you raise (if
> I understand it correctly).
>=20
> (The minutes of the meeting can be found here:
> https://www.ietf.org/proceedings/interim-2016-cfrg-01/minutes/minutes-int=
er
> im-2016-cfrg-1)=20
>=20
> Regards
>=20
> Kenny =20
>=20
>=20
> On 24/06/2016 12:35, "Cfrg on behalf of Daniel Bleichenbacher"
> <cfrg-bounces@irtf.org on behalf of bleichen@google.com> wrote:
>=20
>> I'm wondering what can or should be expected about the security of the
>> additional data.
>>=20
>>=20
>> In particular, I'm considering the following scenario:
>>=20
>>=20
>> Sender and receiver share a secret S.
>> The sender knows the public key of the receiver and the receiver of
>> course knows the private key.
>> They use a hybrid encryption as follows:
>>=20
>>=20
>> The sender chooses a new AES-GCM-SIV key, encrypts his message
>> and includes S as additional data. The AES-GCM-SIV key is wrapped with
>> the receivers public key and the wrapped key and ciphertext are sent to
>> the receiver.
>>=20
>>=20
>> Here an attacker can use that AES-GCM-SIV allows to select a key such
>> that the
>> element H used for POLYVAL is 0. In this case it would not be necessary
>> for the sender
>> to know S to construct a ciphertext that validates.
>> A similar attack using AES-GCM seems much harder since the value H for
>> the GHASH
>> is obtained by encrypting 0 and thus I'm not aware of a way to do the
>> same thing here.
>>=20
>>=20
>> The attack does of course not violate any of the guarantees claimed.
>> However, in the industry lots of ad hoc protocols are designed without
>> proper security reductions and hence it seems a bit scary to me to allow
>> this kind of "weak" keys. And since abuse resistance is
>> one of the goals it might be a good idea to avoid such type of abuses.
>>=20
>>=20
>>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Fri Jun 24 06:59:00 2016
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 7048412B009 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:58:58 -0700 (PDT)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_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 dIn3VmJ4wdWg for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 06:58:55 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0625.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::625]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E7AF12DA84 for <cfrg@ietf.org>; Fri, 24 Jun 2016 06:58:54 -0700 (PDT)
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; bh=Q3gYg2CkVIYnC0uXGVgRs0zxWnapZthTDK6IiDiBAD0=; b=XepDH/jsQCSqYTtKDb8sPU5OxFHyv3mmWtstrgj84czUNujJW0yuWzsP1iQftpJUQx4qdVz+vh60S735ZhjSYeQbiNHllxXNo00XNWWCenQksi1q5g/9duk46VbLYZYpgxforjCf484ximTiWKhigrIo4nJyhh1E0ze1tQCgg4Y=
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) by VI1PR03MB1821.eurprd03.prod.outlook.com (10.166.42.147) with Microsoft SMTP Server (TLS) id 15.1.523.12; Fri, 24 Jun 2016 13:53:48 +0000
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) by VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) with mapi id 15.01.0523.019; Fri, 24 Jun 2016 13:53:46 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Antonio Sanso <asanso@adobe.com>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AQHRzgyMNFkKTSqpJkGxUgqboNSngJ/4rLoA///zIICAABUPgA==
Date: Fri, 24 Jun 2016 13:53:46 +0000
Message-ID: <D392F7AA.6EF93%kenny.paterson@rhul.ac.uk>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com> <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk> <A9961C08-798F-4871-96D6-5B1A989A9FDE@adobe.com>
In-Reply-To: <A9961C08-798F-4871-96D6-5B1A989A9FDE@adobe.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.5.160527
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [78.146.50.187]
x-ms-office365-filtering-correlation-id: 1057460d-80e1-4f4d-5161-08d39c36f684
x-microsoft-exchange-diagnostics: 1; VI1PR03MB1821; 6:uZBMhHiUHEtlDb/1cdig+Jj3RNLd/XbdzyA9gKlp+R3r85pJ9BgmM13IoGEhDIbzajG/L9SejGrl+5gz8a949w2LhkGdlA4ZiBewgA3d+IC7uaeF96rOat1CCfJNvQQ6k+vfp0yRJ5eEGKG0mSoceOWzx2gURnCNvDTy1gVVOqY3dHkrlXUc/ks27uEE60MDBeTfdA1fqBdsMOrWyz68wt0mfGOfr4ras0Hi5Ghg11jCXR7ZNoKwZkq7N7VVK3ocLWA/NA2xezHZIv7bP6bQno6dzKQ7puXi41zj0LkQmboQ5Nxuujc8RtgJ2pW27J6E; 5:1Qf1OVhqZKcy38b3R3HFEHF2gJr9/QHCygGXnPirpBqQzX/P8QI/sp7gGKg6YYO47Rqfq+CVd8kUAE8Fqq1ln7Nj1ou2kr5kbQlUBEIbIcWPYy1NqCdz3mFoWJoTUO5/uGAxkcucW576XPOWRWb+bQ==; 24:wvOySpa/Dv5QnyIDQ37TXSyqDz4T2lQp5xjx8l+nhYW2PVy5a3ZiF6FjeQs7cojn/cIL6+rHLV1Fwo58phv7FriSVlda13EITPZT4Vw10DY=; 7:L3yJA0og5i6slJLRb1wFFclWx5D2uBJE2dQ9YkXJzhGWNzuwDgs8mqmURcwGyE4+iuHNSuDDudcslvdi0J8DzptcXf9WgLtzLoyWiKFAV60uSwJ/5aGRPHRkUpFzI6WmGmxxrhl7kdtPGZimhXxGqnghrdwDdGJSPPOINmfdZRhBhGEKrEZeRQdazBZ+CE/alI9AMjxpgBmVPZwhL7W7gbVIcPRyVpAwc0+o3Khd3xRo04yCqMw2wHLdXokSOwWPsGAfwQJsY2NNlMx9ox0VoQ==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR03MB1821;
x-microsoft-antispam-prvs: <VI1PR03MB1821BAB1161B75F1F9CC24B2BC2E0@VI1PR03MB1821.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(211936372134217);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:VI1PR03MB1821; BCL:0; PCL:0; RULEID:; SRVR:VI1PR03MB1821; 
x-forefront-prvs: 0983EAD6B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(24454002)(377454003)(199003)(189002)(77096005)(19580395003)(87936001)(92566002)(15975445007)(97736004)(54356999)(68196006)(4001350100001)(10400500002)(2906002)(19580405001)(110136002)(122556002)(36756003)(7846002)(3846002)(561944003)(102836003)(6116002)(586003)(305945005)(7736002)(15650500001)(81156014)(68736007)(81166006)(3280700002)(106116001)(3660700001)(106356001)(105586002)(2950100001)(230783001)(5002640100001)(76176999)(4326007)(8936002)(101416001)(50986999)(83506001)(2900100001)(86362001)(8676002)(189998001)(66066001)(74482002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR03MB1821; H:VI1PR03MB1822.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <9AD84EDFA47DA044916A1434D8F3D41A@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2016 13:53:46.6074 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB1821
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/_5Iiz1Eto3Hza52W66DcIJPlmKg>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 13:58:58 -0000

SGkgQW50b25pbywNCg0KT24gMjQvMDYvMjAxNiAxNDo0MCwgIkFudG9uaW8gU2Fuc28iIDxhc2Fu
c29AYWRvYmUuY29tPiB3cm90ZToNCg0KPmhpIEtlbm55DQo+DQo+T24gSnVuIDI0LCAyMDE2LCBh
dCAzOjI0IFBNLCBQYXRlcnNvbiwgS2VubnkgPEtlbm55LlBhdGVyc29uQHJodWwuYWMudWs+DQo+
d3JvdGU6DQo+DQo+PiANCj4+IEluIHlvdXIgc2NlbmFyaW8gaXQgbG9va3MgbGlrZSB5b3UgYXJl
IHRyeWluZyB0byB1c2UgdGhlIHNoYXJlZCBzZWNyZXQgUw0KPj4gdG8gcHJvdmlkZSBhdXRoZW50
aWNhdGlvbiBvZiB0aGUgc2VuZGVyIHRvIHRoZSByZWNlaXZlciwgYWxvbmcgd2l0aA0KPj4gY29u
ZmlkZW50aWFsaXR5IGZvciB0aGUgbWVzc2FnZSBiZWluZyBkZWxpdmVyZWQNCj4NCj50byBtZSB0
aGlzIHNlZW1zIGEgcHJldHR5IGNvbW1vbiBzY2VuYXJpby4NCj5JZiBJIGFtIG5vdCBjb21wbGV0
ZWx5IHdyb25nIGluIG15IHVuZGVyc3RhbmRpbmcgaXMgZm9yIGV4YW1wbGUgd2hhdCBKV0UNCj5k
b2VzIFswXSBhbmQgWzFdIGZvciBleGFtcGxlDQo+DQo+cmVnYXJkcw0KPg0KPmFudG9uaW8NCj4N
Cj5bMF0gaHR0cHM6Ly90b29scy5pZXRmLm9yZy9odG1sL3JmYzc1MTYjcGFnZS0zMg0KPlsxXSBo
dHRwczov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ZSB0bw0KPj4+
YWxsb3cNCj4+PiB0aGlzIGtpbmQgb2YgIndlYWsiIGtleXMuIEFuZCBzaW5jZSBhYnVzZSByZXNp
c3RhbmNlIGlzDQo+Pj4gb25lIG9mIHRoZSBnb2FscyBpdCBtaWdodCBiZSBhIGdvb2QgaWRlYSB0
byBhdm9pZCBzdWNoIHR5cGUgb2YgYWJ1c2VzLg0KPj4+IA0KPj4+IA0KPj4+IA0KPj4gDQo+PiBf
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPj4gQ2ZyZyBt
YWlsaW5nIGxpc3QNCj4+IENmcmdAaXJ0Zi5vcmcNCj4+IGh0dHBzOi8vd3d3LmlydGYub3JnL21h
aWxtYW4vbGlzdGluZm8vY2ZyZw0KPg0KDQo=


From nobody Fri Jun 24 07:14:50 2016
Return-Path: <bleichen@google.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 EFC9512D0F1 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 07:14:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.426
X-Spam-Level: 
X-Spam-Status: No, score=-3.426 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 LfNTkb_kNmXR for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 07:14:45 -0700 (PDT)
Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (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 7712912B039 for <cfrg@ietf.org>; Fri, 24 Jun 2016 07:14:45 -0700 (PDT)
Received: by mail-vk0-x229.google.com with SMTP id d185so152044883vkg.0 for <cfrg@ietf.org>; Fri, 24 Jun 2016 07:14:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UDN+bUJsnHZJU4xdbCGbHKFVAZDpSkU4khdec0eXGa8=; b=aDHFWW7lg2B8Yn/zxXY+7wDa2Fgj2qcelfJCRAEzIuzWwqIShbEWqi1PFIht/ioT5k 09pWtDzzPdk+mNybaB2owGWJs3KDeSQ7kXa2J0NSxWBLPwJsIsosNuyaUrEfbyjShzro Qt1rxZCmKRt5R+UF0g6h4mdX7HmCAS+/hwvfZ3Gdnks65tdLl64r53EzKhpBpTTrWTS3 2MWSRS8bxv7WUl6CLJzr7er3BkQnJWAmKBJCI53F0dQZloZgxAALTaf0Q/4KhYGxLQI4 rOrhBhtpfUhYQX0cqo70XQum+Vo8ZGJMLesDr+++2zFVMwQk8s8uoT6BXh97O5iHWf9y c/VA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UDN+bUJsnHZJU4xdbCGbHKFVAZDpSkU4khdec0eXGa8=; b=ASGEj9T0mKZyn8mQLfBzdxo/Yb0WuauriApm1A0HLvzKVvPwAUbB88lBb+yB49XNxe 9SKpxZvRHS/JljbXjiU3il4TOty7GR1c4UdjAEnAp+s1YBUkdY6XaRuTXgsViDdFhenB rEVHqTxfXx74s4erPB7eZKgJOvBPpRmEgomXPzkWHriALisCqloQwoaYHsZ3QCIvQmk1 Ich4iSWd0fveYHwJFLVqH2FpoJ/pda4FhXOy5PkaSAh+G9hyRWR093YQGoZA7K/1FuHd yuCjxPba6ao/a3zNEvomYF0AGU764tEdYAH1Yv46XCqPvZUQh2UKvC4ngDLkE9nU/ION RtLQ==
X-Gm-Message-State: ALyK8tJSi0EDHUmEozlLGglhh6UZftbC4MOhWTBiV7BMh7jvVseJTkeia2mecPwfIXKQKmnSh8+6EPjo5UkNBNXQ
X-Received: by 10.31.56.69 with SMTP id f66mr2589088vka.135.1466777684427; Fri, 24 Jun 2016 07:14:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.147.196 with HTTP; Fri, 24 Jun 2016 07:14:42 -0700 (PDT)
In-Reply-To: <D392F7AA.6EF93%kenny.paterson@rhul.ac.uk>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com> <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk> <A9961C08-798F-4871-96D6-5B1A989A9FDE@adobe.com> <D392F7AA.6EF93%kenny.paterson@rhul.ac.uk>
From: Daniel Bleichenbacher <bleichen@google.com>
Date: Fri, 24 Jun 2016 16:14:42 +0200
Message-ID: <CAPqF7e14X+_P+BiZ=Rxd-jw8RBLHmLWnks2w-RXA7mMgW=_HKw@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: multipart/alternative; boundary=001a1143f0ecd8af91053606ca7e
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/VOGXHY1h7VUGIKbjFOI5gu1Mp9I>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 14:14:49 -0000

--001a1143f0ecd8af91053606ca7e
Content-Type: text/plain; charset=UTF-8

On Fri, Jun 24, 2016 at 3:53 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
wrote:

> Hi Antonio,
>
> On 24/06/2016 14:40, "Antonio Sanso" <asanso@adobe.com> wrote:
>
> >hi Kenny
> >
> >On Jun 24, 2016, at 3:24 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
> >wrote:
> >
> >>
> >> In your scenario it looks like you are trying to use the shared secret S
> >> to provide authentication of the sender to the receiver, along with
> >> confidentiality for the message being delivered
> >
> >to me this seems a pretty common scenario.
> >If I am not completely wrong in my understanding is for example what JWE
> >does [0] and [1] for example
> >
> >regards
> >
> >antonio
> >
> >[0] https://tools.ietf.org/html/rfc7516#page-32
> >[1] https://tools.ietf.org/html/rfc7516#page-36
>
> Key transport via PKE using, for example RSA-OAEP, is a certainly an
> option in JWE. But what Daniel describes has an additional symmetric key
> ("S") for the purposes of authentication, I think, and does not strictly
> match anything I've seen in the JSON RFCs. But let's allow Daniel to
> answer on that one...
>
> Cheers
>
> Kenny
>

I'm not familiar with JWE so I can't comment on this protocol.
A typical scenario where S can't be used directly as key are low entropy
secrets
such as passwords.

One motivation for me  to look into this is the question whether AES-GCM-SIV
could be used as a drop-in replacement for AES-GCM without doing an
additional
security review of the resulting protocol.
So far, I'm not convinced that this can be done in all cases.


>
>
>
> >> . In this scenario, it's
> >> not clear to me why the sender and receiver would not just use S as an
> >> AES-GCM-SIV key to transport a session key K, and then use K in another
> >> instance of AES-GCM-SIV to transport the desired messages. Of course,
> >>this
> >> construction would not prevent replay attacks; for that you'd need
> >> additional mechanisms, like incorporating a counter into the AD of the
> >> key-transporting AEAD.
> >>
> >> But perhaps one should not underestimate the ingenuity of implementers
> >>in
> >> wanting to use public key encryption. Is this where you are coming from?
> >>
> >> On a related point, my view is that it is a disbenefit that the
> >> AES-GCM-SIV proposal has two separate keys (one for encryption, the
> >>other
> >> for authentication) as inputs. That's not the AEAD interface that we
> >>have
> >> raised our implementers on. I raised this point at the CFRG meeting in
> >> Vienna back in May. Simply concatenating the two keys in the current
> >> proposal into one would address this issue, but not the one you raise
> >>(if
> >> I understand it correctly).
> >>
> >> (The minutes of the meeting can be found here:
> >>
> >>
> https://www.ietf.org/proceedings/interim-2016-cfrg-01/minutes/minutes-int
> >>er
> >> im-2016-cfrg-1)
> >>
> >> Regards
> >>
> >> Kenny
> >>
> >>
> >> On 24/06/2016 12:35, "Cfrg on behalf of Daniel Bleichenbacher"
> >> <cfrg-bounces@irtf.org on behalf of bleichen@google.com> wrote:
> >>
> >>> I'm wondering what can or should be expected about the security of the
> >>> additional data.
> >>>
> >>>
> >>> In particular, I'm considering the following scenario:
> >>>
> >>>
> >>> Sender and receiver share a secret S.
> >>> The sender knows the public key of the receiver and the receiver of
> >>> course knows the private key.
> >>> They use a hybrid encryption as follows:
> >>>
> >>>
> >>> The sender chooses a new AES-GCM-SIV key, encrypts his message
> >>> and includes S as additional data. The AES-GCM-SIV key is wrapped with
> >>> the receivers public key and the wrapped key and ciphertext are sent to
> >>> the receiver.
> >>>
> >>>
> >>> Here an attacker can use that AES-GCM-SIV allows to select a key such
> >>> that the
> >>> element H used for POLYVAL is 0. In this case it would not be necessary
> >>> for the sender
> >>> to know S to construct a ciphertext that validates.
> >>> A similar attack using AES-GCM seems much harder since the value H for
> >>> the GHASH
> >>> is obtained by encrypting 0 and thus I'm not aware of a way to do the
> >>> same thing here.
> >>>
> >>>
> >>> The attack does of course not violate any of the guarantees claimed.
> >>> However, in the industry lots of ad hoc protocols are designed without
> >>> proper security reductions and hence it seems a bit scary to me to
> >>>allow
> >>> this kind of "weak" keys. And since abuse resistance is
> >>> one of the goals it might be a good idea to avoid such type of abuses.
> >>>
> >>>
> >>>
> >>
> >> _______________________________________________
> >> Cfrg mailing list
> >> Cfrg@irtf.org
> >> https://www.irtf.org/mailman/listinfo/cfrg
> >
>
>

--001a1143f0ecd8af91053606ca7e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Fri, Jun 24, 2016 at 3:53 PM, Paterson, Kenny <span dir=3D"ltr">&lt;=
<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk" target=3D"_blank">Kenny.Paters=
on@rhul.ac.uk</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi An=
tonio,<br>
<span class=3D""><br>
On 24/06/2016 14:40, &quot;Antonio Sanso&quot; &lt;<a href=3D"mailto:asanso=
@adobe.com">asanso@adobe.com</a>&gt; wrote:<br>
<br>
&gt;hi Kenny<br>
&gt;<br>
&gt;On Jun 24, 2016, at 3:24 PM, Paterson, Kenny &lt;<a href=3D"mailto:Kenn=
y.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>
&gt;wrote:<br>
&gt;<br>
&gt;&gt;<br>
</span><span class=3D"">&gt;&gt; In your scenario it looks like you are try=
ing to use the shared secret S<br>
&gt;&gt; to provide authentication of the sender to the receiver, along wit=
h<br>
&gt;&gt; confidentiality for the message being delivered<br>
&gt;<br>
&gt;to me this seems a pretty common scenario.<br>
&gt;If I am not completely wrong in my understanding is for example what JW=
E<br>
&gt;does [0] and [1] for example<br>
&gt;<br>
&gt;regards<br>
&gt;<br>
&gt;antonio<br>
&gt;<br>
&gt;[0] <a href=3D"https://tools.ietf.org/html/rfc7516#page-32" rel=3D"nore=
ferrer" target=3D"_blank">https://tools.ietf.org/html/rfc7516#page-32</a><b=
r>
&gt;[1] <a href=3D"https://tools.ietf.org/html/rfc7516#page-36" rel=3D"nore=
ferrer" target=3D"_blank">https://tools.ietf.org/html/rfc7516#page-36</a><b=
r>
<br>
</span>Key transport via PKE using, for example RSA-OAEP, is a certainly an=
<br>
option in JWE. But what Daniel describes has an additional symmetric key<br=
>
(&quot;S&quot;) for the purposes of authentication, I think, and does not s=
trictly<br>
match anything I&#39;ve seen in the JSON RFCs. But let&#39;s allow Daniel t=
o<br>
answer on that one...<br>
<br>
Cheers<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Kenny<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><span style=3D"color:=
rgb(34,34,34)"></span></div></div></blockquote><div><br></div><div>I&#39;m =
not familiar with JWE so I can&#39;t comment on this protocol.</div><div>A =
typical scenario where S can&#39;t be used directly as key are low entropy =
secrets</div><div>such as passwords.</div><div><br></div><div>One motivatio=
n for me =C2=A0to look into this is the question whether AES-GCM-SIV</div><=
div>could be used as a drop-in replacement for AES-GCM without doing an add=
itional</div><div>security review of the resulting protocol.</div><div>So f=
ar, I&#39;m not convinced that this can be done in all cases.</div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D=
"h5"><span style=3D"color:rgb(34,34,34)">=C2=A0</span><br></div></div></blo=
ckquote><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"=
h5">
&gt;<br>
&gt;&gt; . In this scenario, it&#39;s<br>
&gt;&gt; not clear to me why the sender and receiver would not just use S a=
s an<br>
&gt;&gt; AES-GCM-SIV key to transport a session key K, and then use K in an=
other<br>
&gt;&gt; instance of AES-GCM-SIV to transport the desired messages. Of cour=
se,<br>
&gt;&gt;this<br>
&gt;&gt; construction would not prevent replay attacks; for that you&#39;d =
need<br>
&gt;&gt; additional mechanisms, like incorporating a counter into the AD of=
 the<br>
&gt;&gt; key-transporting AEAD.<br>
&gt;&gt;<br>
&gt;&gt; But perhaps one should not underestimate the ingenuity of implemen=
ters<br>
&gt;&gt;in<br>
&gt;&gt; wanting to use public key encryption. Is this where you are coming=
 from?<br>
&gt;&gt;<br>
&gt;&gt; On a related point, my view is that it is a disbenefit that the<br=
>
&gt;&gt; AES-GCM-SIV proposal has two separate keys (one for encryption, th=
e<br>
&gt;&gt;other<br>
&gt;&gt; for authentication) as inputs. That&#39;s not the AEAD interface t=
hat we<br>
&gt;&gt;have<br>
&gt;&gt; raised our implementers on. I raised this point at the CFRG meetin=
g in<br>
&gt;&gt; Vienna back in May. Simply concatenating the two keys in the curre=
nt<br>
&gt;&gt; proposal into one would address this issue, but not the one you ra=
ise<br>
&gt;&gt;(if<br>
&gt;&gt; I understand it correctly).<br>
&gt;&gt;<br>
&gt;&gt; (The minutes of the meeting can be found here:<br>
&gt;&gt;<br>
&gt;&gt;<a href=3D"https://www.ietf.org/proceedings/interim-2016-cfrg-01/mi=
nutes/minutes-int" rel=3D"noreferrer" target=3D"_blank">https://www.ietf.or=
g/proceedings/interim-2016-cfrg-01/minutes/minutes-int</a><br>
&gt;&gt;er<br>
&gt;&gt; im-2016-cfrg-1)<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; Kenny<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 24/06/2016 12:35, &quot;Cfrg on behalf of Daniel Bleichenbacher=
&quot;<br>
&gt;&gt; &lt;<a href=3D"mailto:cfrg-bounces@irtf.org">cfrg-bounces@irtf.org=
</a> on behalf of <a href=3D"mailto:bleichen@google.com">bleichen@google.co=
m</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m wondering what can or should be expected about the sec=
urity of the<br>
&gt;&gt;&gt; additional data.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; In particular, I&#39;m considering the following scenario:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Sender and receiver share a secret S.<br>
&gt;&gt;&gt; The sender knows the public key of the receiver and the receiv=
er of<br>
&gt;&gt;&gt; course knows the private key.<br>
&gt;&gt;&gt; They use a hybrid encryption as follows:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The sender chooses a new AES-GCM-SIV key, encrypts his message=
<br>
&gt;&gt;&gt; and includes S as additional data. The AES-GCM-SIV key is wrap=
ped with<br>
&gt;&gt;&gt; the receivers public key and the wrapped key and ciphertext ar=
e sent to<br>
&gt;&gt;&gt; the receiver.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here an attacker can use that AES-GCM-SIV allows to select a k=
ey such<br>
&gt;&gt;&gt; that the<br>
&gt;&gt;&gt; element H used for POLYVAL is 0. In this case it would not be =
necessary<br>
&gt;&gt;&gt; for the sender<br>
&gt;&gt;&gt; to know S to construct a ciphertext that validates.<br>
&gt;&gt;&gt; A similar attack using AES-GCM seems much harder since the val=
ue H for<br>
&gt;&gt;&gt; the GHASH<br>
&gt;&gt;&gt; is obtained by encrypting 0 and thus I&#39;m not aware of a wa=
y to do the<br>
&gt;&gt;&gt; same thing here.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The attack does of course not violate any of the guarantees cl=
aimed.<br>
&gt;&gt;&gt; However, in the industry lots of ad hoc protocols are designed=
 without<br>
&gt;&gt;&gt; proper security reductions and hence it seems a bit scary to m=
e to<br>
&gt;&gt;&gt;allow<br>
&gt;&gt;&gt; this kind of &quot;weak&quot; keys. And since abuse resistance=
 is<br>
&gt;&gt;&gt; one of the goals it might be a good idea to avoid such type of=
 abuses.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;&gt; <a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"nore=
ferrer" target=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</a><br=
>
&gt;<br>
<br>
</div></div></blockquote></div><br></div></div>

--001a1143f0ecd8af91053606ca7e--


From nobody Fri Jun 24 07:23:56 2016
Return-Path: <shay.gueron@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 2A5DE12D7F8 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 07:23:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, 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 VW13pJO-9hLK for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 07:23:53 -0700 (PDT)
Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 824EA128874 for <cfrg@ietf.org>; Fri, 24 Jun 2016 07:23:52 -0700 (PDT)
Received: by mail-wm0-x241.google.com with SMTP id r201so5425841wme.0 for <cfrg@ietf.org>; Fri, 24 Jun 2016 07:23:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=from:to:subject:cc:date:message-id:in-reply-to:reply-to:user-agent :mime-version:content-transfer-encoding; bh=kcJh4SMIXYQ26KifDeSYvieeOWA6O3SMhg04kZvY8Tg=; b=bzZ4eTdpxPSnWOtfpX3B9rSijAVCCvZHBaN8+HDDfn1ltBNe1bapVYie/CvQhiOxgU qb3bkAF2H1Jc89Eke1cWVtq95u+9HJkN7ZeUHNtFmMTRsBsmU79gY2D8KeA/8Ufh3RiS llEzGoIOZ5c2ic6Yr7K7Kb8qZt27idzFc9hy4M5K1VvIN3JtenBqDiD6M1D4u4x/Zdfv HPHmt9iMT9Q307gQzrgtn8UOgmktoBuTBDOt9TIpJflSqui/XyVtiFRiKtVxK7xSVjFg i8DRxO1YXNOUfp8iXQ6C0wE5k0mpC0/2adBPMmXC8DJuZhi91HxiIWNKZTqWGOVrnWSv XoaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:cc:date:message-id:in-reply-to :reply-to:user-agent:mime-version:content-transfer-encoding; bh=kcJh4SMIXYQ26KifDeSYvieeOWA6O3SMhg04kZvY8Tg=; b=PsT0kZLiSFOwkkyUVHPG4biVJBf3nTse7+lbN4mHPcvZtl6TZ1i/k2Nk9tclP9pmBg NStb7FIdf2tp7P4W7DB5gYqNnq1+Ia3rhEHjxNlWeMsTu4uaHpr4BsSRhmSv6Ze1NzeQ qlZ1x/zTFJdivc/C/w0RaG7B5qCZqkYAnCvjZXLbGRjF9u4NOpfTbuu5GZW/eP67hPrt CW9O2h0lqwyLW7Hv/Yei1yxE2XJkWSruSGdjNhrIU6Rq8ADroxgqVsvThtFmtvVlwonH 1h27r1STPu8NGRhh65+7NktrSOgVvIzrNAADkDBbz0lXh6hF8gOcsuQ2nx18z0hXd/zy hBuw==
X-Gm-Message-State: ALyK8tKYy9cRpewzAW6P4/CfA1aVXd0SxtemuseoOQZrPU0lF1x1+I/VtKmUNyePNNJ3Cw==
X-Received: by 10.194.115.199 with SMTP id jq7mr4023458wjb.162.1466778230962;  Fri, 24 Jun 2016 07:23:50 -0700 (PDT)
Received: from [10.0.0.3] (bzq-79-180-232-9.red.bezeqint.net. [79.180.232.9]) by smtp.gmail.com with ESMTPSA id a129sm3409058wma.2.2016.06.24.07.23.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jun 2016 07:23:50 -0700 (PDT)
From: "Gueron, Shay" <shay.gueron@gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, "Antonio Sanso" <asanso@adobe.com>
Date: Fri, 24 Jun 2016 14:23:36 +0000
Message-Id: <ema3c568ce-b47f-45fc-b799-b78ad0494efd@sgueron-mobl3>
In-Reply-To: <D392F7AA.6EF93%kenny.paterson@rhul.ac.uk>
User-Agent: eM_Client/6.0.24928.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qKJLMS_t8CiiSkPRbyhuD2KFK0k>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, "cfrg@ietf.org" <cfrg@ietf.org>, Adam Langley <agl@google.com>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: "Gueron, Shay" <shay.gueron@gmail.com>
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, 24 Jun 2016 14:23:55 -0000

Hello to Daniel (and all) =E2=80=93

This is a very interesting point, raised by Daniel.
It does not attack AES-GCM-SIV, but rather a particular (imaginary) way=20
to (not) use it.
Daniel's demonstration shows that there exists a protocol that is safe=20
(I guess) when using AES-GCM as a component, but not safe when=20
(carelessly) using AES-GCM-SIV as this component. Indeed, so.

But, as Daniel indicated, it does not violate the promise of=20
AES-GCM-SIV, and the simple answer is: don=E2=80=99t use protocols (certain=
ly=20
not made-up) without proper analysis.

To Kenny: it does not matter here if the there is a single key where a=20
part of it are used for encryption, and another part for the=20
authentication, or 2 separate keys. Because, the adversary controls this=
=20
key (or the two keys) in the described scenario.

About the protocol: if there is already a shared secret (S), why not use=
=20
it directly with AES-GCM-SIV (where different nonces, that yield=20
different encryption keys), as Kenny has already indicated.

If someone insists on using such a hybrid protocol (why?), then how=20
about this change in it: draw K1 and x uniformly at random, and define=20
K1 as the encryption key, and K2 =3D ENC_S (x) as the authentication key.=
=20
Then use AES-GCM-SIV with these keys and the mentioned protocol. This=20
addresses the root cause for the protocol=E2=80=99s failure: now, the adver=
sary=20
does not control the authentication key and cannot force a =E2=80=9Cweak=
=E2=80=9D (zero)=20
one to be used.
[disclaimer: I have not analyzed the protocol in depth]
Thanks, Shay
------ Original Message ------
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "Antonio Sanso" <asanso@adobe.com>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Sent: 6/24/2016 4:53:46 PM
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data

>Hi Antonio,
>
>On 24/06/2016 14:40, "Antonio Sanso" <asanso@adobe.com> wrote:
>
>>hi Kenny
>>
>>On Jun 24, 2016, at 3:24 PM, Paterson, Kenny=20
>><Kenny.Paterson@rhul.ac.uk>
>>wrote:
>>
>>>
>>>  In your scenario it looks like you are trying to use the shared=20
>>>secret S
>>>  to provide authentication of the sender to the receiver, along with
>>>  confidentiality for the message being delivered
>>
>>to me this seems a pretty common scenario.
>>If I am not completely wrong in my understanding is for example what=20
>>JWE
>>does [0] and [1] for example
>>
>>regards
>>
>>antonio
>>
>>[0] https://tools.ietf.org/html/rfc7516#page-32
>>[1] https://tools.ietf.org/html/rfc7516#page-36
>
>Key transport via PKE using, for example RSA-OAEP, is a certainly an
>option in JWE. But what Daniel describes has an additional symmetric=20
>key
>("S") for the purposes of authentication, I think, and does not=20
>strictly
>match anything I've seen in the JSON RFCs. But let's allow Daniel to
>answer on that one...
>
>Cheers
>
>Kenny
>
>>
>>>  . In this scenario, it's
>>>  not clear to me why the sender and receiver would not just use S as=
=20
>>>an
>>>  AES-GCM-SIV key to transport a session key K, and then use K in=20
>>>another
>>>  instance of AES-GCM-SIV to transport the desired messages. Of=20
>>>course,
>>>this
>>>  construction would not prevent replay attacks; for that you'd need
>>>  additional mechanisms, like incorporating a counter into the AD of=20
>>>the
>>>  key-transporting AEAD.
>>>
>>>  But perhaps one should not underestimate the ingenuity of=20
>>>implementers
>>>in
>>>  wanting to use public key encryption. Is this where you are coming=20
>>>from?
>>>
>>>  On a related point, my view is that it is a disbenefit that the
>>>  AES-GCM-SIV proposal has two separate keys (one for encryption, the
>>>other
>>>  for authentication) as inputs. That's not the AEAD interface that we
>>>have
>>>  raised our implementers on. I raised this point at the CFRG meeting=
=20
>>>in
>>>  Vienna back in May. Simply concatenating the two keys in the current
>>>  proposal into one would address this issue, but not the one you=20
>>>raise
>>>(if
>>>  I understand it correctly).
>>>
>>>  (The minutes of the meeting can be found here:
>>>
>>>https://www.ietf.org/proceedings/interim-2016-cfrg-01/minutes/minutes-in=
t
>>>er
>>>  im-2016-cfrg-1)
>>>
>>>  Regards
>>>
>>>  Kenny
>>>
>>>
>>>  On 24/06/2016 12:35, "Cfrg on behalf of Daniel Bleichenbacher"
>>>  <cfrg-bounces@irtf.org on behalf of bleichen@google.com> wrote:
>>>
>>>>  I'm wondering what can or should be expected about the security of=
=20
>>>>the
>>>>  additional data.
>>>>
>>>>
>>>>  In particular, I'm considering the following scenario:
>>>>
>>>>
>>>>  Sender and receiver share a secret S.
>>>>  The sender knows the public key of the receiver and the receiver of
>>>>  course knows the private key.
>>>>  They use a hybrid encryption as follows:
>>>>
>>>>
>>>>  The sender chooses a new AES-GCM-SIV key, encrypts his message
>>>>  and includes S as additional data. The AES-GCM-SIV key is wrapped=20
>>>>with
>>>>  the receivers public key and the wrapped key and ciphertext are=20
>>>>sent to
>>>>  the receiver.
>>>>
>>>>
>>>>  Here an attacker can use that AES-GCM-SIV allows to select a key=20
>>>>such
>>>>  that the
>>>>  element H used for POLYVAL is 0. In this case it would not be=20
>>>>necessary
>>>>  for the sender
>>>>  to know S to construct a ciphertext that validates.
>>>>  A similar attack using AES-GCM seems much harder since the value H=
=20
>>>>for
>>>>  the GHASH
>>>>  is obtained by encrypting 0 and thus I'm not aware of a way to do=20
>>>>the
>>>>  same thing here.
>>>>
>>>>
>>>>  The attack does of course not violate any of the guarantees=20
>>>>claimed.
>>>>  However, in the industry lots of ad hoc protocols are designed=20
>>>>without
>>>>  proper security reductions and hence it seems a bit scary to me to
>>>>allow
>>>>  this kind of "weak" keys. And since abuse resistance is
>>>>  one of the goals it might be a good idea to avoid such type of=20
>>>>abuses.
>>>>
>>>>
>>>>
>>>
>>>  _______________________________________________
>>>  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


From nobody Fri Jun 24 09:00:50 2016
Return-Path: <agenda@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 D2EDC12DC37; Fri, 24 Jun 2016 09:00:37 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "\"IETF Secretariat\"" <agenda@ietf.org>
To: <kenny.paterson@rhul.ac.uk>, <cfrg-chairs@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.24.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20160624160037.10933.59079.idtracker@ietfa.amsl.com>
Date: Fri, 24 Jun 2016 09:00:37 -0700
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/fBu_jg5FCmSrzwemi_l1t4QSQzY>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@ietf.org, irtf-chair@irtf.org
Subject: [Cfrg] cfrg - Requested session has been scheduled for IETF 96
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 16:00:38 -0000

Dear Kenny Paterson,

The session(s) that you have requested have been scheduled.
Below is the scheduled session information followed by
the original request. 

cfrg Session 1 (1:30:00)
    Wednesday, Afternoon Session I 1400-1530
    Room Name: Potsdam III size: 250
    ---------------------------------------------
    


Request Information:


---------------------------------------------------------
Working Group Name: Crypto Forum
Area Name: IRTF
Session Requester: Kenny Paterson

Number of Sessions: 1
Length of Session(s):  1.5 Hours
Number of Attendees: 70
Conflicts to Avoid: 
 First Priority: kitten tcpinc uta httpauth dispatch dprive dane tls saag
 Second Priority: mile



Special Requests:
  Please generally avoid conflicts with SEC Area WGs/BOFs
---------------------------------------------------------


From nobody Fri Jun 24 10:12:30 2016
Return-Path: <shay.gueron@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 6669212D119 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 10:12:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, 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 62plq-tW38ym for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 10:12:25 -0700 (PDT)
Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 9B9AD12D0C5 for <cfrg@ietf.org>; Fri, 24 Jun 2016 10:12:25 -0700 (PDT)
Received: by mail-wm0-x242.google.com with SMTP id a66so6661057wme.2 for <cfrg@ietf.org>; Fri, 24 Jun 2016 10:12:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=from:to:subject:cc:date:message-id:in-reply-to:reply-to:user-agent :mime-version:content-transfer-encoding; bh=mBwjKCul+gPXCU5HwTFVuC1fFq52TrPb0OiOj3dHifE=; b=ceYoDOGwAvxJTola/as1deXkphZ2TbxbKauGQ5VS22akgBaCXemXG/xzu6WjoxEN9t KT4y4s0IACP2iSYLowPnnhKK5TNZh/L2xG2jPPAWVfeByDM8GdI8vB812ckvbkvWt1Zj WJtiah6u1LckWgdtvNoBRB9liyqAnpPMT9IJEXB6ZbWnQLfrgWWns/WPbAtc5fa+hVNZ Ix/hXH9Agy7v7Ttt/Qq5jDqZtVss/IYA914qIZtV5ot35WFLPHVaezt39y0odp9Hy+IB 3gHVMUIhsQ3K2cqlIeGaQDM2UcryMJS9W3Jsni0sv7rAdAMCQEu1C9Ahut5eBjCDZxDN LSPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:cc:date:message-id:in-reply-to :reply-to:user-agent:mime-version:content-transfer-encoding; bh=mBwjKCul+gPXCU5HwTFVuC1fFq52TrPb0OiOj3dHifE=; b=QZVC4rCETetNQFkq4i+tFEBXVvV6WLBN14ec06N4+lFPoVNyLH5Qgf6ylK/+XqYxoH 2vvFn+hSV3qpTiQJI59GIiu0yh45+DQ1zLJiv3l+ZOe/ejUG8oIsr+1hbEiHOmInLHAq RXBzeWJdqXySPN4Crze85VcOO2cVKoMLWQrwlpQ9O7atNG7jiytO2qV06uAHzVPSkiA7 qeoF9Sp9ly97sh0xHWRagy/qwnS7VwrAOIiD2eKxc6uB0J7TWIDYfBDjMeeTg5Al+zf5 iPJdZsYhUhgKzNkTPoAaxVEFEftcj/UmtINw2iar1PWSTuQGSDyQprOY7JLb1VT/TjT7 JQlw==
X-Gm-Message-State: ALyK8tIR8YS0tcAN6XZBkrklpujXkkPmElzqgXGxEf+Rvat1kkzC8kmLI9wtdroEsjC2vQ==
X-Received: by 10.28.86.214 with SMTP id k205mr19236183wmb.17.1466788343989; Fri, 24 Jun 2016 10:12:23 -0700 (PDT)
Received: from [10.0.0.3] (bzq-79-180-232-9.red.bezeqint.net. [79.180.232.9]) by smtp.gmail.com with ESMTPSA id a4sm6021766wjq.40.2016.06.24.10.12.22 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jun 2016 10:12:23 -0700 (PDT)
From: "Gueron, Shay" <shay.gueron@gmail.com>
To: "cfrg@ietf.org" <cfrg@ietf.org>
Date: Fri, 24 Jun 2016 17:10:23 +0000
Message-Id: <em85e6ab2a-6a3c-4b2e-986d-2e44c2965663@sgueron-mobl3>
In-Reply-To: <ema3c568ce-b47f-45fc-b799-b78ad0494efd@sgueron-mobl3>
User-Agent: eM_Client/6.0.24928.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/XwC7xuUp5RIbCqPcKlG1gwzxxOc>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, Adam Langley <agl@google.com>
Subject: [Cfrg] AES-GCM-SIV with a new key hierarchy
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: "Gueron, Shay" <shay.gueron@gmail.com>
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, 24 Jun 2016 17:12:27 -0000

Hello everyone,

I start a new tread.

It is a branch off the one entitled "AES-GCM-SIV security of the=20
additional data" and initiated by Daniel.

It combine Kenny's inputs about having two separate keys and the AEADE=20
interface (which he raised at the CFRG meeting in
Vienna in May and also mentioned, in the previous thread, that=20
concatenating 2 separate keys does not solve the problem that Daniel=20
raised).

It also address a comment that Bart Preneel made at that CFRG meeting.

****

It is possible to define AES-GCM-SIV with a standard interface that has=20
a single key (say, MK for "Master Key"), which can be 128 or 256 bits.=20
Basically, by adding the following key derivation step:

     Using MK, derive two new keys K and H: K for encryption and H for=20
authentication.
     From that point on, apply AES-GCM-SIV as it is defined now, where=20
(K, H) are the keys.

Note that K and H are derived statically from MK. The "record encryption=
=20
key" for the encryption depends on the nonce N, via another derivation,=20
as it is currently defined in AES-GCM-SIV.

Note: the derivations are different for the 128 and the 256 bit keys,=20
but such derivations are already in use by AES-GCM-SIV.
With this, AES-GM-SIV could be used with the protocol Daniel described,=20
and would address Kenny's comment on the AEAD interface.
(I guess that it could be better viewed as a drop in replacement to=20
AES-GCM)

The cost is the additional key derivation. this cost could be low if the=
=20
message is long, or if many messages are encrypted (so that K, H can be=20
cached).

An alternative would be to incorporate the nonce from the beginning,=20
during the derivation of K, H from MK. This will modify the record=20
encryption key and also the hash key per each nonce. In that case the=20
extra derivation of the record encryption key (per nonce) could be=20
skipped (but also could be not done).

I would appreciate any comments on this.

Thanks, Shay


From nobody Fri Jun 24 11:03:24 2016
Return-Path: <prvs=59834099b5=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 3CE2512DCEA for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 11:03:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.623
X-Spam-Level: 
X-Spam-Status: No, score=-5.623 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, 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 Nu-7oiRMvNrx for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 11:03:19 -0700 (PDT)
Received: from llmx2.ll.mit.edu (LLMX2.LL.MIT.EDU [129.55.12.48]) by ietfa.amsl.com (Postfix) with ESMTP id 940A612DCF9 for <cfrg@ietf.org>; Fri, 24 Jun 2016 11:03:17 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by llmx2.ll.mit.edu (unknown) with ESMTP id u5OI0jrm042587; Fri, 24 Jun 2016 14:00:45 -0400
From: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
To: Daniel Bleichenbacher <bleichen@google.com>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AdHOGXPgqD25y0zmskKltSj3U+rSKQAItLSAAAGYJQA=
Date: Fri, 24 Jun 2016 18:03:13 +0000
Message-ID: <D392EA2C.2E42C%uri@ll.mit.edu>
References: <20160624130816.18296913.43011.75951@ll.mit.edu> <CAPqF7e0Ov=wGimBu8ggKJeLXueHmpbsqgxYg-w8fveUX1Sm0JQ@mail.gmail.com>
In-Reply-To: <CAPqF7e0Ov=wGimBu8ggKJeLXueHmpbsqgxYg-w8fveUX1Sm0JQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.4.160422
x-originating-ip: [172.25.177.156]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha384; boundary="B_3549621784_5115498"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-24_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=inbound_notspam policy=inbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606240193
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/EHmVL2Vdy8VXbcCeogbl48kQR90>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 18:03:23 -0000

--B_3549621784_5115498
Content-type: multipart/alternative;
	boundary="B_3549621784_5061860"


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

> On Fri, Jun 24, 2016 at 3:08 PM, Blumenthal, Uri - 0553 - MITLL
> <uri@ll.mit.edu> wrote:
>> What is the probability of a sender (accidentally?)=E2=80=8E generating a key =
that
>> results in H being 0?
>=20
> Random key generation is not my concern. My concern is a sender choosing =
a key
> on purpose in such a way that
> he does not have to authenticate additional data.

If our threat model is malicious sender that may try to =E2=80=9Cdisown=E2=80=9D his me=
ssage
or deliberately allow somebody else to modify it =E2=80=93 that same malicious
sender could covertly share his key and claim that adversaries guessed it
(highly improbable but not impossible).

> The typical assumption is that if an integrity check passes then the send=
er is
> aware of the plaintext. Should this also be the case for the additional d=
ata?

Probably not, if/when the sender deliberately makes it not so.

???

P.S. How easy is it to find such a key [that makes H =3D 0]?


>> From: Daniel Bleichenbacher
>> Sent: Friday, June 24, 2016 07:35
>> To: cfrg@ietf.org
>> Subject: [Cfrg] AES-GCM-SIV security of the additional data
>> =E2=80=8E=20
>>=20
>> I'm wondering what can or should be expected about the security of the
>> additional data.
>>=20
>> In particular, I'm considering the following scenario:
>>=20
>> Sender and receiver share a secret S.
>> The sender knows the public key of the receiver and the receiver of cour=
se
>> knows the private key.
>> They use a hybrid encryption as follows:
>>=20
>> The sender chooses a new AES-GCM-SIV key, encrypts his message
>> and includes S as additional data. The AES-GCM-SIV key is wrapped with
>> the receivers public key and the wrapped key and ciphertext are sent to =
the
>> receiver.
>>=20
>> Here an attacker can use that AES-GCM-SIV allows to select a key such th=
at
>> the
>> element H used for POLYVAL is 0. In this case it would not be necessary =
for
>> the sender
>> to know S to construct a ciphertext that validates.
>> A similar attack using AES-GCM seems much harder since the value H for t=
he
>> GHASH
>> is obtained by encrypting 0 and thus I'm not aware of a way to do the sa=
me
>> thing here.
>>=20
>> The attack does of course not violate any of the guarantees claimed.
>> However, in the industry lots of ad hoc protocols are designed without p=
roper
>> security reductions and hence it seems a bit scary to me to allow this k=
ind
>> of "weak" keys. And since abuse resistance is
>> one of the goals it might be a good idea to avoid such type of abuses.
>>=20
>>=20
>=20



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

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
 14px; font-family: Calibri, sans-serif;"><span id=3D"OLK_SRC_BODY_SECTION"><b=
lockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4d=
f 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div><div dir=3D"ltr"><div c=
lass=3D"gmail_extra"><div class=3D"gmail_quote">On Fri, Jun 24, 2016 at 3:08 PM,=
 Blumenthal, Uri - 0553 - MITLL
<span dir=3D"ltr">&lt;<a href=3D"mailto:uri@ll.mit.edu" target=3D"_blank">uri@ll.=
mit.edu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang=3D"en-US"=
 style=3D"background-color:rgb(255,255,255);line-height:initial"><div style=3D"w=
idth:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-=
serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,2=
55)">
What is the probability of a sender (accidentally?)=E2=80=8E generating a key tha=
t results in H being 0?&nbsp;</div></div></blockquote><div><br></div><div>Ra=
ndom key generation is not my concern. My concern is a sender choosing a key=
 on purpose in such a way that</div><div>he does not have to authenticate ad=
ditional data. </div></div></div></div></div></div></blockquote></span><div>=
<div><br></div><div>If our threat model is malicious sender that may try to =
&#8220;disown&#8221; his message or deliberately allow somebody else to modi=
fy it &#8211; that same malicious sender could covertly share his key and cl=
aim that adversaries guessed it (highly improbable but not impossible).</div=
><div><br></div></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OU=
TLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0=
 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D=
"gmail_quote"><div>The typical assumption is that if an integrity check pass=
es then the sender is aware of the plaintext. Should this also be the case f=
or the additional data?</div></div></div></div></blockquote></span><div><br>=
</div><div>Probably not, if/when the sender deliberately makes it not so.</d=
iv><div><br></div><div>???</div><div><br></div><div>P.S. How easy is it to f=
ind such a key [that makes H =3D 0]?</div><div><br></div><div><br></div><div><=
/div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION=
_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 =
0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div lang=3D"en-US" style=3D"background-color:rgb(255,255=
,255);line-height:initial"><table width=3D"100%" style=3D"background-color:white=
;border-spacing:0px"><tbody><tr><td colspan=3D"2" style=3D"font-size:initial;tex=
t-align:initial;background-color:rgb(255,255,255)"><div style=3D"border-style:=
solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;paddi=
ng:3pt 0in 0in;font-family:Tahoma,'BB Alpha Sans','Slate Pro';font-size:10pt=
"><div><b>From: </b>Daniel Bleichenbacher</div><div><b>Sent: </b>Friday, Jun=
e 24, 2016 07:35</div><div><b>To: </b><a href=3D"mailto:cfrg@ietf.org" target=3D=
"_blank">cfrg@ietf.org</a></div><div><b>Subject: </b>[Cfrg] AES-GCM-SIV secu=
rity of the additional data</div></div></td></tr></tbody></table><div style=3D=
"border-style:solid none none;border-top-color:rgb(186,188,209);border-top-w=
idth:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,2=
55)"></div>
=E2=80=8E
<div><div class=3D"h5"><br><div><div dir=3D"ltr">I'm wondering what can or shou=
ld be expected about the security of the additional data.
<div><br></div><div>In particular, I'm considering the following scenario:<=
/div><div><br></div><div>Sender and receiver share a secret S.</div><div>The=
 sender knows the public key of the receiver and the receiver of course know=
s the private key.</div><div>They use a hybrid encryption as follows:</div><=
div><br></div><div>The sender chooses a new AES-GCM-SIV key, encrypts his me=
ssage</div><div>and includes S as additional data. The AES-GCM-SIV key is wr=
apped with</div><div>the receivers public key and the wrapped key and cipher=
text are sent to the receiver.</div><div><br></div><div>Here an attacker can=
 use that AES-GCM-SIV allows to select a key such that the</div><div>element=
 H used for POLYVAL is 0. In this case it would not be necessary for the sen=
der</div><div>to know S to construct a ciphertext that validates.</div><div>=
A similar attack using AES-GCM seems much harder since the value H for the G=
HASH</div><div>is obtained by encrypting 0 and thus I'm not aware of a way t=
o do the same thing here.</div><div><br></div><div>The attack does of course=
 not violate any of the guarantees claimed.</div><div>However, in the indust=
ry lots of ad hoc protocols are designed without proper security reductions =
and hence it seems a bit scary to me to allow this kind of "weak" keys. And =
since abuse resistance is</div><div>one of the goals it might be a good idea=
 to avoid such type of abuses.</div><div><br></div></div><br></div></div></d=
iv></div></blockquote></div><br></div></div></blockquote></span></body></htm=
l>

--B_3549621784_5061860--

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

MIIUZwYJKoZIhvcNAQcCoIIUWDCCFFQCAQExDzANBglghkgBZQMEAgIFADALBgkqhkiG9w0B
BwGgghImMIIE6jCCA9KgAwIBAgIKMztKZQAAAABumTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE2MDExNDE3MzMzN1oXDTE5MDExMzE3MzMzN1ow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDqifs8K0OoodbmOo5G/j2+p2ibbOsEoJ9GJjK8K1Iw
6iig59a3EuNB6NR4tAR3INwjjUwMCa4o8ysnk1hN32B3HPrK5Z8++Y/xcX5iP1L6fc51YQ5C
/EGvrSbjuPLvt19SNfVdwcuoc842Sgk9N/HemdwmvcqJkwzWDsuxKikI2clT1N5LTAaPMkhr
HVuYOHBE0mCXjHjFnYuHsEXyVvUZLxziDgduV9WKbC90Z1NZMXB6ZeQTACUWgMfpFrE12LKb
fvOmxepCBfCPbGB3ZyG+FaUdtQoCEAbGTnY7nCedQFn7pV1hppCt4jjLVlOpgYc3dPmyiXsL
nhDQZ5ptmks/AgMBAAGjggGyMIIBrjAdBg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2PzBkvWdNbs2r/7wXJP6/pL
d5zPvywRNhTgoVe1aN4ivIkU8svkKMggv5ZaOsonaW8JS6dUYmvvk0QvDJRIQNRR0zpQpOKp
+4V/XhMZRhxQJ3DjVTjh9Q/pHKm7ARFhFr3QAJ6ocCjyzLF5issa1Vshx7ElBIk0cXhep6mL
MLqGNX3azAkxggIFMIICAQIBATBfMFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGlu
Y29sbiBMYWJvcmF0b3J5MQwwCgYDVQQLEwNQS0kxEzARBgNVBAMTCk1JVExMIENBLTMCCjM7
SmUAAAAAbpkwDQYJYIZIAWUDBAICBQCgeTA/BgkqhkiG9w0BCQQxMgQw1VhajFwyQv6MboIN
3FtioyIezpK0Zj8Yfho+rmi431FFhEXzZf+yxH9e33VleEOaMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE2MDYyNDE4MDMwNFowDQYJKoZIhvcNAQEBBQAE
ggEAywjUYsAXRCD7DdA+UxYBMJLQ+j5/qTxV7MMWJOChKWaV9UWCuU9qcjU4C1LCIHdp12H5
g6gaA/RG7Z1mWvWcMbUk4KkbHQnBhCRnnHSaVwgYz8lDWEIyNC5eyT2wPq1nOvJHzRiiDeQS
6iIBa8TXuH400LRN7GHMUvxEX3FkmNxnq+EClZkLyPVWALll4VjNxJmxjLmBaf1k3UgB7Y1I
pXajleiytyqgC3QK8aDQAblaby1Ilh7SCqX6Z4Yf1SajdCXDuf5UesNFdxYq/vSq00mrODvH
hJKTMp4doItsh/Y5mU4KBwO6aM5lX7DoQ2EX9UR+15y2VGk+GvJ71mDT5Q==

--B_3549621784_5115498--


From nobody Fri Jun 24 11:07:23 2016
Return-Path: <prvs=59834099b5=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 EF7BA12DD3E for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 11:07:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.624
X-Spam-Level: 
X-Spam-Status: No, score=-5.624 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, 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 tfWaCu-ADEdd for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 11:07:20 -0700 (PDT)
Received: from llmx2.ll.mit.edu (LLMX2.LL.MIT.EDU [129.55.12.48]) by ietfa.amsl.com (Postfix) with ESMTP id A243B12DD24 for <cfrg@ietf.org>; Fri, 24 Jun 2016 11:07:20 -0700 (PDT)
Received: from LLE2K10-HUB02.mitll.ad.local (LLE2K10-HUB02.mitll.ad.local) by llmx2.ll.mit.edu (unknown) with ESMTP id u5OI4jT0045042; Fri, 24 Jun 2016 14:04:45 -0400
From: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
To: "Gueron, Shay" <shay.gueron@gmail.com>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] AES-GCM-SIV with a new key hierarchy
Thread-Index: AQHRzjuXQ8G4tUR43UGKZ6u6dVybJp/46fwA
Date: Fri, 24 Jun 2016 18:07:14 +0000
Message-ID: <D392EE4D.2E439%uri@ll.mit.edu>
References: <ema3c568ce-b47f-45fc-b799-b78ad0494efd@sgueron-mobl3> <em85e6ab2a-6a3c-4b2e-986d-2e44c2965663@sgueron-mobl3>
In-Reply-To: <em85e6ab2a-6a3c-4b2e-986d-2e44c2965663@sgueron-mobl3>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.4.160422
x-originating-ip: [172.25.177.156]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha384; boundary="B_3549622030_5077918"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-24_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=inbound_notspam policy=inbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606240193
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/MXklHjG_uz_0RvEHOToshx02ops>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, Adam Langley <agl@google.com>
Subject: Re: [Cfrg] AES-GCM-SIV with a new key hierarchy
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 18:07:23 -0000

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

Since the traditional assumption for AEAD interface is =E2=80=9Cyou use one key
that is responsible for both confidentiality and integrity=E2=80=9D, I=E2=80=99m in fav=
or
of defining such an interface for AES-GCM-SIV.

In that case IMHO it makes sense to incorporate nonce from the beginning,
using the same AES-OFB approach.

Thanks!
--=20
Regards,
Uri Blumenthal





On 6/24/16, 13:10 , "Cfrg on behalf of Gueron, Shay"
<cfrg-bounces@irtf.org on behalf of shay.gueron@gmail.com> wrote:

>Hello everyone,
>
>I start a new tread.
>
>It is a branch off the one entitled "AES-GCM-SIV security of the
>additional data" and initiated by Daniel.
>
>It combine Kenny's inputs about having two separate keys and the AEADE
>interface (which he raised at the CFRG meeting in
>Vienna in May and also mentioned, in the previous thread, that
>concatenating 2 separate keys does not solve the problem that Daniel
>raised).
>
>It also address a comment that Bart Preneel made at that CFRG meeting.
>
>****
>
>It is possible to define AES-GCM-SIV with a standard interface that has
>a single key (say, MK for "Master Key"), which can be 128 or 256 bits.
>Basically, by adding the following key derivation step:
>
>     Using MK, derive two new keys K and H: K for encryption and H for
>authentication.
>     From that point on, apply AES-GCM-SIV as it is defined now, where
>(K, H) are the keys.
>
>Note that K and H are derived statically from MK. The "record encryption
>key" for the encryption depends on the nonce N, via another derivation,
>as it is currently defined in AES-GCM-SIV.
>
>Note: the derivations are different for the 128 and the 256 bit keys,
>but such derivations are already in use by AES-GCM-SIV.
>With this, AES-GM-SIV could be used with the protocol Daniel described,
>and would address Kenny's comment on the AEAD interface.
>(I guess that it could be better viewed as a drop in replacement to
>AES-GCM)
>
>The cost is the additional key derivation. this cost could be low if the
>message is long, or if many messages are encrypted (so that K, H can be
>cached).
>
>An alternative would be to incorporate the nonce from the beginning,
>during the derivation of K, H from MK. This will modify the record
>encryption key and also the hash key per each nonce. In that case the
>extra derivation of the record encryption key (per nonce) could be
>skipped (but also could be not done).
>
>I would appreciate any comments on this.
>
>Thanks, Shay
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>https://www.irtf.org/mailman/listinfo/cfrg
>

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

MIIUZwYJKoZIhvcNAQcCoIIUWDCCFFQCAQExDzANBglghkgBZQMEAgIFADALBgkqhkiG9w0B
BwGgghImMIIE6jCCA9KgAwIBAgIKMztKZQAAAABumTANBgkqhki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/BgkqhkiG9w0BCQQxMgQw3L79khe8vpSOT29J
JoJQ4zGU6/5wVnKsZjRSqLVDMymnqxnQcfItyMoRjbtIYJHIMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE2MDYyNDE4MDcxMFowDQYJKoZIhvcNAQEBBQAE
ggEA2CQ2lEDK+4qvE/raa4Zx5bGV0MKpHiFvhf5rjn4UGHWlT3BFdfG9Dx3KxmVKBBxbh7+c
2tXHTeVzFMrI/SRZsZobiya2/yXgsd67Ed5SBA8kS72Q35C9AsDJeIm47xm6rZN3rFlrkdrU
uh4wNJqZXcQhybBFFO1wCUiRijfdOyiFC/bkNbWI1dxd8zz1ILxhzkBngL4DIptt5eacLwVV
UdNC62LIBQOVsH2mQJwlrMtIBFV3J2ZFMYoZ/vzyS4BI+Nj2RWRp/KA5+NzMc+MPl5sO1aga
TTpIzNsh04pgd3ne3or6+jtDpFJ4sSKjD4x3iSJ49NOnSXAcpiR5a1awRQ==

--B_3549622030_5077918--


From nobody Fri Jun 24 14:40:31 2016
Return-Path: <ietf@augustcellars.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 27C6712D62A for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 14:40:30 -0700 (PDT)
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 wellr2mNgK-7 for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 14:40:27 -0700 (PDT)
Received: from smtp4.pacifier.net (smtp4.pacifier.net [64.255.237.176]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B59412D645 for <cfrg@ietf.org>; Fri, 24 Jun 2016 14:40:26 -0700 (PDT)
Received: from hebrews (augustcellars.com [50.45.239.150]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp4.pacifier.net (Postfix) with ESMTPSA id 2C4B838EE6; Fri, 24 Jun 2016 14:40:26 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: "'Daniel Bleichenbacher'" <bleichen@google.com>, "'Paterson, Kenny'" <Kenny.Paterson@rhul.ac.uk>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com> <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk> <A9961C08-798F-4871-96D6-5B1A989A9FDE@adobe.com> <D392F7AA.6EF93%kenny.paterson@rhul.ac.uk> <CAPqF7e14X+_P+BiZ=Rxd-jw8RBLHmLWnks2w-RXA7mMgW=_HKw@mail.gmail.com>
In-Reply-To: <CAPqF7e14X+_P+BiZ=Rxd-jw8RBLHmLWnks2w-RXA7mMgW=_HKw@mail.gmail.com>
Date: Fri, 24 Jun 2016 14:40:24 -0700
Message-ID: <077c01d1ce61$04d9b0a0$0e8d11e0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_077D_01D1CE26.587CFB80"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQD1SPxDY6Paraz0AUE0i9OEbumPCwIGsqwLAdmu3O0BxN0bAQI0ksoBoXNgHvA=
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Tc4HmI2nD2BzjvSo7rqPKWOEd3Y>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@ietf.org
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 21:40:30 -0000

This is a multipart message in MIME format.

------=_NextPart_000_077D_01D1CE26.587CFB80
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=20

=20

From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Daniel =
Bleichenbacher
Sent: Friday, June 24, 2016 7:15 AM
To: Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
Cc: cfrg@ietf.org
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data

=20

=20

=20

On Fri, Jun 24, 2016 at 3:53 PM, Paterson, Kenny =
<Kenny.Paterson@rhul.ac.uk <mailto:Kenny.Paterson@rhul.ac.uk> > wrote:

Hi Antonio,

On 24/06/2016 14:40, "Antonio Sanso" <asanso@adobe.com =
<mailto:asanso@adobe.com> > wrote:

>hi Kenny
>
>On Jun 24, 2016, at 3:24 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk =
<mailto:Kenny.Paterson@rhul.ac.uk> >
>wrote:
>
>>
>> In your scenario it looks like you are trying to use the shared =
secret S
>> to provide authentication of the sender to the receiver, along with
>> confidentiality for the message being delivered
>
>to me this seems a pretty common scenario.
>If I am not completely wrong in my understanding is for example what =
JWE
>does [0] and [1] for example
>
>regards
>
>antonio
>
>[0] https://tools.ietf.org/html/rfc7516#page-32
>[1] https://tools.ietf.org/html/rfc7516#page-36

Key transport via PKE using, for example RSA-OAEP, is a certainly an
option in JWE. But what Daniel describes has an additional symmetric key
("S") for the purposes of authentication, I think, and does not strictly
match anything I've seen in the JSON RFCs. But let's allow Daniel to
answer on that one...

Cheers

Kenny

=20

I'm not familiar with JWE so I can't comment on this protocol.

A typical scenario where S can't be used directly as key are low entropy =
secrets

such as passwords.

=20

One motivation for me  to look into this is the question whether =
AES-GCM-SIV

could be used as a drop-in replacement for AES-GCM without doing an =
additional

security review of the resulting protocol.

So far, I'm not convinced that this can be done in all cases.

=20

[JLS] This is probably not a good example for doing this.  I would agree =
that having separate keys for this is not a good way to approach this =
situation.  Just not having AD is a better way even if you have to =
generate the key.

=20

JWE is a poor example of this because it is difficult to generate =
situations where there is not additional data generated by JWE itself =
for encrypting the content.  Also, if one is interested in doing a =
degree of origination one would either directly generate the key, in =
which case generating the authentication key would be part of the =
process or one would want to use the value in the KDF step rather than =
having an indirection involved.  Doing the indirection almost guarantees =
that you need to have additional steps in the process to guarantee that =
origination is going to be part of the process.

=20

Jim

=20

=20

=20

>
>> . In this scenario, it's
>> not clear to me why the sender and receiver would not just use S as =
an
>> AES-GCM-SIV key to transport a session key K, and then use K in =
another
>> instance of AES-GCM-SIV to transport the desired messages. Of course,
>>this
>> construction would not prevent replay attacks; for that you'd need
>> additional mechanisms, like incorporating a counter into the AD of =
the
>> key-transporting AEAD.
>>
>> But perhaps one should not underestimate the ingenuity of =
implementers
>>in
>> wanting to use public key encryption. Is this where you are coming =
from?
>>
>> On a related point, my view is that it is a disbenefit that the
>> AES-GCM-SIV proposal has two separate keys (one for encryption, the
>>other
>> for authentication) as inputs. That's not the AEAD interface that we
>>have
>> raised our implementers on. I raised this point at the CFRG meeting =
in
>> Vienna back in May. Simply concatenating the two keys in the current
>> proposal into one would address this issue, but not the one you raise
>>(if
>> I understand it correctly).
>>
>> (The minutes of the meeting can be found here:
>>
>>https://www.ietf.org/proceedings/interim-2016-cfrg-01/minutes/minutes-i=
nt
>>er
>> im-2016-cfrg-1)
>>
>> Regards
>>
>> Kenny
>>
>>
>> On 24/06/2016 12:35, "Cfrg on behalf of Daniel Bleichenbacher"
>> <cfrg-bounces@irtf.org <mailto:cfrg-bounces@irtf.org>  on behalf of =
bleichen@google.com <mailto:bleichen@google.com> > wrote:
>>
>>> I'm wondering what can or should be expected about the security of =
the
>>> additional data.
>>>
>>>
>>> In particular, I'm considering the following scenario:
>>>
>>>
>>> Sender and receiver share a secret S.
>>> The sender knows the public key of the receiver and the receiver of
>>> course knows the private key.
>>> They use a hybrid encryption as follows:
>>>
>>>
>>> The sender chooses a new AES-GCM-SIV key, encrypts his message
>>> and includes S as additional data. The AES-GCM-SIV key is wrapped =
with
>>> the receivers public key and the wrapped key and ciphertext are sent =
to
>>> the receiver.
>>>
>>>
>>> Here an attacker can use that AES-GCM-SIV allows to select a key =
such
>>> that the
>>> element H used for POLYVAL is 0. In this case it would not be =
necessary
>>> for the sender
>>> to know S to construct a ciphertext that validates.
>>> A similar attack using AES-GCM seems much harder since the value H =
for
>>> the GHASH
>>> is obtained by encrypting 0 and thus I'm not aware of a way to do =
the
>>> same thing here.
>>>
>>>
>>> The attack does of course not violate any of the guarantees claimed.
>>> However, in the industry lots of ad hoc protocols are designed =
without
>>> proper security reductions and hence it seems a bit scary to me to
>>>allow
>>> this kind of "weak" keys. And since abuse resistance is
>>> one of the goals it might be a good idea to avoid such type of =
abuses.
>>>
>>>
>>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org <mailto:Cfrg@irtf.org>=20
>> https://www.irtf.org/mailman/listinfo/cfrg
>

=20


------=_NextPart_000_077D_01D1CE26.587CFB80
Content-Type: text/html;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.hoenzb
	{mso-style-name:hoenzb;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><div style=3D'border:none;border-left:solid blue =
1.5pt;padding:0in 0in 0in 4.0pt'><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span><=
/b><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
Cfrg [mailto:cfrg-bounces@irtf.org] <b>On Behalf Of </b>Daniel =
Bleichenbacher<br><b>Sent:</b> Friday, June 24, 2016 7:15 =
AM<br><b>To:</b> Paterson, Kenny =
&lt;Kenny.Paterson@rhul.ac.uk&gt;<br><b>Cc:</b> =
cfrg@ietf.org<br><b>Subject:</b> Re: [Cfrg] AES-GCM-SIV security of the =
additional data<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>On Fri, =
Jun 24, 2016 at 3:53 PM, Paterson, Kenny &lt;<a =
href=3D"mailto:Kenny.Paterson@rhul.ac.uk" =
target=3D"_blank">Kenny.Paterson@rhul.ac.uk</a>&gt; =
wrote:<o:p></o:p></p><blockquote style=3D'border:none;border-left:solid =
#CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><p class=3DMsoNormal>Hi =
Antonio,<br><br>On 24/06/2016 14:40, &quot;Antonio Sanso&quot; &lt;<a =
href=3D"mailto:asanso@adobe.com">asanso@adobe.com</a>&gt; =
wrote:<br><br>&gt;hi Kenny<br>&gt;<br>&gt;On Jun 24, 2016, at 3:24 PM, =
Paterson, Kenny &lt;<a =
href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&g=
t;<br>&gt;wrote:<br>&gt;<br>&gt;&gt;<br>&gt;&gt; In your scenario it =
looks like you are trying to use the shared secret S<br>&gt;&gt; to =
provide authentication of the sender to the receiver, along =
with<br>&gt;&gt; confidentiality for the message being =
delivered<br>&gt;<br>&gt;to me this seems a pretty common =
scenario.<br>&gt;If I am not completely wrong in my understanding is for =
example what JWE<br>&gt;does [0] and [1] for =
example<br>&gt;<br>&gt;regards<br>&gt;<br>&gt;antonio<br>&gt;<br>&gt;[0] =
<a href=3D"https://tools.ietf.org/html/rfc7516#page-32" =
target=3D"_blank">https://tools.ietf.org/html/rfc7516#page-32</a><br>&gt;=
[1] <a href=3D"https://tools.ietf.org/html/rfc7516#page-36" =
target=3D"_blank">https://tools.ietf.org/html/rfc7516#page-36</a><br><br>=
Key transport via PKE using, for example RSA-OAEP, is a certainly =
an<br>option in JWE. But what Daniel describes has an additional =
symmetric key<br>(&quot;S&quot;) for the purposes of authentication, I =
think, and does not strictly<br>match anything I've seen in the JSON =
RFCs. But let's allow Daniel to<br>answer on that =
one...<br><br>Cheers<br><span style=3D'color:#888888'><br><span =
class=3Dhoenzb>Kenny</span></span><o:p></o:p></p></blockquote><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>I'm not familiar with JWE so I can't comment on this =
protocol.<o:p></o:p></p></div><div><p class=3DMsoNormal>A typical =
scenario where S can't be used directly as key are low entropy =
secrets<o:p></o:p></p></div><div><p class=3DMsoNormal>such as =
passwords.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>One motivation for me &nbsp;to look into this is the =
question whether AES-GCM-SIV<o:p></o:p></p></div><div><p =
class=3DMsoNormal>could be used as a drop-in replacement for AES-GCM =
without doing an additional<o:p></o:p></p></div><div><p =
class=3DMsoNormal>security review of the resulting =
protocol.<o:p></o:p></p></div><div><p class=3DMsoNormal>So far, I'm not =
convinced that this can be done in all cases.<o:p></o:p></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>[JLS] This =
is probably not a good example for doing this.=C2=A0 I would agree that =
having separate keys for this is not a good way to approach this =
situation.=C2=A0 Just not having AD is a better way even if you have to =
generate the key.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>JWE is a =
poor example of this because it is difficult to generate situations =
where there is not additional data generated by JWE itself for =
encrypting the content.=C2=A0 Also, if one is interested in doing a =
degree of origination one would either directly generate the key, in =
which case generating the authentication key would be part of the =
process or one would want to use the value in the KDF step rather than =
having an indirection involved.=C2=A0 Doing the indirection almost =
guarantees that you need to have additional steps in the process to =
guarantee that origination is going to be part of the =
process.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>Jim<o:p></o:p=
></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p></div><div><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p =
class=3DMsoNormal><span =
style=3D'color:#222222'>&nbsp;</span><o:p></o:p></p></div></div></blockqu=
ote><blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>&gt;<br>&gt;&gt; . In this scenario, =
it's<br>&gt;&gt; not clear to me why the sender and receiver would not =
just use S as an<br>&gt;&gt; AES-GCM-SIV key to transport a session key =
K, and then use K in another<br>&gt;&gt; instance of AES-GCM-SIV to =
transport the desired messages. Of course,<br>&gt;&gt;this<br>&gt;&gt; =
construction would not prevent replay attacks; for that you'd =
need<br>&gt;&gt; additional mechanisms, like incorporating a counter =
into the AD of the<br>&gt;&gt; key-transporting =
AEAD.<br>&gt;&gt;<br>&gt;&gt; But perhaps one should not underestimate =
the ingenuity of implementers<br>&gt;&gt;in<br>&gt;&gt; wanting to use =
public key encryption. Is this where you are coming =
from?<br>&gt;&gt;<br>&gt;&gt; On a related point, my view is that it is =
a disbenefit that the<br>&gt;&gt; AES-GCM-SIV proposal has two separate =
keys (one for encryption, the<br>&gt;&gt;other<br>&gt;&gt; for =
authentication) as inputs. That's not the AEAD interface that =
we<br>&gt;&gt;have<br>&gt;&gt; raised our implementers on. I raised this =
point at the CFRG meeting in<br>&gt;&gt; Vienna back in May. Simply =
concatenating the two keys in the current<br>&gt;&gt; proposal into one =
would address this issue, but not the one you =
raise<br>&gt;&gt;(if<br>&gt;&gt; I understand it =
correctly).<br>&gt;&gt;<br>&gt;&gt; (The minutes of the meeting can be =
found here:<br>&gt;&gt;<br>&gt;&gt;<a =
href=3D"https://www.ietf.org/proceedings/interim-2016-cfrg-01/minutes/min=
utes-int" =
target=3D"_blank">https://www.ietf.org/proceedings/interim-2016-cfrg-01/m=
inutes/minutes-int</a><br>&gt;&gt;er<br>&gt;&gt; =
im-2016-cfrg-1)<br>&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt;<br>&gt;&gt; =
Kenny<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On 24/06/2016 12:35, =
&quot;Cfrg on behalf of Daniel Bleichenbacher&quot;<br>&gt;&gt; &lt;<a =
href=3D"mailto:cfrg-bounces@irtf.org">cfrg-bounces@irtf.org</a> on =
behalf of <a =
href=3D"mailto:bleichen@google.com">bleichen@google.com</a>&gt; =
wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; I'm wondering what can or should be =
expected about the security of the<br>&gt;&gt;&gt; additional =
data.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; In particular, I'm =
considering the following =
scenario:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Sender and =
receiver share a secret S.<br>&gt;&gt;&gt; The sender knows the public =
key of the receiver and the receiver of<br>&gt;&gt;&gt; course knows the =
private key.<br>&gt;&gt;&gt; They use a hybrid encryption as =
follows:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; The sender =
chooses a new AES-GCM-SIV key, encrypts his message<br>&gt;&gt;&gt; and =
includes S as additional data. The AES-GCM-SIV key is wrapped =
with<br>&gt;&gt;&gt; the receivers public key and the wrapped key and =
ciphertext are sent to<br>&gt;&gt;&gt; the =
receiver.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Here an =
attacker can use that AES-GCM-SIV allows to select a key =
such<br>&gt;&gt;&gt; that the<br>&gt;&gt;&gt; element H used for POLYVAL =
is 0. In this case it would not be necessary<br>&gt;&gt;&gt; for the =
sender<br>&gt;&gt;&gt; to know S to construct a ciphertext that =
validates.<br>&gt;&gt;&gt; A similar attack using AES-GCM seems much =
harder since the value H for<br>&gt;&gt;&gt; the GHASH<br>&gt;&gt;&gt; =
is obtained by encrypting 0 and thus I'm not aware of a way to do =
the<br>&gt;&gt;&gt; same thing =
here.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; The attack does of =
course not violate any of the guarantees claimed.<br>&gt;&gt;&gt; =
However, in the industry lots of ad hoc protocols are designed =
without<br>&gt;&gt;&gt; proper security reductions and hence it seems a =
bit scary to me to<br>&gt;&gt;&gt;allow<br>&gt;&gt;&gt; this kind of =
&quot;weak&quot; keys. And since abuse resistance is<br>&gt;&gt;&gt; one =
of the goals it might be a good idea to avoid such type of =
abuses.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&g=
t;&gt; _______________________________________________<br>&gt;&gt; Cfrg =
mailing list<br>&gt;&gt; <a =
href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>&gt;&gt; <a =
href=3D"https://www.irtf.org/mailman/listinfo/cfrg" =
target=3D"_blank">https://www.irtf.org/mailman/listinfo/cfrg</a><br>&gt;<=
o:p></o:p></p></div></div></blockquote></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></body></h=
tml>
------=_NextPart_000_077D_01D1CE26.587CFB80--


From nobody Fri Jun 24 15:52:23 2016
Return-Path: <prvs=59834099b5=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 CE96112D1DE for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 15:52:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.624
X-Spam-Level: 
X-Spam-Status: No, score=-5.624 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, 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 ZtOKdHegyqdI for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 15:52:19 -0700 (PDT)
Received: from llmx2.ll.mit.edu (LLMX2.LL.MIT.EDU [129.55.12.48]) by ietfa.amsl.com (Postfix) with ESMTP id DD026127078 for <cfrg@ietf.org>; Fri, 24 Jun 2016 15:52:18 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by llmx2.ll.mit.edu (unknown) with ESMTP id u5OMlO3G029492; Fri, 24 Jun 2016 18:47:24 -0400
From: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
To: Jim Schaad <ietf@augustcellars.com>, "'Daniel Bleichenbacher'" <bleichen@google.com>, "'Paterson, Kenny'" <Kenny.Paterson@rhul.ac.uk>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AdHOargWqD25y0zmskKltSj3U+rSKQ==
Date: Fri, 24 Jun 2016 22:49:52 +0000
Message-ID: <20160624224958.18296913.31160.76075@ll.mit.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============1311863122=="
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-24_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=inbound_notspam policy=inbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606240242
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/EQwQZKiP1VTqzGpotcZNmSDCxqA>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 24 Jun 2016 22:52:23 -0000

--===============1311863122==
Content-Type: multipart/alternative; boundary="===============1563677424=="
MIME-Version: 1.0

--===============1563677424==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

SSBkb24ndCB0aGluayBJIHVuZGVyc3RhbmQgdGhpcyBlbnRpcmUgdGhyZWFkLCBzdGFydGluZyB3
aXRoIHRoZSBwZXJjZWl2ZWQgdGhyZWF0LgoKV2hhdCBzZW5zZSBkb2VzIGl0IG1ha2UgdG8g4oCO
cGFzcyBzb21ldGhpbmcgY29uZmlkZW50aWFsIGFzIEF1dGhlbnRpY2F0ZWQgKGJ1dCBOT1QgZW5j
cnlwdGVkKSBEYXRhPyBXaGF0IHNlbnNlIGRvZXMgaXQgbWFrZSBmb3IgdGhlIHNlbmRlciB0byBk
ZWxpYmVyYXRlbHkgc2VuZCBBdXRoZW50aWNhdGVkIERhdGEgdGhhdCBjYW5ub3QgYmUgYXV0aGVu
dGljYXRlZCAoZXNwZWNpYWxseSB3aXRoaW4gc3ltbWV0cmljIGVuY3J5cHRpb24gc2V0dGluZywg
d2hlcmUgbm9uLXJlcHVkaWF0aW9uIGRvZXNuJ3QgYXBwbHkgYW55d2F5KT8gRXRjLgoKUmVnYXJk
bGVzcywgdGhlIGxhdGVzdCBwcm9wb3NhbCBieSBTaGF5IHNlZW1zIHRvIGVsaW1pbmF0ZSB0aGlz
IHRocmVhdCwgaG93ZXZlciBhcnRpZmljaWFsIGl0IG1heSBiZS4KClNlbnTCoGZyb23CoG15wqBC
bGFja0JlcnJ5wqAxMMKgc21hcnRwaG9uZcKgb27CoHRoZSBWZXJpem9uwqBXaXJlbGVzc8KgNEfC
oExURcKgbmV0d29yay4KRnJvbTogSmltIFNjaGFhZApTZW50OiBGcmlkYXksIEp1bmUgMjQsIDIw
MTYgMTc6NDAKVG86ICdEYW5pZWwgQmxlaWNoZW5iYWNoZXInOyAnUGF0ZXJzb24sIEtlbm55JwpD
YzogY2ZyZ0BpZXRm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BtaWdodCBiZSBhIGdvb2QgaWRlYSB0byBhdm9pZCBzdWNoIHR5cGUg
b2YgYWJ1c2VzLgo+Pj4KPj4+Cj4+Pgo+Pgo+PiBfX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fXwo+PiBDZnJnIG1haWxpbmcgbGlzdAo+PiBDZnJnQGlydGYub3Jn
Cj4+IGh0dHBzOi8vd3d3LmlydGYub3JnL21haWxtYW4vbGlzdGluZm8vY2ZyZwo+CgrCoAoK

--===============1563677424==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head></head><body lang=3D"en-US" link=3D"blue" vlink=3D"purple" styl=
e=3D"background-color: rgb(255, 255, 255); line-height: initial;">         =
                                                                           =
  <div style=3D"width: 100%; font-size: initial; font-family: Calibri, 'Sla=
te Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initi=
al; background-color: rgb(255, 255, 255);">I don't think I understand this =
entire thread, starting with the perceived threat.</div>                   =
                                                                           =
                                       <div style=3D"width: 100%; font-size=
: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color=
: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 25=
5);"><br></div><div style=3D"width: 100%; font-size: initial; font-family: =
Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text=
-align: initial; background-color: rgb(255, 255, 255);">What sense does it =
make to =E2=80=8Epass something confidential as Authenticated (but NOT encr=
ypted) Data? What sense does it make for the sender to deliberately send Au=
thenticated Data that cannot be authenticated (especially within symmetric =
encryption setting, where non-repudiation doesn't apply anyway)? Etc.</div>=
<div style=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slate=
 Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial=
; background-color: rgb(255, 255, 255);"><br></div><div style=3D"width: 100=
%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-=
serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(=
255, 255, 255);">Regardless, the latest proposal by Shay seems to eliminate=
 this threat, however artificial it may be.</div><div style=3D"width: 100%;=
 font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-se=
rif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(25=
5, 255, 255);"><br></div>                                                  =
                                                                           =
                                                                      <div =
style=3D"font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif,=
 sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color=
: rgb(255, 255, 255);">Sent&nbsp;from&nbsp;my&nbsp;BlackBerry&nbsp;10&nbsp;=
smartphone&nbsp;on&nbsp;the&nbsp;Verizon&nbsp;Wireless&nbsp;4G&nbsp;LTE&nbs=
p;network.</div>                                                           =
                                                                           =
                                            <table width=3D"100%" style=3D"=
background-color:white;border-spacing:0px;"> <tbody><tr><td colspan=3D"2" s=
tyle=3D"font-size: initial; text-align: initial; background-color: rgb(255,=
 255, 255);">                           <div style=3D"border-style: solid n=
one none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padd=
ing: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-s=
ize: 10pt;">  <div><b>From: </b>Jim Schaad</div><div><b>Sent: </b>Friday, J=
une 24, 2016 17:40</div><div><b>To: </b>'Daniel Bleichenbacher'; 'Paterson,=
 Kenny'</div><div><b>Cc: </b>cfrg@ietf.org</div><div><b>Subject: </b>Re: [C=
frg] AES-GCM-SIV security of the additional data</div></div></td></tr></tbo=
dy></table><div style=3D"border-style: solid none none; border-top-color: r=
gb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: i=
nitial; background-color: rgb(255, 255, 255);"></div><br><div id=3D"_origin=
alContent" style=3D"">

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
<style>
<!--
@font-face
	{font-family:"Cambria Math"}
@font-face
	{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline}
p.msonormal0, li.msonormal0, div.msonormal0
	{margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif}
span.hoenzb
	{}
span.EmailStyle19
	{font-family:"Calibri",sans-serif;
	color:windowtext}
.MsoChpDefault
	{font-family:"Calibri",sans-serif}
@page WordSection1
	{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
	{}
-->
</style>


<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">&nbsp;</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">&nbsp;</span></p>
<div style=3D"border:none; border-left:solid blue 1.5pt; padding:0in 0in 0i=
n 4.0pt">
<div>
<div style=3D"border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0i=
n 0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:11.0pt; font-family:&quo=
t;Calibri&quot;,sans-serif">From:</span></b><span style=3D"font-size:11.0pt=
; font-family:&quot;Calibri&quot;,sans-serif"> Cfrg [mailto:cfrg-bounces@ir=
tf.org]
<b>On Behalf Of </b>Daniel Bleichenbacher<br>
<b>Sent:</b> Friday, June 24, 2016 7:15 AM<br>
<b>To:</b> Paterson, Kenny &lt;Kenny.Paterson@rhul.ac.uk&gt;<br>
<b>Cc:</b> cfrg@ietf.org<br>
<b>Subject:</b> Re: [Cfrg] AES-GCM-SIV security of the additional data</spa=
n></p>
</div>
</div>
<p class=3D"MsoNormal">&nbsp;</p>
<div>
<p class=3D"MsoNormal">&nbsp;</p>
<div>
<p class=3D"MsoNormal">&nbsp;</p>
<div>
<p class=3D"MsoNormal">On Fri, Jun 24, 2016 at 3:53 PM, Paterson, Kenny &lt=
;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>=
&gt; wrote:</p>
<blockquote style=3D"border:none; border-left:solid #CCCCCC 1.0pt; padding:=
0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<p class=3D"MsoNormal">Hi Antonio,<br>
<br>
On 24/06/2016 14:40, "Antonio Sanso" &lt;<a href=3D"mailto:asanso@adobe.com=
">asanso@adobe.com</a>&gt; wrote:<br>
<br>
&gt;hi Kenny<br>
&gt;<br>
&gt;On Jun 24, 2016, at 3:24 PM, Paterson, Kenny &lt;<a href=3D"mailto:Kenn=
y.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>
&gt;wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; In your scenario it looks like you are trying to use the shared se=
cret S<br>
&gt;&gt; to provide authentication of the sender to the receiver, along wit=
h<br>
&gt;&gt; confidentiality for the message being delivered<br>
&gt;<br>
&gt;to me this seems a pretty common scenario.<br>
&gt;If I am not completely wrong in my understanding is for example what JW=
E<br>
&gt;does [0] and [1] for example<br>
&gt;<br>
&gt;regards<br>
&gt;<br>
&gt;antonio<br>
&gt;<br>
&gt;[0] <a href=3D"https://tools.ietf.org/html/rfc7516#page-32" target=3D"_=
BLANK">https://tools.ietf.org/html/rfc7516#page-32</a><br>
&gt;[1] <a href=3D"https://tools.ietf.org/html/rfc7516#page-36" target=3D"_=
BLANK">https://tools.ietf.org/html/rfc7516#page-36</a><br>
<br>
Key transport via PKE using, for example RSA-OAEP, is a certainly an<br>
option in JWE. But what Daniel describes has an additional symmetric key<br>
("S") for the purposes of authentication, I think, and does not strictly<br>
match anything I've seen in the JSON RFCs. But let's allow Daniel to<br>
answer on that one...<br>
<br>
Cheers<br>
<span style=3D"color:#888888"><br>
<span class=3D"hoenzb">Kenny</span></span></p>
</blockquote>
<div>
<p class=3D"MsoNormal">&nbsp;</p>
</div>
<div>
<p class=3D"MsoNormal">I'm not familiar with JWE so I can't comment on this=
 protocol.</p>
</div>
<div>
<p class=3D"MsoNormal">A typical scenario where S can't be used directly as=
 key are low entropy secrets</p>
</div>
<div>
<p class=3D"MsoNormal">such as passwords.</p>
</div>
<div>
<p class=3D"MsoNormal">&nbsp;</p>
</div>
<div>
<p class=3D"MsoNormal">One motivation for me &nbsp;to look into this is the=
 question whether AES-GCM-SIV</p>
</div>
<div>
<p class=3D"MsoNormal">could be used as a drop-in replacement for AES-GCM w=
ithout doing an additional</p>
</div>
<div>
<p class=3D"MsoNormal">security review of the resulting protocol.</p>
</div>
<div>
<p class=3D"MsoNormal">So far, I'm not convinced that this can be done in a=
ll cases.</p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">&nbsp;</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">[JLS] This is probably not a good example for doin=
g this.&nbsp; I would agree that having separate keys for this is not a goo=
d way to approach this situation.&nbsp; Just not having
 AD is a better way even if you have to generate the key.</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">&nbsp;</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">JWE is a poor example of this because it is diffic=
ult to generate situations where there is not additional data generated by =
JWE itself for encrypting the content.&nbsp; Also,
 if one is interested in doing a degree of origination one would either dir=
ectly generate the key, in which case generating the authentication key wou=
ld be part of the process or one would want to use the value in the KDF ste=
p rather than having an indirection
 involved.&nbsp; Doing the indirection almost guarantees that you need to h=
ave additional steps in the process to guarantee that origination is going =
to be part of the process.</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">&nbsp;</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">Jim</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt; font-family:&quot;C=
alibri&quot;,sans-serif">&nbsp;</span></p>
</div>
<div>
<p class=3D"MsoNormal">&nbsp;</p>
</div>
<blockquote style=3D"border:none; border-left:solid #CCCCCC 1.0pt; padding:=
0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"color:#222222">&nbsp;</span></p>
</div>
</div>
</blockquote>
<blockquote style=3D"border:none; border-left:solid #CCCCCC 1.0pt; padding:=
0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">&gt;<br>
&gt;&gt; . In this scenario, it's<br>
&gt;&gt; not clear to me why the sender and receiver would not just use S a=
s an<br>
&gt;&gt; AES-GCM-SIV key to transport a session key K, and then use K in an=
other<br>
&gt;&gt; instance of AES-GCM-SIV to transport the desired messages. Of cour=
se,<br>
&gt;&gt;this<br>
&gt;&gt; construction would not prevent replay attacks; for that you'd need=
<br>
&gt;&gt; additional mechanisms, like incorporating a counter into the AD of=
 the<br>
&gt;&gt; key-transporting AEAD.<br>
&gt;&gt;<br>
&gt;&gt; But perhaps one should not underestimate the ingenuity of implemen=
ters<br>
&gt;&gt;in<br>
&gt;&gt; wanting to use public key encryption. Is this where you are coming=
 from?<br>
&gt;&gt;<br>
&gt;&gt; On a related point, my view is that it is a disbenefit that the<br>
&gt;&gt; AES-GCM-SIV proposal has two separate keys (one for encryption, th=
e<br>
&gt;&gt;other<br>
&gt;&gt; for authentication) as inputs. That's not the AEAD interface that =
we<br>
&gt;&gt;have<br>
&gt;&gt; raised our implementers on. I raised this point at the CFRG meetin=
g in<br>
&gt;&gt; Vienna back in May. Simply concatenating the two keys in the curre=
nt<br>
&gt;&gt; proposal into one would address this issue, but not the one you ra=
ise<br>
&gt;&gt;(if<br>
&gt;&gt; I understand it correctly).<br>
&gt;&gt;<br>
&gt;&gt; (The minutes of the meeting can be found here:<br>
&gt;&gt;<br>
&gt;&gt;<a href=3D"https://www.ietf.org/proceedings/interim-2016-cfrg-01/mi=
nutes/minutes-int" target=3D"_BLANK">https://www.ietf.org/proceedings/inter=
im-2016-cfrg-01/minutes/minutes-int</a><br>
&gt;&gt;er<br>
&gt;&gt; im-2016-cfrg-1)<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; Kenny<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 24/06/2016 12:35, "Cfrg on behalf of Daniel Bleichenbacher"<br>
&gt;&gt; &lt;<a href=3D"mailto:cfrg-bounces@irtf.org">cfrg-bounces@irtf.org=
</a> on behalf of
<a href=3D"mailto:bleichen@google.com">bleichen@google.com</a>&gt; wrote:<b=
r>
&gt;&gt;<br>
&gt;&gt;&gt; I'm wondering what can or should be expected about the securit=
y of the<br>
&gt;&gt;&gt; additional data.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; In particular, I'm considering the following scenario:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Sender and receiver share a secret S.<br>
&gt;&gt;&gt; The sender knows the public key of the receiver and the receiv=
er of<br>
&gt;&gt;&gt; course knows the private key.<br>
&gt;&gt;&gt; They use a hybrid encryption as follows:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The sender chooses a new AES-GCM-SIV key, encrypts his message=
<br>
&gt;&gt;&gt; and includes S as additional data. The AES-GCM-SIV key is wrap=
ped with<br>
&gt;&gt;&gt; the receivers public key and the wrapped key and ciphertext ar=
e sent to<br>
&gt;&gt;&gt; the receiver.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here an attacker can use that AES-GCM-SIV allows to select a k=
ey such<br>
&gt;&gt;&gt; that the<br>
&gt;&gt;&gt; element H used for POLYVAL is 0. In this case it would not be =
necessary<br>
&gt;&gt;&gt; for the sender<br>
&gt;&gt;&gt; to know S to construct a ciphertext that validates.<br>
&gt;&gt;&gt; A similar attack using AES-GCM seems much harder since the val=
ue H for<br>
&gt;&gt;&gt; the GHASH<br>
&gt;&gt;&gt; is obtained by encrypting 0 and thus I'm not aware of a way to=
 do the<br>
&gt;&gt;&gt; same thing here.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The attack does of course not violate any of the guarantees cl=
aimed.<br>
&gt;&gt;&gt; However, in the industry lots of ad hoc protocols are designed=
 without<br>
&gt;&gt;&gt; proper security reductions and hence it seems a bit scary to m=
e to<br>
&gt;&gt;&gt;allow<br>
&gt;&gt;&gt; this kind of "weak" keys. And since abuse resistance is<br>
&gt;&gt;&gt; one of the goals it might be a good idea to avoid such type of=
 abuses.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;&gt; <a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" target=3D"_=
BLANK">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt;</p>
</div>
</div>
</blockquote>
</div>
<p class=3D"MsoNormal">&nbsp;</p>
</div>
</div>
</div>
</div>


<br><!--end of _originalContent --></div></body></html>
--===============1563677424==--

--===============1311863122==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBglghkgBZQMEAgEwgAYJKoZIhvcNAQcBAACggg7NMIIE
6jCCA9KgAwIBAgIKMz1Y1wAAAABunjANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0G
A1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1U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17
KiobbYD/pOAY61DBu+3wquT/KFUnAOPDMs+t2f/wKaUhX7jNeBygrSw6b9cy7ujJxNDwzv5EFn6r
LjAgfs2RT44LhI+iHY1B5sV8bGB2q+DyZK62B2K+RvawqhWOoxulEk+h9bjrNqm5+I1BtrkrBtDG
6J+U2WQiCQeN35dlBcrpnRVX2bjhmMGbm48SvDLp+YN6LlDVxiLAIR8AVJKKUmeHbzLxXQpvjViU
YpXgD+9uzlzdPxGlZ40hh7VeJQ2uf5j+REETwTIJHTXmZC8IauTTBhmT8r7OvYsaqTd8Qgzy+Z/R
y+n7g9FwKZnodXozAAAAAAAA

--===============1311863122==--


From nobody Fri Jun 24 18:43:07 2016
Return-Path: <alangley@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 9DA7912D16F for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 18:43:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.401
X-Spam-Level: 
X-Spam-Status: No, score=-2.401 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.198, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 GvNaj3h6EFZZ for <cfrg@ietfa.amsl.com>; Fri, 24 Jun 2016 18:43:04 -0700 (PDT)
Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::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 842E812D0C0 for <cfrg@ietf.org>; Fri, 24 Jun 2016 18:43:04 -0700 (PDT)
Received: by mail-qt0-x233.google.com with SMTP id m2so1848082qtd.1 for <cfrg@ietf.org>; Fri, 24 Jun 2016 18:43:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Yygh3zDEQ7jsH890uQB8Wy1TLKNysjVrIc5xht99i4s=; b=Eyfwi4RaKDouzR4bOWyug688mlNgu/Mmtw7i7RlbQvfFUZw91Sv4sWNndy2NRVjbbN xjmNR1is4s16HrY9zrJaj1mx4cl/OBUsfnHFkwcnlxMf7tKmmjCgc6gJj/6CwgUIQEme 6IwvFEVgZ8UMOSeuKUFHwsg32+pt9ZkchyS7S3jvKP3lQCgZWVx1cZv2570sfVRmgMSv hSeUsTJjRB0JqV+nr7fyZs6N/VOMAOeudXd1kfsYoOOBtxi2dn1R//RWI7fPf4A+i63R IrMZNKAUHVqQ2mHorm9QmWhHObM3Rs6QvE3/Fni+Y/6/WHe0vQAl2BjmdVvAzj/Awg8S NXXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Yygh3zDEQ7jsH890uQB8Wy1TLKNysjVrIc5xht99i4s=; b=ihUlWdfuWdLx+86/9mz+oSAUSVGdQeIk7EGQTdBtEqwcEXE3KVC4kPhdLJaPCp9fbr 7PgcFCLollji19xVrf5kJcVESTuJebOw++NpOh5jatRhNwTnKXxlZ31uJ9wp1ZH3hB1j Qsw3LZsUWtE+A0qgTE4Lku/urQHQw/1fqJ97NFDOuu/f5tNR2phX8RzsAiO2E8LJ14HG ifPgvU8aFiB5Yo6LmZIib9QxeQWo1mHVLrrdmIS2SoB7ASjsGAmzvkW2bAG5q8QsqxYc 1UHSyMT+vUnS+COmWRoBsEYaD3grdH0xHnL4b3upOmn/A7jFVBIUd5MT+rJZRjVysPwu YwoA==
X-Gm-Message-State: ALyK8tJb+toWRK+iso6XzNx6wmoiSO6BHhColsyNaK5FIRET6aSXcLvmkscD+Qy2f+Sr/P5ru6hPqE4qieykmQ==
X-Received: by 10.200.46.155 with SMTP id h27mr8404096qta.59.1466818983529; Fri, 24 Jun 2016 18:43:03 -0700 (PDT)
MIME-Version: 1.0
Sender: alangley@gmail.com
Received: by 10.200.36.234 with HTTP; Fri, 24 Jun 2016 18:43:02 -0700 (PDT)
In-Reply-To: <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com> <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk>
From: Adam Langley <agl@imperialviolet.org>
Date: Fri, 24 Jun 2016 18:43:02 -0700
X-Google-Sender-Auth: K3k6knLC2LQ_cx4XCdFiDSpWtGo
Message-ID: <CAMfhd9ULAqwr1cVe-hStsBf_xdorwQtmS+=Ui32iW6ErHBci6g@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/uC036uStNC4xd5_OKqw7R1CNdo8>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 25 Jun 2016 01:43:06 -0000

On Fri, Jun 24, 2016 at 6:24 AM, Paterson, Kenny
<Kenny.Paterson@rhul.ac.uk> wrote:
> On a related point, my view is that it is a disbenefit that the
> AES-GCM-SIV proposal has two separate keys (one for encryption, the other
> for authentication) as inputs. That's not the AEAD interface that we have
> raised our implementers on. I raised this point at the CFRG meeting in
> Vienna back in May. Simply concatenating the two keys in the current
> proposal into one would address this issue, but not the one you raise (if
> I understand it correctly).

The two keys are already concatenated in the draft, or else I
misunderstood your point:
https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-01#section-6

"Since the definition of an AEAD requires that the key be a single
value we define AEAD_AES_128_GCM_SIV to take a 32-byte key: the first
16 bytes of which are used as the authentication key and the remaining
16 bytes are used as the AES key. Likewise AEAD_AES_256_GCM_SIV takes
an 48-byte key: the first 16 bytes are again the authentication key
and the remaining 32 bytes is the AES key."


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Sat Jun 25 01:41:14 2016
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 C28CF12D197 for <cfrg@ietfa.amsl.com>; Sat, 25 Jun 2016 01:41:12 -0700 (PDT)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_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 rETxRqAeW1KW for <cfrg@ietfa.amsl.com>; Sat, 25 Jun 2016 01:41:10 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0648.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe04::648]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC89712D176 for <cfrg@ietf.org>; Sat, 25 Jun 2016 01:41:09 -0700 (PDT)
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; bh=I/b0x04VWoDCnVjTljMGJcvJhXoV4O1Vv1OKd73C9Qk=; b=ST6ZJf+6MTSNqNe/Z9U+zjhbp/hL4Ax2j6BWQZmopzLqdzUD230w1rsf+77uS3wUVadpi0RSU9tCjk60ltSDFGmuY+UjvnFX9hKq8HeMv5pi5jvx7CNpmQQU8+FJW/RfjtPw4q0isyDfO20vEXkiqSos7UK326oCCcpn0R+nbfw=
Received: from AM4PR03MB1811.eurprd03.prod.outlook.com (10.167.88.147) by AM4PR03MB1812.eurprd03.prod.outlook.com (10.167.88.148) with Microsoft SMTP Server (TLS) id 15.1.523.12; Sat, 25 Jun 2016 08:40:51 +0000
Received: from AM4PR03MB1811.eurprd03.prod.outlook.com ([10.167.88.147]) by AM4PR03MB1811.eurprd03.prod.outlook.com ([10.167.88.147]) with mapi id 15.01.0523.019; Sat, 25 Jun 2016 08:40:51 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Adam Langley <agl@imperialviolet.org>
Thread-Topic: [Cfrg] AES-GCM-SIV security of the additional data
Thread-Index: AQHRzgyMNFkKTSqpJkGxUgqboNSngJ/4rLoAgAC8/gCAAHS91Q==
Date: Sat, 25 Jun 2016 08:40:51 +0000
Message-ID: <46E4192A-3518-4E51-850C-667E710098C9@rhul.ac.uk>
References: <CAPqF7e0QsCPn_OSKEry60Hm9F2BDU6DNG6Yc2NU=ocyCU2mwFg@mail.gmail.com> <D392EEF2.6EF40%kenny.paterson@rhul.ac.uk>, <CAMfhd9ULAqwr1cVe-hStsBf_xdorwQtmS+=Ui32iW6ErHBci6g@mail.gmail.com>
In-Reply-To: <CAMfhd9ULAqwr1cVe-hStsBf_xdorwQtmS+=Ui32iW6ErHBci6g@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: [78.146.50.187]
x-ms-office365-filtering-correlation-id: f52246a5-4a78-410c-a893-08d39cd469ec
x-microsoft-exchange-diagnostics: 1; AM4PR03MB1812; 6:MDMAXe+/F7rA7zZt/z8vOQ0k8G5gbb8oVPfOp0sZfIRclMDz+w/10RcFeGJPrHUjrr+fJmyIFxwIr1WrhLH3w18HSbV8ZEq3Jyq3jhIXNFBwP/WN3N5nQ1GZ4jdJYE3YWBzwUHALx5fTUCyOjNPbJIt32dN7o1SVlC9IJ+Q8FcRcSAnkq3E7MvHZYHmaaiqJiBtrIKB2dD0hvR9K6PpVD9AbdzryMb9W49dREf58pweoeeGwB1aY4SyMOlaHCMKmSJlMchRDtWVysy1TCnFce7jWi6EWk/chSFqegncKVeXsAmglBbT+mdluBvlcy6lP; 5:XumLqxsk7lj2u3V2AmzT6od6i+9VzxiB13qNm4O693Wvg0HDk0IhIT2Q5bubMr2nqp00EIIwCSJPkqLSNq5o1z/a0a/WdrkkNclUB+Cd5dUiaUf/lXDE50L08SC9DqAYwXfRROWPrX1SpiQLAPngkA==; 24:BM8aD0suxNJMnpbJ8ATGdwoky3aeTBAL/IZt6wcEEmNAFshUOsb1OCA90opbm1VgsR/ZJRrg27YJ0E5N1Clr/JTDtqFDvrhqxNVxkPBjphg=; 7:R94y16ET7HUYd0FEep18Lf1irc3mzbRs+JHqVWGiKzn3RMVzsfKAudH2HquLtO1ZXH9wfl8MUNeAzJSVOV8h/ZkFZDqRB4b3zltVzxIZ7mrAagavdW0wb+uEYUG/VOhKEL1eMy6c3lVn3lCH/XIi+giKTEi2+PCOEkmqTiTvKmiRFSpncrNjyOtTwMuPr8620ezKIzZO6l4+FId2PMsLcmxf3fT/RJpK37EGVlQv4Ra7OuvWls5cgFrHgubj6Z+qgKkCG4e/cjAYJ6sgDep2NQ==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR03MB1812;
x-microsoft-antispam-prvs: <AM4PR03MB181281D4CD1C27604848F523BC2F0@AM4PR03MB1812.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:AM4PR03MB1812; BCL:0; PCL:0; RULEID:; SRVR:AM4PR03MB1812; 
x-forefront-prvs: 09840A4839
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(51914003)(24454002)(199003)(377454003)(82746002)(66066001)(81166006)(5002640100001)(561944003)(81156014)(189998001)(5003630100001)(7846002)(8936002)(86362001)(105586002)(7736002)(305945005)(33656002)(54356999)(50986999)(19580405001)(101416001)(76176999)(19580395003)(10400500002)(8676002)(2906002)(36756003)(4326007)(11100500001)(74482002)(2950100001)(586003)(106116001)(106356001)(87936001)(83716003)(3846002)(102836003)(3280700002)(92566002)(97736004)(110136002)(68736007)(230783001)(3660700001)(77096005)(6116002)(68196006)(2900100001)(15975445007)(122556002)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR03MB1812; H:AM4PR03MB1811.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  MX:1; A:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
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-originalarrivaltime: 25 Jun 2016 08:40:51.2198 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR03MB1812
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/TGn4LpcS7VAtIXbvDoHAtvCvnj0>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 25 Jun 2016 08:41:13 -0000

Hi Adam,

Thanks for the clarification. My remarks were based on the scheme as presen=
ted by Shay at Vienna; there, he introduced the misconception that two sepa=
rate keys were involved; he did not clarify this during questioning (see th=
e minutes).=20

Of course the draft is definitive document and it's good that it presents t=
he normal API.=20

Cheers,

Kenny

Sent from my iPhone

> On 25 Jun 2016, at 02:43, Adam Langley <agl@imperialviolet.org> wrote:
>=20
> On Fri, Jun 24, 2016 at 6:24 AM, Paterson, Kenny
> <Kenny.Paterson@rhul.ac.uk> wrote:
>> On a related point, my view is that it is a disbenefit that the
>> AES-GCM-SIV proposal has two separate keys (one for encryption, the othe=
r
>> for authentication) as inputs. That's not the AEAD interface that we hav=
e
>> raised our implementers on. I raised this point at the CFRG meeting in
>> Vienna back in May. Simply concatenating the two keys in the current
>> proposal into one would address this issue, but not the one you raise (i=
f
>> I understand it correctly).
>=20
> The two keys are already concatenated in the draft, or else I
> misunderstood your point:
> https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-01#section-6
>=20
> "Since the definition of an AEAD requires that the key be a single
> value we define AEAD_AES_128_GCM_SIV to take a 32-byte key: the first
> 16 bytes of which are used as the authentication key and the remaining
> 16 bytes are used as the AES key. Likewise AEAD_AES_256_GCM_SIV takes
> an 48-byte key: the first 16 bytes are again the authentication key
> and the remaining 32 bytes is the AES key."
>=20
>=20
> Cheers
>=20
> AGL
>=20
> --=20
> Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Sat Jun 25 02:58:52 2016
Return-Path: <shay.gueron@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 6032612D107 for <cfrg@ietfa.amsl.com>; Sat, 25 Jun 2016 02:58:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, 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 KPh34wIl0Ffd for <cfrg@ietfa.amsl.com>; Sat, 25 Jun 2016 02:58:48 -0700 (PDT)
Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (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 A2C6512D0E5 for <cfrg@ietf.org>; Sat, 25 Jun 2016 02:58:47 -0700 (PDT)
Received: by mail-wm0-x244.google.com with SMTP id c82so11438113wme.3 for <cfrg@ietf.org>; Sat, 25 Jun 2016 02:58:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=from:to:subject:cc:date:message-id:in-reply-to:reply-to:user-agent :mime-version:content-transfer-encoding; bh=6+C+3WWyrgdiG7jBpWCmpBTnfJ79QN9ae1J+8wy+iX4=; b=iscw1po6grN2BZXCW9Xz/spu2Nt+CucnoqWCw2wQ7lD/CcsGhHvfHqe/NzDTm04/ms NQzr0cR4i18Vnp71lbghTs7HZi1yfN4Dn45+1uyjDAYCZ1SZBwRb3W3sb1ksdQvlSU/F YU9s66i09de/QefnwLwQQwVSZBTi7NdzCemi0KdzESw1AGzcJ/TpYkIuh9gGXOufBV28 0nsTW5bdBYWOFuSbp2rxLh9oKBpr1SGhrSH7V20gxml2Iwo+kWMxqwxsT+5JYDxtSpTn SjW8QRUgYPcFC7bR0HITAW4jVjD50bWTH/6pX0+Z/OAfTiCbKzS5VIn6DHLAYbWfwNDJ wjwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:cc:date:message-id:in-reply-to :reply-to:user-agent:mime-version:content-transfer-encoding; bh=6+C+3WWyrgdiG7jBpWCmpBTnfJ79QN9ae1J+8wy+iX4=; b=dHEwHWCm3z66Xo85xzcTJ0G/sG87ImOWLfBiYhBQg4bWAkWsXRz/s+2I0pe9Ad6mBN WkcEpHnlcg43TAslHwgDDeYLq7xs7IQhWkeDcxfZgLgplFLQs8IjnWzFMeGV8sLca3FJ O4fxqfxFCfAEHmBumEd4KPVevXqWRIIKeyFvRQWgIXbb3ni2I7zsRznLh0hmDBtrYDu7 aTq56BQqCoNHa+XTkBN4YpZWQWSGJe6RcSGmPWq/7impB45fFnC61UQtcgFp48tA2yiw PKqZ7TW8mZ8iFhgqCCwp5px0WwQ+Vcu/FGM8LaBxmOiLybCtEPEULdO0k5ZWEDTHGGGy 1ttQ==
X-Gm-Message-State: ALyK8tKa5UpPARwQzdBTrTBxCW44vqyT5hetpq2BCX8he3D4K4Bue+xRcRoAULmajKIJZg==
X-Received: by 10.194.56.134 with SMTP id a6mr7568590wjq.106.1466848726076; Sat, 25 Jun 2016 02:58:46 -0700 (PDT)
Received: from [10.0.0.3] (bzq-79-180-232-9.red.bezeqint.net. [79.180.232.9]) by smtp.gmail.com with ESMTPSA id el4sm1619348wjd.23.2016.06.25.02.58.44 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Jun 2016 02:58:45 -0700 (PDT)
From: "Gueron, Shay" <shay.gueron@gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, "Adam Langley" <agl@imperialviolet.org>
Date: Sat, 25 Jun 2016 09:58:34 +0000
Message-Id: <emd7a7bf2e-7d2d-47b0-9ff3-9a88b73cb7c3@sgueron-mobl3>
In-Reply-To: <46E4192A-3518-4E51-850C-667E710098C9@rhul.ac.uk>
User-Agent: eM_Client/6.0.24928.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/xYcjsw8Uk4aY70AjyXT0La0YtSQ>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: "Gueron, Shay" <shay.gueron@gmail.com>
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, 25 Jun 2016 09:58:50 -0000

I would like to clarify a point.

The API is a technical matter, so K1||K2 are K1, K2 are the same - from=20
the logical viewpoint. The interface can use a single 32/48 bytes key,=20
and this is how the draft is stated. This separation seemed to us as a=20
*advantage* of the design, and this is what I tried to communicate in=20
Vienna. I guess the confusion is due to my explanation... and hope it is=
=20
clarified here.

With both interfaces, the property is that the authentication key is=20
independent of the encryption key, and both are a direct input (unlike=20
AES-GCM that derives the authentication key from a single input key).

Daniel's example showed that here exists a (flawed/artificial) protocol=20
that would not work when using AES-GCM-SIV, but would be OK with=20
AES-GCM.
It is not a problem of AES-GCM-SIV, which is designed as an AEAD scheme=20
for the standard usage, and also, the protocol does not make much sense=20
(to me, at least). Still, it is a very interesting observation.

The difference stems exactly from using 2 independent keys with=20
AES-GCM-SIV, while using a single key with AES-GCM, and deriving H from=20
it (by a one way function). It is the same for other AEAD schemes that=20
use independent encryption and hash keys, where there are some "weak"=20
hash keys (e.g., 0). This property affects any protocol that benefits a=20
malicious sender (who could choose a bad hash key).

Should this needs to be addressed? I am not sure. A malicious sender is=20
not part of the AEAD threat model.

But in any case, it could be addressed if AES-GCM-SIV used a single key=20
(MK) and derived K1 and K2 from MK (and possibly the nonce). I raised=20
this point in another thread.

Thanks, Shay

------ Original Message ------
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "Adam Langley" <agl@imperialviolet.org>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Sent: 6/25/2016 11:40:51 AM
Subject: Re: [Cfrg] AES-GCM-SIV security of the additional data

>Hi Adam,
>
>Thanks for the clarification. My remarks were based on the scheme as=20
>presented by Shay at Vienna; there, he introduced the misconception=20
>that two separate keys were involved; he did not clarify this during=20
>questioning (see the minutes).
>
>Of course the draft is definitive document and it's good that it=20
>presents the normal API.
>
>Cheers,
>
>Kenny
>
>Sent from my iPhone
>
>>  On 25 Jun 2016, at 02:43, Adam Langley <agl@imperialviolet.org>=20
>>wrote:
>>
>>  On Fri, Jun 24, 2016 at 6:24 AM, Paterson, Kenny
>>  <Kenny.Paterson@rhul.ac.uk> wrote:
>>>  On a related point, my view is that it is a disbenefit that the
>>>  AES-GCM-SIV proposal has two separate keys (one for encryption, the=
=20
>>>other
>>>  for authentication) as inputs. That's not the AEAD interface that we=
=20
>>>have
>>>  raised our implementers on. I raised this point at the CFRG meeting=
=20
>>>in
>>>  Vienna back in May. Simply concatenating the two keys in the current
>>>  proposal into one would address this issue, but not the one you=20
>>>raise (if
>>>  I understand it correctly).
>>
>>  The two keys are already concatenated in the draft, or else I
>>  misunderstood your point:
>>  https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-01#section-6
>>
>>  "Since the definition of an AEAD requires that the key be a single
>>  value we define AEAD_AES_128_GCM_SIV to take a 32-byte key: the first
>>  16 bytes of which are used as the authentication key and the=20
>>remaining
>>  16 bytes are used as the AES key. Likewise AEAD_AES_256_GCM_SIV takes
>>  an 48-byte key: the first 16 bytes are again the authentication key
>>  and the remaining 32 bytes is the AES key."
>>
>>
>>  Cheers
>>
>>  AGL
>>
>>  --
>>  Adam Langley agl@imperialviolet.org https://www.imperialviolet.org
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>https://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Jun 26 01:08:04 2016
Return-Path: <azet@azet.org>
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 6ED8912B041 for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 01:08:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 fV3it1mFOhMz for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 01:08:02 -0700 (PDT)
Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::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 1D33712B02C for <cfrg@ietf.org>; Sun, 26 Jun 2016 01:08:02 -0700 (PDT)
Received: by mail-pa0-x233.google.com with SMTP id hl6so49617075pac.2 for <cfrg@ietf.org>; Sun, 26 Jun 2016 01:08:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=IYjyaIJN6QXIWj/pDQVLcnY8C8NncqGfetosiwsvYWc=; b=ROmWjaUolVZzn3TmdG7Gc59hVmg7Fm79mNhD9+VkKBcBdF5FaK0Uhu2ZeEp3B9MTz4 AoavlSX0G1xOiBRA0E0U3nHvnJTMUfKXIIxqFDMasIPAYZIgRpyb0tGnq5GIGngfA2ma ythx/MUM2V5TZtMst5OAY6TYi5dLs6+OzSHDQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=IYjyaIJN6QXIWj/pDQVLcnY8C8NncqGfetosiwsvYWc=; b=TtVIUa4Sfa7mxAcCWBa2fxQdzZAUadKEK/xHIq1cekRxpEXfH+HbCgofIE58EBoxZP ogM5siTzRl13OZCOleEUBofpQQo6FomU6LJyHrn35RfqqNkoMczcu6XdRtdNsiOqpBQe YU6L2C37gukZ1j9TUgpTPMyMAklCGV7sU5iXdhGHUagXr9dQmaAL2opDpHfcke6le0gI dqU/0EsCAaWL3+2sXIgaLwEgnrdejNhfWw2JofnsY+d3AXQzn4NUx5pVvPrZzA/aYxsx XUfLH79zFjkmwwGZZhlZD2FjTOAmNWtnpEvo1hUpekeHs/4bhN4deSHcclc6NhRUj2Fy TBnA==
X-Gm-Message-State: ALyK8tK0McgQY8bCdIUTXjo8LcVpXHI9KAYKm9Wr9/Q1OTOp18LtmFK70WtdIL+a1uf4Yg==
X-Received: by 10.66.65.109 with SMTP id w13mr22719631pas.142.1466928481563; Sun, 26 Jun 2016 01:08:01 -0700 (PDT)
Received: from [192.168.1.127] ([36.83.171.89]) by smtp.gmail.com with ESMTPSA id d65sm4168028pfa.45.2016.06.26.01.07.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 01:08:00 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type: multipart/signed; boundary="Apple-Mail=_33F6D7DF-3582-4C97-A71C-D0F2451069F5"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail 2.6b2
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <em85e6ab2a-6a3c-4b2e-986d-2e44c2965663@sgueron-mobl3>
Date: Sun, 26 Jun 2016 16:07:36 +0800
Message-Id: <1D6C8C6D-8D82-43D4-A1B9-800C493E6BD0@azet.org>
References: <em85e6ab2a-6a3c-4b2e-986d-2e44c2965663@sgueron-mobl3>
To: "Gueron, Shay" <shay.gueron@gmail.com>
X-Mailer: Apple Mail (2.3112)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/p30Dz3ra1hpAqOzXzXtwdzZU9WI>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, "cfrg@ietf.org" <cfrg@ietf.org>, Adam Langley <agl@google.com>
Subject: Re: [Cfrg] AES-GCM-SIV with a new key hierarchy
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 26 Jun 2016 08:08:03 -0000

--Apple-Mail=_33F6D7DF-3582-4C97-A71C-D0F2451069F5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi,
> On 25 Jun 2016, at 01:10, Gueron, Shay <shay.gueron@gmail.com> wrote:
>=20
> An alternative would be to incorporate the nonce from the beginning, =
during the derivation of K, H from MK. This will modify the record =
encryption key and also the hash key per each nonce. In that case the =
extra derivation of the record encryption key (per nonce) could be =
skipped (but also could be not done).

Could you clarify on that paragraph? e.g. with pseudocode?

Incorporating the nonce in the MK derivation step makes sense to me.

But; I don't fully grasp the last part of this paragraph; if you skip =
the extra derivation per record encryption key per nonce you lose =
nonce-MR?! Given the nonce is incorporated in the MK derivation step, =
this isn't an issue, but I'm not 100% sure what your suggestion here is.

Thanks,
Aaron

--Apple-Mail=_33F6D7DF-3582-4C97-A71C-D0F2451069F5
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXb41IAAoJEOTbZJL9ubXVi0gP+gItzjknlyLJPOAm8INAs8r6
cNRoncrU9nC36q3EinoT9psq27ivBKNqMoCBkzn6lI3VXrTXv6AG8kkIBOcCzc9v
uJQvqxhTwrbkwl2bgySAZLSr3G0iXedj4xvZQJzu9VXZxmCAeIW6LK+RDxlMdbjv
c6a56VfB23k78T5K5eoWdBQCJ3rU6g/+S/YpfFXN3qyw7Bpfenmtt996p18dJ5Yl
lxSm2ecgy3kKHhvNnaxCyhLGn4zeF+iOlBe6JnKFSpEQpq2z0Mpw4VUY5WTvvEQ6
IDHEOezgBz9Vax1PIFCVtynjus4Az7UAe5ZPPIGV/MGYfp22AN4JVAnCJC7ZoBC/
H5TkQ0bG1esvYy0C4dJzruLKH7fU2rJ3V638TRZQveYQ8q9fkKtFL2ODsYI450Jq
dHmcVbTOE4kheNBTxnZ3rCMTDmpPKbCio/MSUxr8rk66z0Alu/onE76VKkMCi/8t
uhZ5saVfG6cLU4IAd7MGmeGWhwtLaqVC/jIBS7xaNJqpPGdbu/wI3Ka+1SmbuNF6
VK+cKy+Hw1IgEYIX49PezzifFUFp1C9YBzIdMJpMzRjclrenFDnqurquzM9JsRtF
9kBG0BUKAYIAZkFiBPMs2UttMxNT5Y4clDUSNSGPfhdm2zQhcWM3QCKVzf7nzVNT
jPbA2UYbBPzSHZQmyFzY
=WmlJ
-----END PGP SIGNATURE-----

--Apple-Mail=_33F6D7DF-3582-4C97-A71C-D0F2451069F5--


From nobody Sun Jun 26 01:31:51 2016
Return-Path: <shay.gueron@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 6EF6812D09F for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 01:31:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, 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 lyviRpyJwdUX for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 01:31:48 -0700 (PDT)
Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 74AB112B071 for <cfrg@ietf.org>; Sun, 26 Jun 2016 01:31:48 -0700 (PDT)
Received: by mail-wm0-x241.google.com with SMTP id 187so16669536wmz.1 for <cfrg@ietf.org>; Sun, 26 Jun 2016 01:31:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=from:to:subject:cc:date:message-id:in-reply-to:reply-to:user-agent :mime-version:content-transfer-encoding; bh=qR9FCv+yxuJcSo5vDYLqlmN6v+XDdGqKlt4z7u4xQdU=; b=T7lOEMWXW+UyfLuAHwsi/Dolj77h3dlRWH0i7V1eNrZRWwlrus6F3zmPdvsivzhTNm xxp6M98bjWcs12vsUJBIHFhOnX55GIKW+O1yjabx8SfbSikmeYvZy/UnWrxu9amRHD+7 AuhV9PW+nmFPwx60XE3ZggYgDYFmve3E6vY/N9UnJSbwPUZBwbE1Zgx35fA/FYGFjgd5 739M3lL2cNWk9mYD8XBLC6qKqhzSMREu92o/FlMeX+lgO44ORwondMbf2pHZ5+UPM0Ga fO87laYeLwsxB/RtYdWEk32FiGnMN9MtoMnDN0QzAy/4QOmdIXbZhBtDloUf7nYSkCsR 2jJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:cc:date:message-id:in-reply-to :reply-to:user-agent:mime-version:content-transfer-encoding; bh=qR9FCv+yxuJcSo5vDYLqlmN6v+XDdGqKlt4z7u4xQdU=; b=go2CRk/B1SbPe03Th3NSD2Bl/HbeXz48hHFA0BkTMB5w2kpTq5vTROdVuSL1xadqp6 A8FcJaN9XkZh3pvxBEI1nSgSoOS/RsjSkgsHo7EqGNv7GDEHJe9vkCRy0gXW4g9/G6n9 zxgiOcOC21vScTX5fDxfni5gyfIBLm3LaCOzlgGXx8paegJTmZv/ql3CP+OxMjb13nRB yN3jRAw6W7ilzI7jvJXcIP3hY/+dgl4VryjmStOTttBLZCNzzVKA1TvN0I5YX4hn0MrM kkirDTgXH1MiQoK+CemjH0v2csBSd1GaRq5t+s0gNBehC7XLwkrrcClSNPMc0LUVGDlX /E8w==
X-Gm-Message-State: ALyK8tIpRZCpxg+18gM9RlIwc+NgZOKtqdP2quUdceHp7hASfuDMoXeHpmH4olutJRgpcw==
X-Received: by 10.28.165.206 with SMTP id o197mr5738933wme.102.1466929907023;  Sun, 26 Jun 2016 01:31:47 -0700 (PDT)
Received: from [132.74.211.74] ([132.74.211.74]) by smtp.gmail.com with ESMTPSA id f189sm5433705wmf.19.2016.06.26.01.31.44 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 01:31:45 -0700 (PDT)
From: "Gueron, Shay" <shay.gueron@gmail.com>
To: "Aaron Zauner" <azet@azet.org>
Date: Sun, 26 Jun 2016 08:26:12 +0000
Message-Id: <em01122224-6812-4371-a628-21d5f8515794@sgueron-mobl3>
In-Reply-To: <1D6C8C6D-8D82-43D4-A1B9-800C493E6BD0@azet.org>
User-Agent: eM_Client/6.0.24928.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/lM8gttOdcr2SXDf86fSYFfs5AT4>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, "cfrg@ietf.org" <cfrg@ietf.org>, Adam Langley <agl@google.com>
Subject: Re: [Cfrg] AES-GCM-SIV with a new key hierarchy
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: "Gueron, Shay" <shay.gueron@gmail.com>
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: Sun, 26 Jun 2016 08:31:50 -0000

Of course - let me describe.
For simplicity, I describe the case of a 128-bit MK.

Option 1: K1 =3D E_MK (0), K2 =3D E_K1 (0)  (K1 will be used for encryption=
,=20
and K2 for the authentication)
Then continue AES-GCM-SIV as it is defined now (including a derivation=20
of a record encryption key, per nonce N)

Option 2: K1 =3D E_MK (N), K2 =3D E_K1 (N)
Then AES-GCM-SIV as it is defined now, but without an  additional=20
derivation of a record encryption key; just set K1 as the record=20
encryption key.

Note: Option 1 is merely a static "pre-derivation" (where K1, K2 can be=20
cached). Here, MK is used directly only twice.
Option 2 uses MK (directly) with each nonce. Here, the hash key also=20
depend on the nonce.

There is another option.

Option 3: K1 =3D E_MK (0), K2 =3D E_K1 (0)
Then continue AES-GCM-SIV as it is defined now (including a derivation=20
of a record encryption key, per nonce N) and also define a record hash=20
key via E_K2 (N).


These options offer different nuances, and would have a noticeable=20
performance effect only for short messages. My favorite, among these 3,=20
is Option 3 (that seems to enjoy all the benefits, at a small additional=
=20
latency).


Shay


------ Original Message ------
From: "Aaron Zauner" <azet@azet.org>
To: "Gueron, Shay" <shay.gueron@gmail.com>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>; "Yehuda Lindell"=20
<Yehuda.Lindell@biu.ac.il>; "Adam Langley" <agl@google.com>
Sent: 6/26/2016 11:07:36 AM
Subject: Re: [Cfrg] AES-GCM-SIV with a new key hierarchy

>Hi,
>>  On 25 Jun 2016, at 01:10, Gueron, Shay <shay.gueron@gmail.com> wrote:
>>
>>  An alternative would be to incorporate the nonce from the beginning,=
=20
>>during the derivation of K, H from MK. This will modify the record=20
>>encryption key and also the hash key per each nonce. In that case the=20
>>extra derivation of the record encryption key (per nonce) could be=20
>>skipped (but also could be not done).
>
>Could you clarify on that paragraph? e.g. with pseudocode?
>
>Incorporating the nonce in the MK derivation step makes sense to me.
>
>But; I don't fully grasp the last part of this paragraph; if you skip=20
>the extra derivation per record encryption key per nonce you lose=20
>nonce-MR?! Given the nonce is incorporated in the MK derivation step,=20
>this isn't an issue, but I'm not 100% sure what your suggestion here=20
>is.
>
>Thanks,
>Aaron


From nobody Sun Jun 26 03:37:40 2016
Return-Path: <azet@azet.org>
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 19EED12D137 for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 03:37:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 qNXX-jKl73sB for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 03:37:37 -0700 (PDT)
Received: from mail-pf0-x22e.google.com (mail-pf0-x22e.google.com [IPv6:2607:f8b0:400e:c00::22e]) (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 C0A2F12D0FB for <cfrg@ietf.org>; Sun, 26 Jun 2016 03:37:37 -0700 (PDT)
Received: by mail-pf0-x22e.google.com with SMTP id i123so52606506pfg.0 for <cfrg@ietf.org>; Sun, 26 Jun 2016 03:37:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=r1TFIz3SAxiDKLn7UbIwtZwbKEAIpABod4PPRpqkgc8=; b=CzoN1QOWBUmM2+Uh6Sn+80lm0zZOqF4PRuhxDbFXJakKcODTbgfoXXIrTuHXMU7isY RTivFeeRXEOF3a/v/bz08kIuLlr6XWs38bGr1TCFeg1LzPu1L9RRIT6D0oPT+1wTl40P mv1+QQfldgyi9gb7hehvrdAzrt4TjzdBJX/BE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=r1TFIz3SAxiDKLn7UbIwtZwbKEAIpABod4PPRpqkgc8=; b=GiXckX4za7w521HfA/QfODobtHCuD9pE7v4l1zt9zR9HBDpja92afhb3pX+cRtwUxp TiTbhAhVK8cNeopTVx0OVBPjONmMOhr0pznBuTbU7JaXgknjpDKf2rvGVXFJAhIQfqv4 wMCO8jt6jTlGe3/QVNaYpaJNnZYpbdTXjtslHX1MgJcnRDoDNGuiVqqWDqAYkO3POkrd S9IKm4sNXKCvrmHd4Y17uvRBmw9No/kk+r/9Yl95sqK4fZg6U6BpwPG88DB0cGGYbbWy w3UufV2sszrr45HA6zAvBODagVugncWJeLVBdbrpus+2UfoCdLqm1dWIfCLJajLI6+AY Pu9g==
X-Gm-Message-State: ALyK8tLaH6jiV+eEbjVbFFkAJgVpbIvG+09jTZdkCMGswyTpEwcYw3oaKXCPVAWwh6cDlQ==
X-Received: by 10.98.13.81 with SMTP id v78mr23465390pfi.91.1466937457180; Sun, 26 Jun 2016 03:37:37 -0700 (PDT)
Received: from [192.168.1.234] ([114.121.129.119]) by smtp.gmail.com with ESMTPSA id bw1sm4987223pab.17.2016.06.26.03.37.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Jun 2016 03:37:36 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type: multipart/signed; boundary="Apple-Mail=_0A6FB2AE-2A0C-4C06-BBB8-795FFBFE0323"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail 2.6b2
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <em01122224-6812-4371-a628-21d5f8515794@sgueron-mobl3>
Date: Sun, 26 Jun 2016 18:37:30 +0800
Message-Id: <6844F3DB-A00F-41F7-9F3D-D32BF07D2037@azet.org>
References: <em01122224-6812-4371-a628-21d5f8515794@sgueron-mobl3>
To: "Gueron, Shay" <shay.gueron@gmail.com>
X-Mailer: Apple Mail (2.3112)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/t0rg1YBs8-wsFtfzf-Pq3JUXxig>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, "cfrg@ietf.org" <cfrg@ietf.org>, Adam Langley <agl@google.com>
Subject: Re: [Cfrg] AES-GCM-SIV with a new key hierarchy
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 26 Jun 2016 10:37:39 -0000

--Apple-Mail=_0A6FB2AE-2A0C-4C06-BBB8-795FFBFE0323
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi Shay,

Thank you for your explanation.

So if that'd be a CFRG poll I'd go with the following preference:

> On 26 Jun 2016, at 16:26, Gueron, Shay <shay.gueron@gmail.com> wrote:
>=20
> Of course - let me describe.
> For simplicity, I describe the case of a 128-bit MK.
>=20
> Option 1: K1 =3D E_MK (0), K2 =3D E_K1 (0)  (K1 will be used for =
encryption, and K2 for the authentication)
> Then continue AES-GCM-SIV as it is defined now (including a derivation =
of a record encryption key, per nonce N)

+

>=20
> Option 2: K1 =3D E_MK (N), K2 =3D E_K1 (N)
> Then AES-GCM-SIV as it is defined now, but without an  additional =
derivation of a record encryption key; just set K1 as the record =
encryption key.

+++

>=20
> Note: Option 1 is merely a static "pre-derivation" (where K1, K2 can =
be cached). Here, MK is used directly only twice.
> Option 2 uses MK (directly) with each nonce. Here, the hash key also =
depend on the nonce.
>=20
> There is another option.
>=20
> Option 3: K1 =3D E_MK (0), K2 =3D E_K1 (0)
> Then continue AES-GCM-SIV as it is defined now (including a derivation =
of a record encryption key, per nonce N) and also define a record hash =
key via E_K2 (N).

++

Aaron

--Apple-Mail=_0A6FB2AE-2A0C-4C06-BBB8-795FFBFE0323
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXb7BqAAoJEOTbZJL9ubXVi0oP+wcZVy+QbpLSvx+4H2fQ/+Cm
MkZwkbwQVcEn7GmvFwAZQ4zNU7pqUxT7gJjPWmlvRmrmtjVjV4RsYjQWdKOXBT8p
2ecRq50erpqMGNwJzgEA5oJm4xdHUFrnY92EKmGhIITa1PIVNYK3pE/mIWV+Nyca
PEHw8b04aITUH7GbRUY4+V6/46A1LpZZhGNFzsRcVadNRrsNYgu4lrf0BlwV4AzW
mQzZvw66raDNCRI4FfBgwk3wB5hFOEyJWNr+T5faAZDaWoxQOYZi6WkvwzGuGLKg
/39IWdW84y0bSMJURu5mIkfrH/1SujXHW1cCYb9hB6a9oQhifERK9xipKqKtUtvZ
IDOFsp/qus7w8BNHv5rV7RAli1GN+gb30ceGLrYYRgwjtHXbdhJvKk0KmO7jE5Jp
7d3EOgm8YP60CxnWF/dOkf8TFtkHTnIVB9As7FN6ocBbz14U4StRxFbiDUIrbkUK
n2nCRfpCmzgygn7EL4+KQpqTcnoR5IVknxV+2tFLTuMawWeC0iP+AFA7FFETFWDd
atKX2Dh0ws2b23bRnLZ0QXPk5xRdo7gzD3fIQIebO59WHSMo/dMq1hZ6bX+UVUQZ
SR51NMC+MRT1AjrJBdGuGst68YUIKufNizyZQ4HNbywh/V2dpIo8DNJE00YWjjnI
EIIMa0B6LcHDRHuZ3NL8
=AREj
-----END PGP SIGNATURE-----

--Apple-Mail=_0A6FB2AE-2A0C-4C06-BBB8-795FFBFE0323--


From nobody Sun Jun 26 09:18:30 2016
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 8107012B05E for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 09:18:29 -0700 (PDT)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_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 90eoFxIq38cK for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 09:18:26 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0658.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe04::658]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4980E12D0D1 for <cfrg@ietf.org>; Sun, 26 Jun 2016 09:18:26 -0700 (PDT)
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; bh=CFFm1GqN9nUyDBeFY2v7Ha+wcod/GEymu9xDFwmmrYA=; b=hnLFkn84kCbTQmbVDCwYPyvPLPCvNEdltyjgCExsgdXPIldeokOcCGFhDWMfKoYDAbkHUCIJQpOWdymbA/xqhgL1VDU2Lgv2gY2vVxA6ffE67KIUqHtHoPmedl+/O6XOZjZCyUU5UydAchJtMPqtSlM5GGBk+0ZRxBE+p3+CLqw=
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) by VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) with Microsoft SMTP Server (TLS) id 15.1.528.16; Sun, 26 Jun 2016 16:18:04 +0000
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) by VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) with mapi id 15.01.0528.014; Sun, 26 Jun 2016 16:18:02 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "Gueron, Shay" <shay.gueron@gmail.com>, Aaron Zauner <azet@azet.org>
Thread-Topic: [Cfrg] AES-GCM-SIV with a new key hierarchy
Thread-Index: AQHRzjuUR736sQFAhky9Y9Rjoz5iCJ/7ZyEAgAAFMwCAAJUqgA==
Date: Sun, 26 Jun 2016 16:18:02 +0000
Message-ID: <D395BE92.6F21F%kenny.paterson@rhul.ac.uk>
References: <1D6C8C6D-8D82-43D4-A1B9-800C493E6BD0@azet.org> <em01122224-6812-4371-a628-21d5f8515794@sgueron-mobl3>
In-Reply-To: <em01122224-6812-4371-a628-21d5f8515794@sgueron-mobl3>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.5.160527
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [78.146.50.187]
x-ms-office365-filtering-correlation-id: 1854a009-bde3-47f3-b9a0-08d39ddd72d3
x-microsoft-exchange-diagnostics: 1; VI1PR03MB1822; 6:HlC/kzWjHWz3Qggzd9R0J0aoLnUlH/DRwNwLkCOuos8gNAPpuMICbLvazav1mNU0Da/vQd59tYVeiOsSAHEGG/EsJq605GPMYg5xb29FNNSGzGTmm9CqDLLbO7e7f6nTLVNKoixbvvddr6eWooANSfVLp6tlUEX1jwpJUYGWTbUqx9raFES9UWuL2WbK8OaVWbqM4D7LDmkTqKdcr8hXxsfQXdWoHlAN9lnq4iZLL/GV2X4RcVuUDe5NNfQWnH+wb9CZHjG1FL03KUS3kP5SxyBn6z7zed+y0UU8Wu8eg7k=; 5:AkA7pBixD6BUBh94sLFR1xAlmQoYfHBIpTEzANvOBzpu2N9UkarjrnHUbhZrOhN8FsHiCYWQLXZ5zyniTmtClNLVfo6Va0r4c/jx9ozJOXhqx/BriE6AnGs06ZUFU37fXSq/Xp/kkB+DYk1tIncwgQ==; 24:TlDo4SZHYf+FAahJgMrZFZZcqADApK4jXW4/jW31pXt/hNhqY2isg+AyibfOhbdQsPSyPjtJyrb1ccvQltAY9KbvMXcOy+yNcQ8WbKw/f78=; 7:Un3XnWpzb3B6jTQrbsk5QGX5zL5TJOZo9JbVCHq5SXlFhtU+htyxs1r3nMiHCGjNc+IzsorSSO8iP6nG9tSi7BtPbKWwRTJ8Qn7+gVcK4qlXRHa0OWRwv0tonx7FhXrClvh4OSlaExUW3LjPplGakse3VnwsrQq1E0J6zztXVEAzaaZlBYEdW7edZNyz87QDen0Lb4A5EIi8mcNdOy7SixL3/TtXV80g7EeNTqoVDeMLUtYwfFtnlEkJ+MeLQQal
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR03MB1822;
x-microsoft-antispam-prvs: <VI1PR03MB1822F911E1A0C09459534CBFBC200@VI1PR03MB1822.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(211936372134217);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:VI1PR03MB1822; BCL:0; PCL:0; RULEID:; SRVR:VI1PR03MB1822; 
x-forefront-prvs: 0985DA2459
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(13464003)(377454003)(189002)(24454002)(86362001)(10400500002)(87936001)(50986999)(54356999)(68196006)(76176999)(101416001)(92566002)(81156014)(81166006)(189998001)(586003)(8676002)(3280700002)(68736007)(2950100001)(97736004)(5001770100001)(4001350100001)(2900100001)(15975445007)(77096005)(3660700001)(5002640100001)(6116002)(102836003)(3846002)(8936002)(74482002)(36756003)(2906002)(305945005)(7846002)(7736002)(4326007)(122556002)(106356001)(106116001)(105586002)(230783001)(19580405001)(19580395003)(83506001)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR03MB1822; H:VI1PR03MB1822.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <7A7DDFA543649447913853CE0098DE05@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2016 16:18:02.8612 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB1822
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/f0G1Sw8Dl7MYJ-9xTye4bw5EccM>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: Yehuda Lindell <Yehuda.Lindell@biu.ac.il>, "cfrg@ietf.org" <cfrg@ietf.org>, Adam Langley <agl@google.com>
Subject: Re: [Cfrg] AES-GCM-SIV with a new key hierarchy
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 26 Jun 2016 16:18:29 -0000

SGkgU2hheQ0KDQpUaGFua3MgZm9yIHByZXNlbnRpbmcgdGhlc2Ugb3B0aW9ucy4NCg0KQ291bGQg
eW91IHN1bW1hcmlzZSB3aGF0IHRoZSBpbXBhY3Qgd291bGQgYmUgb24geW91ciBzZWN1cml0eSBw
cm9vZnMgb2YNCmVhY2ggb2YgdGhlIHRocmVlIG9wdGlvbnMsIGlmIGFueT8NCg0KSSdkIGFsc28g
YmUgaW50ZXJlc3RlZCB0byBzZWUgYW4gZXhwbGljaXQgYWNjb3VudGluZyBmb3IgdGhlIHBlcmZv
cm1hbmNlDQppbXBhY3RzIC0gdGhpcyBjb3VsZCBiZSByb3VnaGx5IGNoYXJhY3RlcmlzZWQgaW4g
dGVybXMgb2YgdGhlIG51bWJlciBvZg0KQUVTIG9wZXJhdGlvbnMgaW52b2x2ZWQgaW4ga2V5IGRl
cml2YXRpb24gcGVyIG1lc3NhZ2UgaW4gZWFjaCBjYXNlLg0KDQpDaGVlcnMNCg0KS2VubnkgDQoN
Ck9uIDI2LzA2LzIwMTYgMDk6MjYsICJDZnJnIG9uIGJlaGFsZiBvZiBHdWVyb24sIFNoYXkiDQo8
Y2ZyZy1ib3VuY2VzQGlydGYub3JnIG9uIGJlaGFsZiBvZiBzaGF5Lmd1ZXJvbkBnbWFpbC5jb20+
IHdyb3RlOg0KDQo+T2YgY291cnNlIC0gbGV0IG1lIGRlc2NyaWJlLg0KPkZvciBzaW1wbGljaXR5
LCBJIGRlc2NyaWJlIHRoZSBjYXNlIG9mIGEgMTI4L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2VzdGlvbiBoZXJlDQo+PmlzLg0KPj4NCj4+VGhhbmtzLA0KPj5BYXJvbg0KPg0K
Pl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+Q2ZyZyBt
YWlsaW5nIGxpc3QNCj5DZnJnQGlydGYub3JnDQo+aHR0cHM6Ly93d3cuaXJ0Zi5vcmcvbWFpbG1h
bi9saXN0aW5mby9jZnJnDQoNCg==


From nobody Sun Jun 26 10:00:56 2016
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 D894012D0F3 for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 10:00:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level: 
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_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 h1cCRvGLdB_6 for <cfrg@ietfa.amsl.com>; Sun, 26 Jun 2016 10:00:52 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0041.outbound.protection.outlook.com [104.47.2.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 898CB12D0EE for <cfrg@ietf.org>; Sun, 26 Jun 2016 10:00:52 -0700 (PDT)
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; bh=ZNVEReT6egN7H1Fa8Gfub2Bc52nbCTOhsj/9hX643/g=; b=iBhR6LlZGp6MUwUj3HIk+ecJ9ORzl1uslbcu9Gjkk4v5LlpOjTjF/D5f6E5HAuwaTONkmdatEPA3/L6dKcyeSc8jbVZJ0ViT4aDcURxaaI2HCs3yCaN589361P4Unr4R19oaJaAmZugXjveg0s49aUYwOgicjejHOL0EZg4wsvg=
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) by VI1PR03MB1822.eurprd03.prod.outlook.com (10.166.42.148) with Microsoft SMTP Server (TLS) id 15.1.528.16; Sun, 26 Jun 2016 17:00:50 +0000
Received: from VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) by VI1PR03MB1822.eurprd03.prod.outlook.com ([10.166.42.148]) with mapi id 15.01.0528.014; Sun, 26 Jun 2016 17:00:47 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: Agenda items for IETF 96 in Berlin
Thread-Index: AQHRz8xIBcaeGyI77kWJrytDIExwDA==
Date: Sun, 26 Jun 2016 17:00:47 +0000
Message-ID: <D395C824.6F24E%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.6.5.160527
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [78.146.50.187]
x-ms-office365-filtering-correlation-id: 49ed798b-593f-4135-c964-08d39de36bbb
x-microsoft-exchange-diagnostics: 1; VI1PR03MB1822; 6:ISL6hBQ1Nb6aw5LXWHD9odkNLoxdCsoV1uTzbwETb8q4QqJ2sIU4mcrtoN05nqdF0yNKRc3jrQj+MksDjU7wAsYNuYdSWXwSCLgzCelya/+l4EpHTJBw9jVZll4vrwKw0wAL6yClR8J8VSboEM8l7u8LgSKG76T9gflNZRcD/ZSWUCQAFvm9YtierpJNGlIjJca9+2wUDyVHV0T3tDvvotjgr215IPwUifMmf64Rf2qAWT31H6WuTEnjP6eOge5eXlXINw6yLTXds+ZR6DnR9mFWtbWo0/oethO6E9e5xW4=; 5:0ICfHglw1+OD50B1iEU+3ykhYNSF3y9L4UXQWm0R8e79j/MXbYhZQ6eAozqQlvT8VeQBQJzSJzLr7Iq9TLZI6GljDQKx93PSHPLsGUdcpL7UrPqXh0Q5gHFm0Gn8s4sjjtSYVMV1o3V6kqa5jtmxnQ==; 24:X51hpaXHtkuJSfokd9UYtnpRNqcOXS4uFPnshukDCaSmH1PA0A/AtMWrGmnCQ/2j5b+vtNltBTG6R+eLTKXrfffL5EzZletKAQF8HKjhiy4=; 7:+XYxs0ysOuRBh+nnCF29VwzBTDRzAIFLqeIRqsATpr/OV8vCQmYbzBzvnL7sivFHgrJKsG7RKxl8VFcDkv3UJShE7X4MLmgsMq2Hars6JovzLPWloueLqCslVABdzTidZ/wYMZqSXmNV/AndrHOKZCQ3068TKXYA2Mfol1LJMSz2DvGqUjH5TOO3LoGAuwmtbubaznkJkJihA2aWM16QmPnI/pBSyuNVP1RFWx9CxDOwqs8jI+1AUUxfwKxW8iTY
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR03MB1822;
x-microsoft-antispam-prvs: <VI1PR03MB18229558888BAF9D7284D3F8BC200@VI1PR03MB1822.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:VI1PR03MB1822; BCL:0; PCL:0; RULEID:; SRVR:VI1PR03MB1822; 
x-forefront-prvs: 0985DA2459
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(189002)(2906002)(36756003)(74482002)(122556002)(305945005)(4326007)(7736002)(7846002)(4001350100001)(77096005)(2900100001)(2501003)(5640700001)(3280700002)(68736007)(97736004)(8936002)(110136002)(3660700001)(5002640100001)(102836003)(3846002)(66066001)(83506001)(6116002)(106356001)(106116001)(105586002)(2351001)(87936001)(50986999)(86362001)(10400500002)(189998001)(586003)(1730700003)(81166006)(8676002)(68196006)(54356999)(81156014)(92566002)(101416001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR03MB1822; H:VI1PR03MB1822.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <72D3B565E24F51498FB9DBCFB4C28418@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2016 17:00:47.9537 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB1822
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/QQuDoRT5DA2YuvvNId8A2Q_ZxAU>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] Agenda items for IETF 96 in Berlin
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 26 Jun 2016 17:00:55 -0000

RGVhciBDRlJHLA0KDQpDRlJHIHdpbGwgbWVldCBvbiBXZWRuZXNkYXkgSnVseSAyMHRoIGF0IElF
VEYgOTYgaW4gQmVybGluIGZyb20gMnBtIHRvDQozLjMwcG0uIFdlIGxvb2sgZm9yd2FyZCB0byBz
ZWVpbmcgeW91IHRoZXJlLg0KDQpQbGVhc2Ugc2VuZCBwcm9wb3NhbHMgZm9yIHRvcGljcyBvZiBk
aXNjdXNzaW9uIGFuZCBwcmVzZW50YXRpb25zIGJ5IHRoZQ0KZW5kIG9mIFRodXJzZGF5LCBKdW5l
IDMwdGguIChJZiB5b3UgaGF2ZSBhbHJlYWR5IGNvbnRhY3RlZCB1cyB3aXRoIGENCnJlcXVlc3Qs
IHRoZXJlJ3Mgbm8gbmVlZCB0byBzZW5kIHVzIGEgZnJlc2ggb25lLikNCg0KVGhhbmsgeW91LA0K
DQpLZW5ueSAoZm9yIHRoZSBjaGFpcnMpLg0KDQoNCg==


From nobody Tue Jun 28 03:53:25 2016
Return-Path: <alexey.melnikov@isode.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 C3CE012DB92 for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 03:53:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.427
X-Spam-Level: 
X-Spam-Status: No, score=-3.427 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isode.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 1_qRsXG49hig for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 03:53:22 -0700 (PDT)
Received: from statler.isode.com (Statler.isode.com [62.232.206.189]) by ietfa.amsl.com (Postfix) with ESMTP id 5C13A12D191 for <cfrg@irtf.org>; Tue, 28 Jun 2016 03:53:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1467111201; d=isode.com; s=june2016; i=@isode.com; bh=5fsic4119BT507XGHNNyLJiW7xE8bTEhzm+qDokVlXc=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=SBT7EKy+U9Gl4Nb97MKk5BUx6LH1WalZaH5aUKLaV3HSgAfCfsp6Kv39xj5qw8QoI8PGWy fQB5qwWB4CSnKhucFriB1dYZpiNMKck2IQQH8m5y6SIBYRMwuHZTLx5JXUccgEdcAVY1Qj 5uFnT99c7bbbHwCDhrYjCl1tnzisx2c=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215])  by statler.isode.com (submission channel) via TCP with ESMTPSA  id <V3JXIQASxzQB@statler.isode.com>; Tue, 28 Jun 2016 11:53:21 +0100
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <56E9B7E2.7050105@isode.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <0ab055f9-8ec6-50f8-e840-500265aee979@isode.com>
Date: Tue, 28 Jun 2016 11:53:17 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
In-Reply-To: <56E9B7E2.7050105@isode.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/zi5j0McmIYwJaOr75KRvzAiAxcY>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] RGLC on draft-irtf-cfrg-xmss-hash-based-signatures-03.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 28 Jun 2016 10:53:24 -0000

On 16/03/2016 19:45, Alexey Melnikov wrote:

> This message starts 4 weeks RGLC on
> draft-irtf-cfrg-xmss-hash-based-signatures-03.txt (XMSS: Extended
> Hash-Based Signatures) which will end on April 13th. Please let chairs
> know if you think the document is ready for IRSG review (and publication
> as an RFC) or if you find any issues with it.
With apologies from chairs, we haven't officially closed the RGLC.

Can people who raised comments confirm that their comments were 
responded to and/or addressed? We would like to get confirmation that 
this is ready for publication.

Thank you,
Kenny and Alexey


From nobody Tue Jun 28 06:25:51 2016
Return-Path: <gilles.vanassche@st.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 2ADDF12DEA2 for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 06:25:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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 G_tro4qhhbB8 for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 06:25:47 -0700 (PDT)
Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 BBC4A12D643 for <cfrg@irtf.org>; Tue, 28 Jun 2016 06:25:32 -0700 (PDT)
Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5SDMPjB016124; Tue, 28 Jun 2016 15:25:21 +0200
Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 23sf359xx3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 28 Jun 2016 15:25:21 +0200
Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5618538; Tue, 28 Jun 2016 13:25:19 +0000 (GMT)
Received: from Webmail-eu.st.com (safex1hubcas6.st.com [10.75.90.73]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 21718146F; Tue, 28 Jun 2016 13:25:19 +0000 (GMT)
Received: from [10.137.2.67] (10.137.2.67) by webmail-eu.st.com (10.75.90.73) with Microsoft SMTP Server id 8.3.444.0; Tue, 28 Jun 2016 15:25:18 +0200
To: Andreas Huelsing <ietf@huelsing.net>
References: <56E9B7E2.7050105@isode.com> <56EC2EAB.3080707@st.com> <3F156D2A-326B-4A05-90BF-86AD6F6278C2@vigilsec.com> <56EFCFF7.30405@huelsing.net>
From: Gilles Van Assche <gilles.vanassche@st.com>
X-Enigmail-Draft-Status: N1110
Message-ID: <57727AC6.9090206@st.com>
Date: Tue, 28 Jun 2016 15:25:26 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <56EFCFF7.30405@huelsing.net>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-28_08:, , signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/tN_y3SM-jYBPi-t-VjuYuxKX1sk>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] RGLC on draft-irtf-cfrg-xmss-hash-based-signatures-03.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 28 Jun 2016 13:25:49 -0000

Hi Andreas,

Thanks for adding the SHA-3 parameters to the XMSS draft.

Based on the cryptanalysis results we have seen so far, SHA-3 has a
thicker safety margin than SHA-2, so it may be an interesting option to
choose in a protocol that aims for long-term security.

Kind regards,
Gilles


On 21/03/16 11:41, A. Huelsing wrote:
> Our reasoning behind choosing SHA2 for the first parameter sets was
> based on the availability of implementations in the field. However,
> this selection is not exclusive! We even describe in the document what
> has to be done to define parameter sets based on other hash functions
> / block ciphers.
>
> I think it is a question for cfrg if we want to include parameters
> based on different hash functions in this state. I guess we can easily
> include SHA3 parameters as optional if someone provides us with a
> section describing how the different function families are
> instantiated using SHA3.
>
> Andreas
>
> […]


From nobody Tue Jun 28 07:56:19 2016
Return-Path: <stephen.farrell@cs.tcd.ie>
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 7CBA41288B8 for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 07:56:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.727
X-Spam-Level: 
X-Spam-Status: No, score=-5.727 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cs.tcd.ie
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 P_-O2hu_NZci for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 07:56:14 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E9F212D0E5 for <cfrg@irtf.org>; Tue, 28 Jun 2016 07:56:14 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 68100BDF9; Tue, 28 Jun 2016 15:56:12 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yJepaid634Ta; Tue, 28 Jun 2016 15:56:10 +0100 (IST)
Received: from [10.87.48.210] (95-45-153-252-dynamic.agg2.phb.bdt-fng.eircom.net [95.45.153.252]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 5E72EBDCA; Tue, 28 Jun 2016 15:56:10 +0100 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; s=mail; t=1467125770; bh=PN2tnJ3FMsCSVypCH/djqYXLGqYKLUkRJHK0VVIExzE=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Y7fpBZoIhvTM8Xn2YsVwOc5ed8E+sExl3wNjZkDFaTrjcIblfk80j40x5U4OW4Od2 0qD0xL0hREeQgZIUjjjio4eR5gw95asVaxP9x99mbEx4y9NFoSaZMzVjUO8vWBXZay 2Q8FGbuN60WLaSGtp9pghlxn6tq0w+3poD6llK7c=
To: Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <56E9B7E2.7050105@isode.com>
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Openpgp: id=D66EA7906F0B897FB2E97D582F3C8736805F8DA2; url=
Message-ID: <5772900A.8020507@cs.tcd.ie>
Date: Tue, 28 Jun 2016 15:56:10 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
MIME-Version: 1.0
In-Reply-To: <56E9B7E2.7050105@isode.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms090901060207060504080504"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/siOpqnlFsSUEqxom5jzeBbHV-y0>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: Re: [Cfrg] RGLC on draft-irtf-cfrg-xmss-hash-based-signatures-03.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 28 Jun 2016 14:56:17 -0000

This is a cryptographically signed message in MIME format.

--------------ms090901060207060504080504
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable



Hiya,

I had a quick read of the draft. I've no comments on the
algorithm itself, but do have a strong reservation about
the text.

I would be much happier if it included some CFRG-consensus
text as to the current desirability of implementing and
deploying and depending upon any scheme that aims/claims to
be post-quantum secure (or any similar phraseology).

While a quantum computer is definitely a threat about which
we ought worry, we must also worry about people implementing
the shiny new thing badly. And about a shiny new thing that
turns out less good than expected. Or if implementing the shiny
new thing acts as a distraction to the deployment of currently
good but non quantum-resistant security or privacy mechanisms.
There may also, over time, be many shiny new things, that are
not all equal, but so that implementers lack guidance as to
which to choose. I consider all of the above are real threats
and that CFRG ought provide guidance as to how the trade-offs
between those are currently seen.

So I would really like to see a paragraph or two that is aimed
at implementers and that gives current guidance on whether or
not this is ready for prime-time. I would hope the same paragraph
could be re-used in any similar drafts.

My starting point would be to insert something like the text
below at a prominent place in the introduction:

"All quantum-resistant algorithms documented by CFRG are today
considered ready for experimentation and further engineering
development (e.g. to establish the impact of performance and sizes
on IETF protocols) but CFRG has consensus that we are not yet
sufficiently confident to the point where we would want the security
or privacy of a significant part of the Internet to be dependent on
any set of those algorithms. In future, as things mature, CFRG
intends to publish updated guidance on this topic."

If CFRG's consensus is for something much more positive than the
above, so long as that guidance is clearly justified and clearly
safe for implementers then I'll be fine with that. IOW my conservative
text above might be too conservative, but ISTM that this is a case
where do-no-harm is a good principle to follow at first.

Note: This is independent of this (or any) specific algorithm
so I hope the authors/proponents don't take this as a comment
on their algorithm. (And yes, this is sort of related text in
section 8.3, but that is IMO insufficient.)

S.

PS: The above is my comment as an individual (barely qualified:-)
participant in CFRG. As one of the current security ADs, I would
however also have to consider if the lack of some such guidance
would be something for the IESG to consider during rfc5742 conflict
review. I'm not sure if the concern above would or would not be a
valid 5742 conflict but absent some such guidance I think I'd have
to raise the issue then, so be no harm if we can resolve it now.
Apologies if I missed one before, but I think this is the first
such document to reach this stage, so now's a good time to sort
this.

PPS: That the organisation perhaps most likely to develop a QC
is also one that could potentially benefit from quantum-resistance
as a distraction, or that might have better QC based attacks, and
that that organisation is pushing us towards this kind of work, and
is also an organisation that reportedly has a gigantic (and IMO
gigantically stupid) budget for making Internet security worse...
remains a highly relevant consideration for me here. But I don't
think that that is needed to justify asking for consensus guidance
on when to depend on this stuff.



On 16/03/16 19:45, Alexey Melnikov wrote:
> This message starts 4 weeks RGLC on
> draft-irtf-cfrg-xmss-hash-based-signatures-03.txt (XMSS: Extended
> Hash-Based Signatures) which will end on April 13th. Please let chairs
> know if you think the document is ready for IRSG review (and publicatio=
n
> as an RFC) or if you find any issues with it.
>=20
> Best Regards,
> Kenny and Alexey
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>=20


--------------ms090901060207060504080504
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
CvIwggUIMIID8KADAgECAhBPzaE7pzYviUJyhmHTFBdnMA0GCSqGSIb3DQEBCwUAMHUxCzAJ
BgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBD
ZXJ0aWZpY2F0aW9uI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ljYXRpb24gQXV0aG9yaXR5MSMw
IQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQQIQT82hO6c2L4lCcoZh0xQXZzCB
nAYLKoZIhvcNAQkQAgsxgYyggYkwdTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29t
IEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSMwIQYD
VQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQQIQT82hO6c2L4lCcoZh0xQXZzANBgkq
hkiG9w0BAQEFAASCAQB9HP71LWbtxPr+a4dMP+sEl3HZu0/dVQDvRM0gK6QKD2dH1kkyGfS4
zFYHDS4Aew3DTivCihKdjyUNRH4oDgimSWkCFI3TTLLLYjzMpK0kPXl4I30Qw8F4OYS9Q05c
beku8ffVs2EYLL/bpnzst+P+TYVDQTo3XZhFzofyNSHpsQAkQUai3ydzXKYDsOTpnfuvr8Bt
/ULJgH51iZ2x+8YT47YyuwqxmTqzC9EG8PIh+ruEysd8uT2PC/IpkG0Hqmn7nRi2JElyE8On
+1QnZdMxGMdHkLxJX5Fl6SsgAKMFtFvaAq0M5723WZlgSXTpw6gXOosEghkKt5iSAwj1vcqy
AAAAAAAA
--------------ms090901060207060504080504--


From nobody Tue Jun 28 08:03:01 2016
Return-Path: <watsonbladd@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 0E32012B00C for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 08:02:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, 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 qyjRJfkAejmI for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 08:02:56 -0700 (PDT)
Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (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 E28BB12D0C5 for <cfrg@irtf.org>; Tue, 28 Jun 2016 08:02:38 -0700 (PDT)
Received: by mail-vk0-x229.google.com with SMTP id j3so25819169vkb.0 for <cfrg@irtf.org>; Tue, 28 Jun 2016 08:02:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=j6dJRME0Qt+ph4I9HM0Jp2HwQAWv/GdddR5dI8fUUdU=; b=N9nJgikNKRr94OFsadYiOXJcrkzZBNiL5A8xomSvEdHaQKD3cY8lUrj6SFgtRNBzHO Ye7r5uGMYMDM3k4SqItIt9pPIgdImr+hFV7OdXypMGK4OosO17TBXGaFQlskfhCt9kPl GfPmRfNtnQCsRqoZ47TUs38w2tWKGWUQoJSetZh0LL3If0V7Aaiz8t6jTyj8s1XupM8E o428NTeZ7VLnfwG174hANdzccnxgXNZBrvxFO1oev+Ane+LSYMOa0QubGVKvX/lNL9bR Qjj6abKPH5SB7IlA+of3I86ojP5x9FpNWQV/9r+/Zu4OY4WflW83sRzyIPQkk3el2Ycs s3RQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=j6dJRME0Qt+ph4I9HM0Jp2HwQAWv/GdddR5dI8fUUdU=; b=mEiTc2wvOKFgTHuJNZOoj6vJs7FgcJjfGYOciO7GjxIv4nq1nanjz5TvXumugVdFGe gmAlA6cxWEhVF3kLYLBY6CP94H0D4VG+Tl7Ghg1ipKt0Edg074eD9j+I+F5rqErKkvpH 7mRD8hsUG8Jzs64iZBASHY8vcXRtxjXV4uhrIjzDInwtEOpl2qnt4NyJRbo6eHJYW/4O YNR598T9xBLbYWf1b4vn5fvEk+9eLtQQDwpaYt8LbGL0F8syH3sjM7qqJugeeN+Ly9Py K8BIgXz1C470wYrrgVV9NnhczgoUvzQE/tDLZHt9P0wSffM6WuZG4EuM1avUnCpF7QoA jqMg==
X-Gm-Message-State: ALyK8tIai/tApYY1AFMYWhY0tavDsLPSKngoRbYyb64/6Vpbn1iXhX4ZMqdPA4wBTeeVxe0dxUclZMrFFRjQJA==
MIME-Version: 1.0
X-Received: by 10.31.63.129 with SMTP id m123mr793263vka.149.1467126157814; Tue, 28 Jun 2016 08:02:37 -0700 (PDT)
Received: by 10.159.35.65 with HTTP; Tue, 28 Jun 2016 08:02:36 -0700 (PDT)
Received: by 10.159.35.65 with HTTP; Tue, 28 Jun 2016 08:02:36 -0700 (PDT)
In-Reply-To: <CACsn0ck0f_XajqcB8a3SZLudO4DQc7OrRCg06j2Zk-oyHFo-Sg@mail.gmail.com>
References: <56E9B7E2.7050105@isode.com> <5772900A.8020507@cs.tcd.ie> <CACsn0ck0f_XajqcB8a3SZLudO4DQc7OrRCg06j2Zk-oyHFo-Sg@mail.gmail.com>
Date: Tue, 28 Jun 2016 08:02:36 -0700
Message-ID: <CACsn0cnodzDWrkXVD9uOac6_jHZFj7pKZziA3=nFJF4d-u6HkQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Content-Type: multipart/alternative; boundary=001a114d9af27a2fbb053657ed98
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/VtQJlxEg3SP8k_oqyvbVIYGSjic>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] RGLC on draft-irtf-cfrg-xmss-hash-based-signatures-03.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 28 Jun 2016 15:02:59 -0000

--001a114d9af27a2fbb053657ed98
Content-Type: text/plain; charset=UTF-8

On Jun 28, 2016 7:56 AM, "Stephen Farrell" <stephen.farrell@cs.tcd.ie>
wrote:
>
>
>
> Hiya,
>
> I had a quick read of the draft. I've no comments on the
> algorithm itself, but do have a strong reservation about
> the text.
>
> I would be much happier if it included some CFRG-consensus
> text as to the current desirability of implementing and
> deploying and depending upon any scheme that aims/claims to
> be post-quantum secure (or any similar phraseology).
>
> While a quantum computer is definitely a threat about which
> we ought worry, we must also worry about people implementing
> the shiny new thing badly. And about a shiny new thing that
> turns out less good than expected. Or if implementing the shiny
> new thing acts as a distraction to the deployment of currently
> good but non quantum-resistant security or privacy mechanisms.
> There may also, over time, be many shiny new things, that are
> not all equal, but so that implementers lack guidance as to
> which to choose. I consider all of the above are real threats
> and that CFRG ought provide guidance as to how the trade-offs
> between those are currently seen.
>
> So I would really like to see a paragraph or two that is aimed
> at implementers and that gives current guidance on whether or
> not this is ready for prime-time. I would hope the same paragraph
> could be re-used in any similar drafts.
>
> My starting point would be to insert something like the text
> below at a prominent place in the introduction:
>
> "All quantum-resistant algorithms documented by CFRG are today
> considered ready for experimentation and further engineering
> development (e.g. to establish the impact of performance and sizes
> on IETF protocols) but CFRG has consensus that we are not yet
> sufficiently confident to the point where we would want the security
> or privacy of a significant part of the Internet to be dependent on
> any set of those algorithms. In future, as things mature, CFRG
> intends to publish updated guidance on this topic."

We actually have significantly more confidence in XMSS security then any
other signature scheme. Signatures imply one way functions which are all
XMSS needs. There is a catch with backups I don't like, but there are
workarrounds.

>
> If CFRG's consensus is for something much more positive than the
> above, so long as that guidance is clearly justified and clearly
> safe for implementers then I'll be fine with that. IOW my conservative
> text above might be too conservative, but ISTM that this is a case
> where do-no-harm is a good principle to follow at first.
>
> Note: This is independent of this (or any) specific algorithm
> so I hope the authors/proponents don't take this as a comment
> on their algorithm. (And yes, this is sort of related text in
> section 8.3, but that is IMO insufficient.)
>
> S.
>
> PS: The above is my comment as an individual (barely qualified:-)
> participant in CFRG. As one of the current security ADs, I would
> however also have to consider if the lack of some such guidance
> would be something for the IESG to consider during rfc5742 conflict
> review. I'm not sure if the concern above would or would not be a
> valid 5742 conflict but absent some such guidance I think I'd have
> to raise the issue then, so be no harm if we can resolve it now.
> Apologies if I missed one before, but I think this is the first
> such document to reach this stage, so now's a good time to sort
> this.
>
> PPS: That the organisation perhaps most likely to develop a QC
> is also one that could potentially benefit from quantum-resistance
> as a distraction, or that might have better QC based attacks, and
> that that organisation is pushing us towards this kind of work, and
> is also an organisation that reportedly has a gigantic (and IMO
> gigantically stupid) budget for making Internet security worse...
> remains a highly relevant consideration for me here. But I don't
> think that that is needed to justify asking for consensus guidance
> on when to depend on this stuff.
>
>
>
> On 16/03/16 19:45, Alexey Melnikov wrote:
> > This message starts 4 weeks RGLC on
> > draft-irtf-cfrg-xmss-hash-based-signatures-03.txt (XMSS: Extended
> > Hash-Based Signatures) which will end on April 13th. Please let chairs
> > know if you think the document is ready for IRSG review (and publication
> > as an RFC) or if you find any issues with it.
> >
> > Best Regards,
> > Kenny and Alexey
> >
> > _______________________________________________
> > 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
>

--001a114d9af27a2fbb053657ed98
Content-Type: text/html; charset=UTF-8

<p dir="ltr"><br>
On Jun 28, 2016 7:56 AM, &quot;Stephen Farrell&quot; &lt;<a href="mailto:stephen.farrell@cs.tcd.ie">stephen.farrell@cs.tcd.ie</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hiya,<br>
&gt;<br>
&gt; I had a quick read of the draft. I&#39;ve no comments on the<br>
&gt; algorithm itself, but do have a strong reservation about<br>
&gt; the text.<br>
&gt;<br>
&gt; I would be much happier if it included some CFRG-consensus<br>
&gt; text as to the current desirability of implementing and<br>
&gt; deploying and depending upon any scheme that aims/claims to<br>
&gt; be post-quantum secure (or any similar phraseology).<br>
&gt;<br>
&gt; While a quantum computer is definitely a threat about which<br>
&gt; we ought worry, we must also worry about people implementing<br>
&gt; the shiny new thing badly. And about a shiny new thing that<br>
&gt; turns out less good than expected. Or if implementing the shiny<br>
&gt; new thing acts as a distraction to the deployment of currently<br>
&gt; good but non quantum-resistant security or privacy mechanisms.<br>
&gt; There may also, over time, be many shiny new things, that are<br>
&gt; not all equal, but so that implementers lack guidance as to<br>
&gt; which to choose. I consider all of the above are real threats<br>
&gt; and that CFRG ought provide guidance as to how the trade-offs<br>
&gt; between those are currently seen.<br>
&gt;<br>
&gt; So I would really like to see a paragraph or two that is aimed<br>
&gt; at implementers and that gives current guidance on whether or<br>
&gt; not this is ready for prime-time. I would hope the same paragraph<br>
&gt; could be re-used in any similar drafts.<br>
&gt;<br>
&gt; My starting point would be to insert something like the text<br>
&gt; below at a prominent place in the introduction:<br>
&gt;<br>
&gt; &quot;All quantum-resistant algorithms documented by CFRG are today<br>
&gt; considered ready for experimentation and further engineering<br>
&gt; development (e.g. to establish the impact of performance and sizes<br>
&gt; on IETF protocols) but CFRG has consensus that we are not yet<br>
&gt; sufficiently confident to the point where we would want the security<br>
&gt; or privacy of a significant part of the Internet to be dependent on<br>
&gt; any set of those algorithms. In future, as things mature, CFRG<br>
&gt; intends to publish updated guidance on this topic.&quot;</p>
<p dir="ltr">We actually have significantly more confidence in XMSS security then any other signature scheme. Signatures imply one way functions which are all XMSS needs. There is a catch with backups I don&#39;t like, but there are workarrounds.</p>
<p dir="ltr">&gt;<br>
&gt; If CFRG&#39;s consensus is for something much more positive than the<br>
&gt; above, so long as that guidance is clearly justified and clearly<br>
&gt; safe for implementers then I&#39;ll be fine with that. IOW my conservative<br>
&gt; text above might be too conservative, but ISTM that this is a case<br>
&gt; where do-no-harm is a good principle to follow at first.<br>
&gt;<br>
&gt; Note: This is independent of this (or any) specific algorithm<br>
&gt; so I hope the authors/proponents don&#39;t take this as a comment<br>
&gt; on their algorithm. (And yes, this is sort of related text in<br>
&gt; section 8.3, but that is IMO insufficient.)<br>
&gt;<br>
&gt; S.<br>
&gt;<br>
&gt; PS: The above is my comment as an individual (barely qualified:-)<br>
&gt; participant in CFRG. As one of the current security ADs, I would<br>
&gt; however also have to consider if the lack of some such guidance<br>
&gt; would be something for the IESG to consider during rfc5742 conflict<br>
&gt; review. I&#39;m not sure if the concern above would or would not be a<br>
&gt; valid 5742 conflict but absent some such guidance I think I&#39;d have<br>
&gt; to raise the issue then, so be no harm if we can resolve it now.<br>
&gt; Apologies if I missed one before, but I think this is the first<br>
&gt; such document to reach this stage, so now&#39;s a good time to sort<br>
&gt; this.<br>
&gt;<br>
&gt; PPS: That the organisation perhaps most likely to develop a QC<br>
&gt; is also one that could potentially benefit from quantum-resistance<br>
&gt; as a distraction, or that might have better QC based attacks, and<br>
&gt; that that organisation is pushing us towards this kind of work, and<br>
&gt; is also an organisation that reportedly has a gigantic (and IMO<br>
&gt; gigantically stupid) budget for making Internet security worse...<br>
&gt; remains a highly relevant consideration for me here. But I don&#39;t<br>
&gt; think that that is needed to justify asking for consensus guidance<br>
&gt; on when to depend on this stuff.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 16/03/16 19:45, Alexey Melnikov wrote:<br>
&gt; &gt; This message starts 4 weeks RGLC on<br>
&gt; &gt; draft-irtf-cfrg-xmss-hash-based-signatures-03.txt (XMSS: Extended<br>
&gt; &gt; Hash-Based Signatures) which will end on April 13th. Please let chairs<br>
&gt; &gt; know if you think the document is ready for IRSG review (and publication<br>
&gt; &gt; as an RFC) or if you find any issues with it.<br>
&gt; &gt;<br>
&gt; &gt; Best Regards,<br>
&gt; &gt; Kenny and Alexey<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Cfrg mailing list<br>
&gt; &gt; <a href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; &gt; <a href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
</p>

--001a114d9af27a2fbb053657ed98--


From nobody Tue Jun 28 08:08:26 2016
Return-Path: <stephen.farrell@cs.tcd.ie>
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 946C212D50C for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 08:08:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.727
X-Spam-Level: 
X-Spam-Status: No, score=-5.727 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cs.tcd.ie
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 22ohjzP2AVwz for <cfrg@ietfa.amsl.com>; Tue, 28 Jun 2016 08:08:22 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 50E3112D516 for <cfrg@irtf.org>; Tue, 28 Jun 2016 08:08:08 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id EB98FBE2C; Tue, 28 Jun 2016 16:08:06 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I3swLrwM2gN2; Tue, 28 Jun 2016 16:08:05 +0100 (IST)
Received: from [10.87.48.210] (95-45-153-252-dynamic.agg2.phb.bdt-fng.eircom.net [95.45.153.252]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 4AB1ABE25; Tue, 28 Jun 2016 16:08:05 +0100 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; s=mail; t=1467126485; bh=kWGI0N28vhDgXIlSs+x9rwNEjvYnb493j/NDsH/NPU4=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=S6MY7SQtkUntW4HlJbSyf4MNDfrlyv106z6Z7/GHQRl6x+gophYdXAcBwK1F/vpQd KT67bZkBeWx2JG5QU6eQcHVh8+gvdFqF0SM/6ujwvr3m+BayEHPWgwDB1LtHJOnZWF WvijyB67h+0smbGJFVCE/EnqTcvKiUVRuPzkaAtE=
To: Watson Ladd <watsonbladd@gmail.com>
References: <56E9B7E2.7050105@isode.com> <5772900A.8020507@cs.tcd.ie> <CACsn0ck0f_XajqcB8a3SZLudO4DQc7OrRCg06j2Zk-oyHFo-Sg@mail.gmail.com> <CACsn0cnodzDWrkXVD9uOac6_jHZFj7pKZziA3=nFJF4d-u6HkQ@mail.gmail.com>
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Openpgp: id=D66EA7906F0B897FB2E97D582F3C8736805F8DA2; url=
Message-ID: <577292D5.8000402@cs.tcd.ie>
Date: Tue, 28 Jun 2016 16:08:05 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
MIME-Version: 1.0
In-Reply-To: <CACsn0cnodzDWrkXVD9uOac6_jHZFj7pKZziA3=nFJF4d-u6HkQ@mail.gmail.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms090703000506030102070704"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/uWosfTUZl2Hu5n1GyZH6MPOSDVc>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] RGLC on draft-irtf-cfrg-xmss-hash-based-signatures-03.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 28 Jun 2016 15:08:24 -0000

This is a cryptographically signed message in MIME format.

--------------ms090703000506030102070704
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable



On 28/06/16 16:02, Watson Ladd wrote:
> We actually have significantly more confidence in XMSS security then an=
y
> other signature scheme. Signatures imply one way functions which are al=
l
> XMSS needs. There is a catch with backups I don't like, but there are
> workarrounds.

That was not my only concern and nor was my concern specific to
this scheme.

But sure, if someone wants to make a claim that this scheme is
one on which large chunks of the Internet could today safely
depend, and if that's a CFRG consensus position then saying that
would be fine.

Personally, I'd be in rough in that case, if for no other reason
that the relatively immaturity of implementations.

S.


--------------ms090703000506030102070704
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
CvIwggUIMIID8KADAgECAhBPzaE7pzYviUJyhmHTFBdnMA0GCSqGSIb3DQEBCwUAMHUxCzAJ
BgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBD
ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UEAxMaU3RhcnRDb20gQ2xhc3MgMSBDbGll
bnQgQ0EwHhcNMTYwMjA5MDkyODE1WhcNMTcwMjA5MDkyODE1WjBOMSIwIAYDVQQDDBlzdGVw
aGVuLmZhcnJlbGxAY3MudGNkLmllMSgwJgYJKoZIhvcNAQkBFhlzdGVwaGVuLmZhcnJlbGxA
Y3MudGNkLmllMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtuC0rYze/2JinSra
C9F2RjGdQZjNALLcW9C3WKTwYII3wBslobmHuPEYE5JaGItmzuKnAW619R1rD/kfoNWC19N3
rBZ6UX9Cmb9D9exCwYIwVuSwjrCQWGx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glg112
LNQLDV9pft0Iw/vDs1jb1M3YebbX0b62m2vKtZAC92P+i+PV4b5rVBoWDfusjWE6OLb+s+QH
YyKyZUV5KpeAU4PT0xKs+MWfyDv1tyqZq8MnImyXX6/0ggT3GikmmBTVdY79cvqTPEpAAksQ
AdNyblwTNsqOsYTqI/oKj5+dIOg2NFAP+oxCnoJYsHQTzIbCbN5xUkWvd3EPYxNukJIZ5Q7+
tOBBQPjsbqVn7ReIvd/AkYXcEdQBDRvJl31RAROW9rcIZ/AJ6Ha0ardSgfh/Ubmy/BRbsKqN
AAAAAAAA
--------------ms090703000506030102070704--


From nobody Thu Jun 30 20:57:48 2016
Return-Path: <ietf@augustcellars.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 BA07212D0CC for <cfrg@ietfa.amsl.com>; Thu, 30 Jun 2016 20:57:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 o7vvuW4sZUJs for <cfrg@ietfa.amsl.com>; Thu, 30 Jun 2016 20:57:45 -0700 (PDT)
Received: from smtp4.pacifier.net (smtp4.pacifier.net [64.255.237.176]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EED5712D0AD for <cfrg@ietf.org>; Thu, 30 Jun 2016 20:57:44 -0700 (PDT)
Received: from hebrews (c-24-21-96-37.hsd1.or.comcast.net [24.21.96.37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: schaad@nwlink.com) by smtp4.pacifier.net (Postfix) with ESMTPSA id 7EC3138F01 for <cfrg@ietf.org>; Thu, 30 Jun 2016 20:57:44 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: <cfrg@ietf.org>
Date: Thu, 30 Jun 2016 20:57:42 -0700
Message-ID: <013201d1d34c$b8b6d4a0$2a247de0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdHTSwmF1l1JbEJjQ4qMp+hCIoUvrw==
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/jEr1NbukegeHWMxWAoX48RLqAbM>
Resent-From: <alias-bounces@ietf.org>
Resent-To: @ietf.org
Subject: [Cfrg] Two questions on Curve25519 and HMQV
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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 Jul 2016 03:57:47 -0000

In the process of getting an analysis of what the implications of the PKIX
encoding for the Curve25519 and Curve448 curves are the following questions
have arisen:

1.  Are there any known implications of using the same key pair for both
ECDH and ECDH-HMQV?  I know that there are some security considerations in
terms of using ECDH-MQV.

2.  Are there any known issues for using the 25519 and 448 curves with HMQV
that would need to be called out?  From my simplistic view of the world, I
don't see anything that is a problem bug I cannot be sure.

Jim
 

