
From stephen.farrell@cs.tcd.ie  Wed Nov 13 14:05:34 2013
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 7877621E80FA for <cfrg@ietfa.amsl.com>; Wed, 13 Nov 2013 14:05:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.04
X-Spam-Level: 
X-Spam-Status: No, score=-103.04 tagged_above=-999 required=5 tests=[AWL=-0.793, BAYES_00=-2.599, SARE_SUB_11CONS_WORD=0.352, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iMJGBYHS59m6 for <cfrg@ietfa.amsl.com>; Wed, 13 Nov 2013 14:05:28 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id ADED121E811A for <cfrg@irtf.org>; Wed, 13 Nov 2013 14:05:27 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id F171BBE80; Wed, 13 Nov 2013 22:05:26 +0000 (GMT)
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 nFovoWoxQeEh; Wed, 13 Nov 2013 22:05:25 +0000 (GMT)
Received: from [10.87.48.12] (unknown [86.41.61.15]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 14096BE7D; Wed, 13 Nov 2013 22:05:25 +0000 (GMT)
Message-ID: <5283F7A2.5040106@cs.tcd.ie>
Date: Wed, 13 Nov 2013 22:05:22 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: "\"saag@ietf.org\" per" <saag@ietf.org>, perpass <perpass@ietf.org>,  "cfrg@irtf.org" <cfrg@irtf.org>, "secdir@ietf.org" <secdir@ietf.org>
References: <20131113215822.13869.69647.idtracker@ietfa.amsl.com>
In-Reply-To: <20131113215822.13869.69647.idtracker@ietfa.amsl.com>
X-Enigmail-Version: 1.6
X-Forwarded-Message-Id: <20131113215822.13869.69647.idtracker@ietfa.amsl.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Apps Discuss <apps-discuss@ietf.org>
Subject: [Cfrg] Fwd: New Non-WG Mailing List: dsfjdssdfsd
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Nov 2013 22:05:34 -0000

Hi,

There was some discussion in Vancouver at the secdir lunch and
the perpass BoF about better randomness recommendations and we
agreed to set up a new list. Details for that are below.

Many thanks to Dan Harkins and Paul Hoffman for agreeing to
moderate this. I think Don Eastlake is also working on an update
to RFC 4086 so this could be a useful place to talk about that.
I'm hoping that one of them will kick off the discussion in a
few days, once folks have had a chance to sign up.

Regards,
Stephen.

-------- Original Message --------
Subject: New Non-WG Mailing List: dsfjdssdfsd
Date: Wed, 13 Nov 2013 13:58:22 -0800
From: IETF Secretariat <ietf-secretariat@ietf.org>
Reply-To: ietf@ietf.org
To: IETF Announcement List <ietf-announce@ietf.org>
CC: dsfjdssdfsd@ietf.org, dharkins@lounge.org, paul.hoffman@vpnc.org

A new IETF non-working group email list has been created.

List address: dsfjdssdfsd@ietf.org
Archive:
http://www.ietf.org/mail-archive/web/dsfjdssdfsd/current/maillist.html
To subscribe: https://www.ietf.org/mailman/listinfo/dsfjdssdfsd

Purpose: The dsfjdssdfsd list provides a venue for discussion of
randomness in IETF protocols, for example related to updating RFC 4086.

For additional information, please contact the list administrators.





From rstruik.ext@gmail.com  Fri Nov 29 12:46:44 2013
Return-Path: <rstruik.ext@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD3581ADE7C for <cfrg@ietfa.amsl.com>; Fri, 29 Nov 2013 12:46:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j66zNOqVqBcI for <cfrg@ietfa.amsl.com>; Fri, 29 Nov 2013 12:46:41 -0800 (PST)
Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) by ietfa.amsl.com (Postfix) with ESMTP id 1A8F91ADDAC for <cfrg@irtf.org>; Fri, 29 Nov 2013 12:46:41 -0800 (PST)
Received: by mail-ie0-f176.google.com with SMTP id at1so16540428iec.21 for <cfrg@irtf.org>; Fri, 29 Nov 2013 12:46:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=1ZPcmCwonJJ7gL8J2rN56Omtf1TkZnjHXZXlprbCv8A=; b=ZGyvIrRZrKybyrtnO/6OK1Omix/rldiLbD46AsIRMcJHso4oKJkHT4Or8ldRNCdWps BuXP1irQLLA7kWUs2H9W6h4NTqK+KgJd2fWgP3GzIXt49HUdUWD6tA01vwtIImPFXsKW TOfxJNe2HbWBmfrwptahmQAb/LHUoC2U1iYdbiO5SHO+iWWOSR6omNWOdkA3dVlBq+KA azQSLif3Dbe4Z36DQmo4muOy3RgL8uOBLQZV0yXxhUAGIPrliVSn+YAtFsUBHEec7DsK tZ1XJyyuSIvUy3fkU02AwM1YSkrhi5foexfc94u+OGFCu7QROaPA94xA0QN5Ogdv+5sa jtVw==
X-Received: by 10.43.151.12 with SMTP id kq12mr3103120icc.55.1385757999668; Fri, 29 Nov 2013 12:46:39 -0800 (PST)
Received: from [192.168.1.102] (CPE0013100e2c51-CM001cea35caa6.cpe.net.cable.rogers.com. [99.230.254.17]) by mx.google.com with ESMTPSA id s4sm15406788ige.0.2013.11.29.12.46.37 for <cfrg@irtf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Nov 2013 12:46:38 -0800 (PST)
Message-ID: <5298FD1E.6020307@gmail.com>
Date: Fri, 29 Nov 2013 15:46:22 -0500
From: Rene Struik <rstruik.ext@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <3065D910-832C-47B6-9E0B-2F8DCD2657D2@cisco.com>
In-Reply-To: <3065D910-832C-47B6-9E0B-2F8DCD2657D2@cisco.com>
X-Forwarded-Message-Id: <3065D910-832C-47B6-9E0B-2F8DCD2657D2@cisco.com>
Content-Type: multipart/alternative; boundary="------------000305020200090508050407"
Subject: [Cfrg] review of draft-irtf-dragonfly-02 (triggered by [TLS] Working Group Last Call for draft-ietf-tls-pwd)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Nov 2013 20:46:44 -0000

This is a multi-part message in MIME format.
--------------000305020200090508050407
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Dear colleagues:

Please find below my review of the Dragonfly protocol 
(draft-irtf-cfrg-dragonfly-02).

This review was triggered by the IETF LC that was recently initiated in 
the TLS WG on the related draft draft-ietf-tls-pwd-01. However, review 
comments below *strictly* apply to the latest CFRG draft only; the 
related TLS draft will be dealt with separately. (Contrary to the 
suggestion in the IETF LC, the cryptographic constructs underlying the 
TLS draft and the CFRG draft cannot be mapped to each other.)

Note: To my knowledge, current status CFRG draft is unknown. Last 
mailing list discussion of December 12, 2012 [3] primarily focused on 
potential side channel attacks on the password-to-base point mapping, 
which triggered some changes in the draft (draft reviewed below was 
posted Aug 27, 2013). To my knowledge, contrary to implicit message in 
TLS WG LC, no "blessing" by CFRG was received.

One-line summary: While the proposed protocol could probably be made to 
work, it would require more work to get there, including removal of 
security weaknesses (see analysis below).

Review notes:

1) Abstract.
This draft proposes a password-based key agreement scheme (including key 
confirmation), based on knowledge by either party of a shared 
low-entropy password. The scheme resembles the ephemeral Diffie-Hellman 
key agreement scheme, where the generator of the DH group used is 
derived from the shared password.

2) General comments.
a) Security evidence. The protocol would benefit from detailed 
cryptanalysis, which is currently lacking. While the document 
cross-references other standards that have implemented (a variant of) 
the protocol, this should not be seen as substitute for the need to 
provide technical evidence.
b) Protocol rationale. It is unclear what makes this protocol special 
compared to other contenders: there are quite a few password-based 
protocols out there, of which one could focus on ones with similar or 
better performance and with detailed cryptanalysis.

3) Security comments (require fixing).
a) The protocol succumbs to a simple reflection attack, an elementary 
protocol attack (see [1, Section 12.9.1]), where the responding party 
simply bounces back messages sent by the initiator of the protocol. This 
follows immediately from the way the key confirmation exchange messages 
re structured (Section 3.4, p. 12). While it seems quite easy to fix the 
protocol thereby thwarting this attack, it is quite serious that this 
attack occurs in the first place (and has not been discovered yet). This 
re-emphasizes the need to have protocols accompanied by detailed 
technical rationale.
b) The protocol is claimed to be secure against passive and active 
attackers (see the Abstract). While it is easy to show that the 
Diffie-Hellman key exchange is indeed secure against passive attacks 
(see, e.g., the  informal argument on Slide 11 of [2]), security in 
context of active adversaries is unknown, contrary to what is claimed. 
In fact, Slide 12 of [2] suggests that this will be hard to prove. While 
provability also has limitations, suffice it to say that unjustified 
claims should not be made.
c) The hunting and pecking procedure (Section 3.2) has changed from one 
version of the draft to the next, primarily to thwart potential side 
channel attacks (see also discussion in [3]). Unfortunately, there are 
still many opportunities to derive password-dependent information if one 
is not *extremely careful* to implement steps correctly (in all these 
cases, this leads to a password space partitioning attack):
{Discussion relative to Section 3.2.1}
c-1) Implementation of quadratic residue test (computation of Legendre 
symbol);
c-2) Implementation of modular reduction temp variable (derivation of 
seed value);
c-3) Implementation of choice of +/- PE  (leakage of password info via 
base value, esp. lethal if one includes nonces in the base computation 
(as recommended in Section 3.2, p. 10, last para))
c-4) Implementation of the loop with not sufficiently many rounds k (the 
draft does not provide any guidance). Mailing list discussion [3] 
resulted in recommendation to pick k:=40.
c-5) The password element PE resulting from the loop is the one with 
highest counter value. This may result in implementers (or compilers) 
taking shortcuts and looping backwards, so as to avoids seemingly 
unnecessary (seemingly, since discounting implementation attacks) 
overhead. The mailing list discussion [3] resulted in the recommendation 
to pick as password element PE the middle pick, rather than the last 
pick, so as to protect implementers against their own vices.

4) Smaller comments (require fixing).
a) Section 3.2: The hunting and pecking procedure has changed from one 
version of the draft to the next. Unfortunately, the last changes still 
has bugs, thereby suggesting the draft to be unstable: a-1) In Section 
3.2.1, the temp variable should be expressed in terms of base in 
kdf-n(base,...), and not in terms of uninitiated variable seed in 
kdf-n(seed, ...); a-2) Similar remark as in #a above, but now w.r.t. 
Finite Field groups.
b) Section 3.1, Assumption 2: The function F (point-to-x-coordinate 
mapping in case of elliptic curves) is not an injection: after all, 
point Q and -Q have the same x-coordinate.
c) Section 3.1, Assumption 4: the security of the protocol depends on 
the intractability of the Diffie-Hellman problem, not on that of the 
discrete log problem (it is not always known whether the former is as 
hard as the latter).
d) Section 3.2, p. 9, last sentence: this is an example where "64 more 
bits than needed" is false, since obviously needed to counter potential 
bias of modular reduction if the modulus p is not close to a power of two.
e) Section 3.2, p. 10, last sentence: mixing-in nonces with the PE 
procedure yields a set of pairs {(r,Q(pwd,r)}, which may be exploited 
via side channel analysis.
f) Section 3.2.2, p. 11: The title suggests MODP groups, whereas any 
subgroup, not just the ones of safe-prime groups, is -- I presume -- meant.
g) Section 3.3, p. 12, first para: it is not clear why the private key 
and mask should be in range [2,q-1]; in passive attack case, one only 
needs that private key is in [1,q-1]; mask can be any value.
h) Section 3.3, p. 12: the mechanism by which kck and mk are derived is 
ambiguous (any split of the concatenated string will do right now).
i) Section 6, p. 14, second para: on-the-fly generation of groups with 
random domain parameters is so dangerous that it should be forbidden 
outright (not just recommended).
j) Section 2.1, p. 5, 6th para: scalar operation is addition (not 
multiplication) of a point to itself. Later on in the same para: is 
added (x-1)-times to itself...

5) Typos, etc.
a) Abstract: fix cryptogprahy
b) Section 2: fix Discete log crypto;
c) Section 3.2: fix Derviation.
d) Throughout: fix dragonfly (capitalize).
etc. (many more)

Ref:
[1] A. Menezes, P. van Oorschot, S. Vanstone, "Handbook of Applied 
Cryptography", CRC Press: 1995.
[2] presentation at CFRG meeting during IETF-83, Paris, France, March 
26-30, 2012: http://www.ietf.org/proceedings/83/slides/slides-83-cfrg-0.pdf
[3] CFRG mailing list discussion, see, e.g., December 12, 2012 
discussion by Kevin Igoe et al: 
http://www.ietf.org/mail-archive/web/cfrg/current/msg03258.html




-------- Original Message --------
Subject: 	[TLS] Working Group Last Call for draft-ietf-tls-pwd
Date: 	Fri, 8 Nov 2013 01:11:39 +0000
From: 	Joseph Salowey (jsalowey) <jsalowey@cisco.com>
To: 	<tls@ietf.org> <tls@ietf.org>



This is the beginning of the working group last call for  draft-ietf-tls-pwd-01.
The underlying cryptographic protocol for TLS-PWD has been reviewed by the IRTF CFRG
group with satisfactory results.  The document needs particular attention paid to the
integration of this mechanism into the TLS protocol.
Please send comments to the TLS list by December 2, 2013.

- Joe
(For the TLS chairs)
_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls




--------------000305020200090508050407
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear colleagues:<br>
    <br>
    Please find below my review of the Dragonfly protocol
    (draft-irtf-cfrg-dragonfly-02). <br>
    <br>
    This review was triggered by the IETF LC that was recently initiated
    in the TLS WG on the related draft draft-ietf-tls-pwd-01. However,
    review comments below *strictly* apply to the latest CFRG draft
    only; the related TLS draft will be dealt with separately. (Contrary
    to the suggestion in the IETF LC, the cryptographic constructs
    underlying the TLS draft and the CFRG draft cannot be mapped to each
    other.) <br>
    <br>
    Note: To my knowledge, current status CFRG draft is unknown. Last
    mailing list discussion of December 12, 2012 [3] primarily focused
    on potential side channel attacks on the password-to-base point
    mapping, which triggered some changes in the draft (draft reviewed
    below was posted Aug 27, 2013). To my knowledge, contrary to
    implicit message in TLS WG LC, no "blessing" by CFRG was received.<br>
    <br>
    One-line summary: While the proposed protocol could probably be made
    to work, it would require more work to get there, including removal
    of security weaknesses (see analysis below).<br>
    <br>
    Review notes:<br>
    <br>
    1) Abstract.<br>
    This draft proposes a password-based key agreement scheme (including
    key confirmation), based on knowledge by either party of a shared
    low-entropy password. The scheme resembles the ephemeral
    Diffie-Hellman key agreement scheme, where the generator of the DH
    group used is derived from the shared password.&nbsp; <br>
    <br>
    2) General comments.<br>
    a) Security evidence. The protocol would benefit from detailed
    cryptanalysis, which is currently lacking. While the document
    cross-references other standards that have implemented (a variant
    of) the protocol, this should not be seen as substitute for the need
    to provide technical evidence. <br>
    b) Protocol rationale. It is unclear what makes this protocol
    special compared to other contenders: there are quite a few
    password-based protocols out there, of which one could focus on ones
    with similar or better performance and with detailed cryptanalysis.<br>
    <br>
    3) Security comments (require fixing).<br>
    a) The protocol succumbs to a simple reflection attack, an
    elementary protocol attack (see [1, Section 12.9.1]), where the
    responding party simply bounces back messages sent by the initiator
    of the protocol. This follows immediately from the way the key
    confirmation exchange messages re structured (Section 3.4, p. 12).
    While it seems quite easy to fix the protocol thereby thwarting this
    attack, it is quite serious that this attack occurs in the first
    place (and has not been discovered yet). This re-emphasizes the need
    to have protocols accompanied by detailed technical rationale.<br>
    b) The protocol is claimed to be secure against passive and active
    attackers (see the Abstract). While it is easy to show that the
    Diffie-Hellman key exchange is indeed secure against passive attacks
    (see, e.g., the&nbsp; informal argument on Slide 11 of [2]), security in
    context of active adversaries is unknown, contrary to what is
    claimed. In fact, Slide 12 of [2] suggests that this will be hard to
    prove. While provability also has limitations, suffice it to say
    that unjustified claims should not be made.<br>
    c) The hunting and pecking procedure (Section 3.2) has changed from
    one version of the draft to the next, primarily to thwart potential
    side channel attacks (see also discussion in [3]). Unfortunately,
    there are still many opportunities to derive password-dependent
    information if one is not *extremely careful* to implement steps
    correctly (in all these cases, this leads to a password space
    partitioning attack): <br>
    {Discussion relative to Section 3.2.1}<br>
    c-1) Implementation of quadratic residue test (computation of
    Legendre symbol);<br>
    c-2) Implementation of modular reduction temp variable (derivation
    of seed value); <br>
    c-3) Implementation of choice of +/- PE&nbsp; (leakage of password info
    via base value, esp. lethal if one includes nonces in the base
    computation (as recommended in Section 3.2, p. 10, last para))<br>
    c-4) Implementation of the loop with not sufficiently many rounds k
    (the draft does not provide any guidance). Mailing list discussion
    [3] resulted in recommendation to pick k:=40.<br>
    c-5) The password element PE resulting from the loop is the one with
    highest counter value. This may result in implementers (or
    compilers) taking shortcuts and looping backwards, so as to avoids
    seemingly unnecessary (seemingly, since discounting implementation
    attacks) overhead. The mailing list discussion [3] resulted in the
    recommendation to pick as password element PE the middle pick,
    rather than the last pick, so as to protect implementers against
    their own vices.<br>
    <br>
    4) Smaller comments (require fixing).<br>
    a) Section 3.2: The hunting and pecking procedure has changed from
    one version of the draft to the next. Unfortunately, the last
    changes still has bugs, thereby suggesting the draft to be unstable:
    a-1) In Section 3.2.1, the temp variable should be expressed in
    terms of base in kdf-n(base,...), and not in terms of uninitiated
    variable seed in kdf-n(seed, ...); a-2) Similar remark as in #a
    above, but now w.r.t. Finite Field groups.<br>
    b) Section 3.1, Assumption 2: The function F (point-to-x-coordinate
    mapping in case of elliptic curves) is not an injection: after all,
    point Q and -Q have the same x-coordinate.<br>
    c) Section 3.1, Assumption 4: the security of the protocol depends
    on the intractability of the Diffie-Hellman problem, not on that of
    the discrete log problem (it is not always known whether the former
    is as hard as the latter).<br>
    d) Section 3.2, p. 9, last sentence: this is an example where "64
    more bits than needed" is false, since obviously needed to counter
    potential bias of modular reduction if the modulus p is not close to
    a power of two.<br>
    e) Section 3.2, p. 10, last sentence: mixing-in nonces with the PE
    procedure yields a set of pairs {(r,Q(pwd,r)}, which may be
    exploited via side channel analysis.<br>
    f) Section 3.2.2, p. 11: The title suggests MODP groups, whereas any
    subgroup, not just the ones of safe-prime groups, is -- I presume --
    meant.<br>
    g) Section 3.3, p. 12, first para: it is not clear why the private
    key and mask should be in range [2,q-1]; in passive attack case, one
    only needs that private key is in [1,q-1]; mask can be any value.<br>
    h) Section 3.3, p. 12: the mechanism by which kck and mk are derived
    is ambiguous (any split of the concatenated string will do right
    now).<br>
    i) Section 6, p. 14, second para: on-the-fly generation of groups
    with random domain parameters is so dangerous that it should be
    forbidden outright (not just recommended).<br>
    j) Section 2.1, p. 5, 6th para: scalar operation is addition (not
    multiplication) of a point to itself. Later on in the same para: is
    added (x-1)-times to itself...<br>
    <br>
    5) Typos, etc.<br>
    a) Abstract: fix cryptogprahy <br>
    b) Section 2: fix Discete log crypto;<br>
    c) Section 3.2: fix Derviation.<br>
    d) Throughout: fix dragonfly (capitalize).<br>
    etc. (many more)<br>
    <br>
    Ref:<br>
    [1] A. Menezes, P. van Oorschot, S. Vanstone, "Handbook of Applied
    Cryptography", CRC Press: 1995.<br>
    [2] presentation at CFRG meeting during IETF-83, Paris, France,
    March 26-30, 2012: <a
      href="http://www.ietf.org/proceedings/83/slides/slides-83-cfrg-0.pdf">http://www.ietf.org/proceedings/83/slides/slides-83-cfrg-0.pdf</a><br>
    [3] CFRG mailing list discussion, see, e.g., December 12, 2012
    discussion by Kevin Igoe et al:&nbsp; <a
      href="http://www.ietf.org/mail-archive/web/cfrg/current/msg03258.html">http://www.ietf.org/mail-archive/web/cfrg/current/msg03258.html</a><br>
    <br>
    <br>
    <br>
    <div class="moz-forward-container"><br>
      -------- Original Message --------
      <table class="moz-email-headers-table" cellpadding="0"
        cellspacing="0" border="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>[TLS] Working Group Last Call for draft-ietf-tls-pwd</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Fri, 8 Nov 2013 01:11:39 +0000</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Joseph Salowey (jsalowey) <a class="moz-txt-link-rfc2396E" href="mailto:jsalowey@cisco.com">&lt;jsalowey@cisco.com&gt;</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td><a class="moz-txt-link-rfc2396E" href="mailto:tls@ietf.org">&lt;tls@ietf.org&gt;</a> <a class="moz-txt-link-rfc2396E" href="mailto:tls@ietf.org">&lt;tls@ietf.org&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>This is the beginning of the working group last call for  draft-ietf-tls-pwd-01.   
The underlying cryptographic protocol for TLS-PWD has been reviewed by the IRTF CFRG 
group with satisfactory results.  The document needs particular attention paid to the 
integration of this mechanism into the TLS protocol.   
Please send comments to the TLS list by December 2, 2013.  

- Joe
(For the TLS chairs)
_______________________________________________
TLS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TLS@ietf.org">TLS@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/tls">https://www.ietf.org/mailman/listinfo/tls</a>
</pre>
      <br>
    </div>
    <br>
  </body>
</html>

--------------000305020200090508050407--

From dol@cryptocom.ru  Sat Nov 30 04:48:33 2013
Return-Path: <dol@cryptocom.ru>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 710311AE425 for <cfrg@ietfa.amsl.com>; Sat, 30 Nov 2013 04:48:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.27
X-Spam-Level: **
X-Spam-Status: No, score=2.27 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_RU=0.595, HOST_EQ_RU=0.875, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001] autolearn=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 ADbbaOupy5z7 for <cfrg@ietfa.amsl.com>; Sat, 30 Nov 2013 04:48:31 -0800 (PST)
Received: from mx.cryptocom.ru (mx.cryptocom.ru [31.28.5.89]) by ietfa.amsl.com (Postfix) with ESMTP id 22CEF1AE017 for <cfrg@irtf.org>; Sat, 30 Nov 2013 04:48:30 -0800 (PST)
Received: from [192.168.63.8] (broadband-188-255-54-202.nationalcablenetworks.ru [188.255.54.202]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.cryptocom.ru (Postfix) with ESMTP id 6CABB46453 for <cfrg@irtf.org>; Sat, 30 Nov 2013 16:48:28 +0400 (GMT-4)
From: Basil Dolmatov <dol@cryptocom.ru>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D0FE613D-E0FC-48B2-9C66-3C49114AF340"
Message-Id: <0A739F2E-DF22-4A8E-9248-1FCE80E61601@cryptocom.ru>
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\))
Date: Sat, 30 Nov 2013 16:48:22 +0400
References: <3065D910-832C-47B6-9E0B-2F8DCD2657D2@cisco.com> <5298FD1E.6020307@gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
In-Reply-To: <5298FD1E.6020307@gmail.com>
X-Mailer: Apple Mail (2.1822)
Subject: [Cfrg] Open competition for GOST 34.11.2012 hash function investigation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 30 Nov 2013 12:48:33 -0000

--Apple-Mail=_D0FE613D-E0FC-48B2-9C66-3C49114AF340
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1


Dear colleagues,

I think  that this can be of interest for list participants:

PROVISION
on the Open Research Paper Competition on Hash-Function GOST R =
34.11-2012=20

...
There are 16 tasks, publications about which will be accepted. =
Submissions to the competition can be made up to 28 February 2014

For more details, please refer to www.streebog.info (choose ENG as a =
language) or specifically to =
http://www.streebog.info/upload/documents/polozhenie_full_eng.pdf

I hope that someone can find these tasks interesting. Please fell free =
to distribute this information to anyone who could be interested in =
participation.


dol@



--Apple-Mail=_D0FE613D-E0FC-48B2-9C66-3C49114AF340
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=iso-8859-1

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div>Dear colleagues,</div><div><br></div><div>I think &nbsp;that this can be of interest for list participants:</div><div><br></div><div>
		
	
	
		<div class="page" title="Page 1">
			<div class="layoutArea">
				<div class="column"><p style="font-size: 8px;"><span style="font-size: 17px; font-family: 'Calibri,Bold';">PROVISION<br>
on the Open Research Paper Competition
on Hash-Function GOST R 34.11-2012&nbsp;</span></p><div>...</div><div>There are 16 tasks, publications about which will be accepted. Submissions to the competition can be made up to 28 February 2014</div><div><br></div><div>For more details, please refer to <a href="http://www.streebog.info">www.streebog.info</a> (choose ENG as a language) or specifically to&nbsp;<a href="http://www.streebog.info/upload/documents/polozhenie_full_eng.pdf">http://www.streebog.info/upload/documents/polozhenie_full_eng.pdf</a></div><div><br></div><div>I hope that someone can find these tasks interesting. Please fell free to distribute this information to anyone who could be interested in participation.</div><div><br></div><div><br></div><div>dol@</div><div><br></div><div><br></div>
				</div>
			</div>
		</div></div></body></html>
--Apple-Mail=_D0FE613D-E0FC-48B2-9C66-3C49114AF340--

From feng.hao@newcastle.ac.uk  Sat Nov 30 13:03:34 2013
Return-Path: <feng.hao@newcastle.ac.uk>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 848581AE477 for <cfrg@ietfa.amsl.com>; Sat, 30 Nov 2013 13:03:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fFr4FKbZuOKv for <cfrg@ietfa.amsl.com>; Sat, 30 Nov 2013 13:03:29 -0800 (PST)
Received: from cheviot22.ncl.ac.uk (cheviot22.ncl.ac.uk [128.240.234.22]) by ietfa.amsl.com (Postfix) with ESMTP id D604B1ADE8B for <cfrg@irtf.org>; Sat, 30 Nov 2013 13:03:27 -0800 (PST)
Received: from exhubvm01.ncl.ac.uk ([128.240.234.5] helo=EXHUBVM01.campus.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from <feng.hao@newcastle.ac.uk>) id 1VmrhE-0007ng-FI; Sat, 30 Nov 2013 21:03:24 +0000
Received: from EXMBDB02.campus.ncl.ac.uk ([fe80::c039:e17:9d60:9f3]) by EXHUBVM01.campus.ncl.ac.uk ([2002:80f0:ea05::80f0:ea05]) with mapi id 14.03.0158.001; Sat, 30 Nov 2013 21:03:22 +0000
From: Feng Hao <feng.hao@newcastle.ac.uk>
To: Rene Struik <rstruik.ext@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] review of draft-irtf-dragonfly-02 (triggered by [TLS] Working Group Last Call for draft-ietf-tls-pwd)
Thread-Index: AQHO7UQmRgd+PvGDc0ijm2Fw/Qar55o+RKcA
Date: Sat, 30 Nov 2013 21:03:21 +0000
Message-ID: <CEBF98E6.221C2%feng.hao@newcastle.ac.uk>
In-Reply-To: <5298FD1E.6020307@gmail.com>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.10.0.110310
x-originating-ip: [10.4.160.7]
Content-Type: multipart/alternative; boundary="_000_CEBF98E6221C2fenghaonewcastleacuk_"
MIME-Version: 1.0
Subject: Re: [Cfrg] review of draft-irtf-dragonfly-02 (triggered by [TLS] Working Group Last Call for draft-ietf-tls-pwd)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 30 Nov 2013 21:03:34 -0000

--_000_CEBF98E6221C2fenghaonewcastleacuk_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Dear Rene and members on the list,

I am new to this list, so please pardon me for my unfamiliarity with how th=
ings work in CFRG.

Regarding the comment on a lack of cryptanalysis on the dragonfly protocol,=
 there is a paper (in press) to be published by IET Information Security.

A preprint of the paper can be found at:

http://homepages.cs.ncl.ac.uk/feng.hao/files/Dragonfly_final.pdf

The attack is caused by a lack of public key validation in the protocol (dr=
agonfly-00). We communicated the attack to Dan in private emails (and we th=
ank Dan for quick feedback). As I understand it, addressing the attack is o=
ne of the major changes in the later versions of the draft.

On the subject of PAKE, besides considering dragonfly, I would suggest peop=
le on the list to spare a moment to consider J-PAKE as another potential ca=
ndidate.

The J-PAKE protocol was designed by Peter Ryan and myself in 2008. From the=
 day the paper was presented at SPW'08, we decided to write a blog and be f=
ully open to any comments, questions and critiques from anyone over the Int=
ernet. You can find the full track of discussions and developments of J-PAK=
E in the blog below:

http://www.lightbluetouchpaper.org/2008/05/29/j-pake/

After 5 years of public scrutiny with no attacks found,  I feel now may be =
a good time to recommend J-PAKE for more general use. In fact, J-PAKE has a=
lready been used in real-world applications at a relatively large scale. No=
te that by design, J-PAKE is naturally fit for elliptic curve implementatio=
n without change in the protocol - more specifically, it doesn't require an=
y mapping=96to=96curve function as in dragonfly or SPEKE. More details abou=
t J=96PAKE can be found in the Internet draft below:

J-PAKE Internet-draft: http://datatracker.ietf.org/doc/draft-hao-jpake/

I am happy to answer any questions if anyone on the list is interested.

Best regards,
Feng

From: Rene Struik <rstruik.ext@gmail.com<mailto:rstruik.ext@gmail.com>>
Date: Fri, 29 Nov 2013 15:46:22 -0500
To: "cfrg@irtf.org<mailto:cfrg@irtf.org>" <cfrg@irtf.org<mailto:cfrg@irtf.o=
rg>>
Subject: [Cfrg] review of draft-irtf-dragonfly-02 (triggered by [TLS] Worki=
ng Group Last Call for draft-ietf-tls-pwd)

Dear colleagues:

Please find below my review of the Dragonfly protocol (draft-irtf-cfrg-drag=
onfly-02).

This review was triggered by the IETF LC that was recently initiated in the=
 TLS WG on the related draft draft-ietf-tls-pwd-01. However, review comment=
s below *strictly* apply to the latest CFRG draft only; the related TLS dra=
ft will be dealt with separately. (Contrary to the suggestion in the IETF L=
C, the cryptographic constructs underlying the TLS draft and the CFRG draft=
 cannot be mapped to each other.)

Note: To my knowledge, current status CFRG draft is unknown. Last mailing l=
ist discussion of December 12, 2012 [3] primarily focused on potential side=
 channel attacks on the password-to-base point mapping, which triggered som=
e changes in the draft (draft reviewed below was posted Aug 27, 2013). To m=
y knowledge, contrary to implicit message in TLS WG LC, no "blessing" by CF=
RG was received.

One-line summary: While the proposed protocol could probably be made to wor=
k, it would require more work to get there, including removal of security w=
eaknesses (see analysis below).

Review notes:

1) Abstract.
This draft proposes a password-based key agreement scheme (including key co=
nfirmation), based on knowledge by either party of a shared low-entropy pas=
sword. The scheme resembles the ephemeral Diffie-Hellman key agreement sche=
me, where the generator of the DH group used is derived from the shared pas=
sword.

2) General comments.
a) Security evidence. The protocol would benefit from detailed cryptanalysi=
s, which is currently lacking. While the document cross-references other st=
andards that have implemented (a variant of) the protocol, this should not =
be seen as substitute for the need to provide technical evidence.
b) Protocol rationale. It is unclear what makes this protocol special compa=
red to other contenders: there are quite a few password-based protocols out=
 there, of which one could focus on ones with similar or better performance=
 and with detailed cryptanalysis.

3) Security comments (require fixing).
a) The protocol succumbs to a simple reflection attack, an elementary proto=
col attack (see [1, Section 12.9.1]), where the responding party simply bou=
nces back messages sent by the initiator of the protocol. This follows imme=
diately from the way the key confirmation exchange messages re structured (=
Section 3.4, p. 12). While it seems quite easy to fix the protocol thereby =
thwarting this attack, it is quite serious that this attack occurs in the f=
irst place (and has not been discovered yet). This re-emphasizes the need t=
o have protocols accompanied by detailed technical rationale.
b) The protocol is claimed to be secure against passive and active attacker=
s (see the Abstract). While it is easy to show that the Diffie-Hellman key =
exchange is indeed secure against passive attacks (see, e.g., the  informal=
 argument on Slide 11 of [2]), security in context of active adversaries is=
 unknown, contrary to what is claimed. In fact, Slide 12 of [2] suggests th=
at this will be hard to prove. While provability also has limitations, suff=
ice it to say that unjustified claims should not be made.
c) The hunting and pecking procedure (Section 3.2) has changed from one ver=
sion of the draft to the next, primarily to thwart potential side channel a=
ttacks (see also discussion in [3]). Unfortunately, there are still many op=
portunities to derive password-dependent information if one is not *extreme=
ly careful* to implement steps correctly (in all these cases, this leads to=
 a password space partitioning attack):
{Discussion relative to Section 3.2.1}
c-1) Implementation of quadratic residue test (computation of Legendre symb=
ol);
c-2) Implementation of modular reduction temp variable (derivation of seed =
value);
c-3) Implementation of choice of +/- PE  (leakage of password info via base=
 value, esp. lethal if one includes nonces in the base computation (as reco=
mmended in Section 3.2, p. 10, last para))
c-4) Implementation of the loop with not sufficiently many rounds k (the dr=
aft does not provide any guidance). Mailing list discussion [3] resulted in=
 recommendation to pick k:=3D40.
c-5) The password element PE resulting from the loop is the one with highes=
t counter value. This may result in implementers (or compilers) taking shor=
tcuts and looping backwards, so as to avoids seemingly unnecessary (seeming=
ly, since discounting implementation attacks) overhead. The mailing list di=
scussion [3] resulted in the recommendation to pick as password element PE =
the middle pick, rather than the last pick, so as to protect implementers a=
gainst their own vices.

4) Smaller comments (require fixing).
a) Section 3.2: The hunting and pecking procedure has changed from one vers=
ion of the draft to the next. Unfortunately, the last changes still has bug=
s, thereby suggesting the draft to be unstable: a-1) In Section 3.2.1, the =
temp variable should be expressed in terms of base in kdf-n(base,...), and =
not in terms of uninitiated variable seed in kdf-n(seed, ...); a-2) Similar=
 remark as in #a above, but now w.r.t. Finite Field groups.
b) Section 3.1, Assumption 2: The function F (point-to-x-coordinate mapping=
 in case of elliptic curves) is not an injection: after all, point Q and -Q=
 have the same x-coordinate.
c) Section 3.1, Assumption 4: the security of the protocol depends on the i=
ntractability of the Diffie-Hellman problem, not on that of the discrete lo=
g problem (it is not always known whether the former is as hard as the latt=
er).
d) Section 3.2, p. 9, last sentence: this is an example where "64 more bits=
 than needed" is false, since obviously needed to counter potential bias of=
 modular reduction if the modulus p is not close to a power of two.
e) Section 3.2, p. 10, last sentence: mixing-in nonces with the PE procedur=
e yields a set of pairs {(r,Q(pwd,r)}, which may be exploited via side chan=
nel analysis.
f) Section 3.2.2, p. 11: The title suggests MODP groups, whereas any subgro=
up, not just the ones of safe-prime groups, is -- I presume -- meant.
g) Section 3.3, p. 12, first para: it is not clear why the private key and =
mask should be in range [2,q-1]; in passive attack case, one only needs tha=
t private key is in [1,q-1]; mask can be any value.
h) Section 3.3, p. 12: the mechanism by which kck and mk are derived is amb=
iguous (any split of the concatenated string will do right now).
i) Section 6, p. 14, second para: on-the-fly generation of groups with rand=
om domain parameters is so dangerous that it should be forbidden outright (=
not just recommended).
j) Section 2.1, p. 5, 6th para: scalar operation is addition (not multiplic=
ation) of a point to itself. Later on in the same para: is added (x-1)-time=
s to itself...

5) Typos, etc.
a) Abstract: fix cryptogprahy
b) Section 2: fix Discete log crypto;
c) Section 3.2: fix Derviation.
d) Throughout: fix dragonfly (capitalize).
etc. (many more)

Ref:
[1] A. Menezes, P. van Oorschot, S. Vanstone, "Handbook of Applied Cryptogr=
aphy", CRC Press: 1995.
[2] presentation at CFRG meeting during IETF-83, Paris, France, March 26-30=
, 2012: http://www.ietf.org/proceedings/83/slides/slides-83-cfrg-0.pdf
[3] CFRG mailing list discussion, see, e.g., December 12, 2012 discussion b=
y Kevin Igoe et al:  http://www.ietf.org/mail-archive/web/cfrg/current/msg0=
3258.html




-------- Original Message --------
Subject:        [TLS] Working Group Last Call for draft-ietf-tls-pwd
Date:   Fri, 8 Nov 2013 01:11:39 +0000
From:   Joseph Salowey (jsalowey) <jsalowey@cisco.com><mailto:jsalowey@cisc=
o.com>
To:     <tls@ietf.org><mailto:tls@ietf.org> <tls@ietf.org><mailto:tls@ietf.=
org>



This is the beginning of the working group last call for  draft-ietf-tls-pw=
d-01.
The underlying cryptographic protocol for TLS-PWD has been reviewed by the =
IRTF CFRG
group with satisfactory results.  The document needs particular attention p=
aid to the
integration of this mechanism into the TLS protocol.
Please send comments to the TLS list by December 2, 2013.

- Joe
(For the TLS chairs)
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>https://www.ietf.org/mailman/listinfo/tls


_______________________________________________ Cfrg mailing list Cfrg@irtf=
.org<mailto:Cfrg@irtf.org>http://www.irtf.org/mailman/listinfo/cfrg

--_000_CEBF98E6221C2fenghaonewcastleacuk_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <E509EFD8FEECDA45862854EA85573052@fangorn.ncl.ac.uk>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, =
sans-serif; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-b=
reak: after-white-space; ">
<div>Dear Rene and members on the list,</div>
<div><br>
</div>
<div>I am new to this list, so please pardon me for my unfamiliarity with h=
ow things work in CFRG.</div>
<div><br>
</div>
<div>Regarding the comment on a lack of cryptanalysis on the dragonfly prot=
ocol, there is a paper (in press) to be published by IET Information Securi=
ty.</div>
<div><br>
</div>
<div>A preprint of the paper can be found at:</div>
<div><br>
</div>
<div><a href=3D"http://homepages.cs.ncl.ac.uk/feng.hao/files/Dragonfly_fina=
l.pdf">http://homepages.cs.ncl.ac.uk/feng.hao/files/Dragonfly_final.pdf</a>=
</div>
<div><br>
</div>
<div>The attack is caused by a lack of public key validation in the protoco=
l (dragonfly-00).&nbsp;We communicated the attack to Dan in private emails =
(and we thank Dan for quick feedback). As I understand it, addressing the a=
ttack is one of the major changes in
 the later versions of the draft.&nbsp;</div>
<div><br>
</div>
<div>On the subject of PAKE, besides considering dragonfly, I would suggest=
 people on the list to spare a moment to consider J-PAKE as another potenti=
al candidate.&nbsp;</div>
<div><br>
</div>
<div>The J-PAKE protocol was designed by Peter Ryan and myself in 2008. Fro=
m the day the paper was presented at SPW'08, we decided to write a blog and=
 be fully open to any comments, questions and critiques from anyone over th=
e Internet.&nbsp;You can find the full
 track of discussions and developments of J-PAKE in the blog below:</div>
<div><br>
</div>
<div><a href=3D"http://www.lightbluetouchpaper.org/2008/05/29/j-pake">http:=
//www.lightbluetouchpaper.org/2008/05/29/j-pake</a>/</div>
<div><br>
</div>
<div>After 5 years of public scrutiny with no attacks found, &nbsp;I feel n=
ow may be a good time to recommend J-PAKE for more general use. In fact, J-=
PAKE has already been used in real-world applications at a relatively large=
 scale. Note that by design, J-PAKE is
 naturally fit for elliptic curve implementation without change in the prot=
ocol - more specifically, it doesn't require any mapping=96to=96curve funct=
ion as in dragonfly or SPEKE. More details about J=96PAKE can be found in t=
he Internet draft below:</div>
<div><br>
</div>
<div>
<div>J-PAKE Internet-draft:&nbsp;<a href=3D"http://datatracker.ietf.org/doc=
/draft-hao-jpake">http://datatracker.ietf.org/doc/draft-hao-jpake</a>/</div=
>
</div>
<div><br>
</div>
<div>I am happy to answer any questions if anyone on the list is interested=
.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Feng</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Rene Struik &lt;<a href=3D"ma=
ilto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Fri, 29 Nov 2013 15:46:22 -05=
00<br>
<span style=3D"font-weight:bold">To: </span>&quot;<a href=3D"mailto:cfrg@ir=
tf.org">cfrg@irtf.org</a>&quot; &lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@i=
rtf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>[Cfrg] review of draft-irt=
f-dragonfly-02 (triggered by [TLS] Working Group Last Call for draft-ietf-t=
ls-pwd)<br>
</div>
<div><br>
</div>
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">Dear colleagues:<br>
<br>
Please find below my review of the Dragonfly protocol (draft-irtf-cfrg-drag=
onfly-02).
<br>
<br>
This review was triggered by the IETF LC that was recently initiated in the=
 TLS WG on the related draft draft-ietf-tls-pwd-01. However, review comment=
s below *strictly* apply to the latest CFRG draft only; the related TLS dra=
ft will be dealt with separately.
 (Contrary to the suggestion in the IETF LC, the cryptographic constructs u=
nderlying the TLS draft and the CFRG draft cannot be mapped to each other.)
<br>
<br>
Note: To my knowledge, current status CFRG draft is unknown. Last mailing l=
ist discussion of December 12, 2012 [3] primarily focused on potential side=
 channel attacks on the password-to-base point mapping, which triggered som=
e changes in the draft (draft reviewed
 below was posted Aug 27, 2013). To my knowledge, contrary to implicit mess=
age in TLS WG LC, no &quot;blessing&quot; by CFRG was received.<br>
<br>
One-line summary: While the proposed protocol could probably be made to wor=
k, it would require more work to get there, including removal of security w=
eaknesses (see analysis below).<br>
<br>
Review notes:<br>
<br>
1) Abstract.<br>
This draft proposes a password-based key agreement scheme (including key co=
nfirmation), based on knowledge by either party of a shared low-entropy pas=
sword. The scheme resembles the ephemeral Diffie-Hellman key agreement sche=
me, where the generator of the DH
 group used is derived from the shared password.&nbsp; <br>
<br>
2) General comments.<br>
a) Security evidence. The protocol would benefit from detailed cryptanalysi=
s, which is currently lacking. While the document cross-references other st=
andards that have implemented (a variant of) the protocol, this should not =
be seen as substitute for the need
 to provide technical evidence. <br>
b) Protocol rationale. It is unclear what makes this protocol special compa=
red to other contenders: there are quite a few password-based protocols out=
 there, of which one could focus on ones with similar or better performance=
 and with detailed cryptanalysis.<br>
<br>
3) Security comments (require fixing).<br>
a) The protocol succumbs to a simple reflection attack, an elementary proto=
col attack (see [1, Section 12.9.1]), where the responding party simply bou=
nces back messages sent by the initiator of the protocol. This follows imme=
diately from the way the key confirmation
 exchange messages re structured (Section 3.4, p. 12). While it seems quite=
 easy to fix the protocol thereby thwarting this attack, it is quite seriou=
s that this attack occurs in the first place (and has not been discovered y=
et). This re-emphasizes the need
 to have protocols accompanied by detailed technical rationale.<br>
b) The protocol is claimed to be secure against passive and active attacker=
s (see the Abstract). While it is easy to show that the Diffie-Hellman key =
exchange is indeed secure against passive attacks (see, e.g., the&nbsp; inf=
ormal argument on Slide 11 of [2]), security
 in context of active adversaries is unknown, contrary to what is claimed. =
In fact, Slide 12 of [2] suggests that this will be hard to prove. While pr=
ovability also has limitations, suffice it to say that unjustified claims s=
hould not be made.<br>
c) The hunting and pecking procedure (Section 3.2) has changed from one ver=
sion of the draft to the next, primarily to thwart potential side channel a=
ttacks (see also discussion in [3]). Unfortunately, there are still many op=
portunities to derive password-dependent
 information if one is not *extremely careful* to implement steps correctly=
 (in all these cases, this leads to a password space partitioning attack):
<br>
{Discussion relative to Section 3.2.1}<br>
c-1) Implementation of quadratic residue test (computation of Legendre symb=
ol);<br>
c-2) Implementation of modular reduction temp variable (derivation of seed =
value);
<br>
c-3) Implementation of choice of &#43;/- PE&nbsp; (leakage of password info=
 via base value, esp. lethal if one includes nonces in the base computation=
 (as recommended in Section 3.2, p. 10, last para))<br>
c-4) Implementation of the loop with not sufficiently many rounds k (the dr=
aft does not provide any guidance). Mailing list discussion [3] resulted in=
 recommendation to pick k:=3D40.<br>
c-5) The password element PE resulting from the loop is the one with highes=
t counter value. This may result in implementers (or compilers) taking shor=
tcuts and looping backwards, so as to avoids seemingly unnecessary (seeming=
ly, since discounting implementation
 attacks) overhead. The mailing list discussion [3] resulted in the recomme=
ndation to pick as password element PE the middle pick, rather than the las=
t pick, so as to protect implementers against their own vices.<br>
<br>
4) Smaller comments (require fixing).<br>
a) Section 3.2: The hunting and pecking procedure has changed from one vers=
ion of the draft to the next. Unfortunately, the last changes still has bug=
s, thereby suggesting the draft to be unstable: a-1) In Section 3.2.1, the =
temp variable should be expressed
 in terms of base in kdf-n(base,...), and not in terms of uninitiated varia=
ble seed in kdf-n(seed, ...); a-2) Similar remark as in #a above, but now w=
.r.t. Finite Field groups.<br>
b) Section 3.1, Assumption 2: The function F (point-to-x-coordinate mapping=
 in case of elliptic curves) is not an injection: after all, point Q and -Q=
 have the same x-coordinate.<br>
c) Section 3.1, Assumption 4: the security of the protocol depends on the i=
ntractability of the Diffie-Hellman problem, not on that of the discrete lo=
g problem (it is not always known whether the former is as hard as the latt=
er).<br>
d) Section 3.2, p. 9, last sentence: this is an example where &quot;64 more=
 bits than needed&quot; is false, since obviously needed to counter potenti=
al bias of modular reduction if the modulus p is not close to a power of tw=
o.<br>
e) Section 3.2, p. 10, last sentence: mixing-in nonces with the PE procedur=
e yields a set of pairs {(r,Q(pwd,r)}, which may be exploited via side chan=
nel analysis.<br>
f) Section 3.2.2, p. 11: The title suggests MODP groups, whereas any subgro=
up, not just the ones of safe-prime groups, is -- I presume -- meant.<br>
g) Section 3.3, p. 12, first para: it is not clear why the private key and =
mask should be in range [2,q-1]; in passive attack case, one only needs tha=
t private key is in [1,q-1]; mask can be any value.<br>
h) Section 3.3, p. 12: the mechanism by which kck and mk are derived is amb=
iguous (any split of the concatenated string will do right now).<br>
i) Section 6, p. 14, second para: on-the-fly generation of groups with rand=
om domain parameters is so dangerous that it should be forbidden outright (=
not just recommended).<br>
j) Section 2.1, p. 5, 6th para: scalar operation is addition (not multiplic=
ation) of a point to itself. Later on in the same para: is added (x-1)-time=
s to itself...<br>
<br>
5) Typos, etc.<br>
a) Abstract: fix cryptogprahy <br>
b) Section 2: fix Discete log crypto;<br>
c) Section 3.2: fix Derviation.<br>
d) Throughout: fix dragonfly (capitalize).<br>
etc. (many more)<br>
<br>
Ref:<br>
[1] A. Menezes, P. van Oorschot, S. Vanstone, &quot;Handbook of Applied Cry=
ptography&quot;, CRC Press: 1995.<br>
[2] presentation at CFRG meeting during IETF-83, Paris, France, March 26-30=
, 2012:
<a href=3D"http://www.ietf.org/proceedings/83/slides/slides-83-cfrg-0.pdf">=
http://www.ietf.org/proceedings/83/slides/slides-83-cfrg-0.pdf</a><br>
[3] CFRG mailing list discussion, see, e.g., December 12, 2012 discussion b=
y Kevin Igoe et al:&nbsp;
<a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg03258.html"=
>http://www.ietf.org/mail-archive/web/cfrg/current/msg03258.html</a><br>
<br>
<br>
<br>
<div class=3D"moz-forward-container"><br>
-------- Original Message --------
<table class=3D"moz-email-headers-table" cellpadding=3D"0" cellspacing=3D"0=
" border=3D"0">
<tbody>
<tr>
<th align=3D"RIGHT" nowrap=3D"nowrap" valign=3D"BASELINE">Subject: </th>
<td>[TLS] Working Group Last Call for draft-ietf-tls-pwd</td>
</tr>
<tr>
<th align=3D"RIGHT" nowrap=3D"nowrap" valign=3D"BASELINE">Date: </th>
<td>Fri, 8 Nov 2013 01:11:39 &#43;0000</td>
</tr>
<tr>
<th align=3D"RIGHT" nowrap=3D"nowrap" valign=3D"BASELINE">From: </th>
<td>Joseph Salowey (jsalowey) <a class=3D"moz-txt-link-rfc2396E" href=3D"ma=
ilto:jsalowey@cisco.com">
&lt;jsalowey@cisco.com&gt;</a></td>
</tr>
<tr>
<th align=3D"RIGHT" nowrap=3D"nowrap" valign=3D"BASELINE">To: </th>
<td><a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:tls@ietf.org">&lt;tls=
@ietf.org&gt;</a>
<a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:tls@ietf.org">&lt;tls@iet=
f.org&gt;</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>This is the beginning of the working group last call for  draft-ietf-t=
ls-pwd-01.  =20
The underlying cryptographic protocol for TLS-PWD has been reviewed by the =
IRTF CFRG=20
group with satisfactory results.  The document needs particular attention p=
aid to the=20
integration of this mechanism into the TLS protocol.  =20
Please send comments to the TLS list by December 2, 2013. =20

- Joe
(For the TLS chairs)
_______________________________________________
TLS mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:TLS@ietf.org">TLS@ietf=
.org</a><a class=3D"moz-txt-link-freetext" href=3D"https://www.ietf.org/mai=
lman/listinfo/tls">https://www.ietf.org/mailman/listinfo/tls</a></pre>
<br>
</div>
<br>
</div>
</div>
_______________________________________________ Cfrg mailing list <a href=
=3D"mailto:Cfrg@irtf.org">
Cfrg@irtf.org</a><a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http=
://www.irtf.org/mailman/listinfo/cfrg</a></span>
</body>
</html>

--_000_CEBF98E6221C2fenghaonewcastleacuk_--
