
From sriramkr@cs.ucsd.edu  Sun Oct  9 13:00:49 2011
Return-Path: <sriramkr@cs.ucsd.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 CA42421F8B16 for <cfrg@ietfa.amsl.com>; Sun,  9 Oct 2011 13:00:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.562
X-Spam-Level: 
X-Spam-Status: No, score=-3.562 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
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 CAKNv9b15dVC for <cfrg@ietfa.amsl.com>; Sun,  9 Oct 2011 13:00:49 -0700 (PDT)
Received: from iport-c2-out.ucsd.edu (iport-c2-out.ucsd.edu [132.239.0.119]) by ietfa.amsl.com (Postfix) with ESMTP id 6704A21F8B10 for <cfrg@irtf.org>; Sun,  9 Oct 2011 13:00:49 -0700 (PDT)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArsHAOP8kU6E7/kU/2dsb2JhbABDmTEBAY5dCIEFgUoFHQKBAwECBV0SAQUBV4dUl0eCWAqSVokCh0MEh32LeoUXiA49hA8
X-IronPort-AV: E=Sophos;i="4.68,513,1312182000"; d="scan'208";a="627725124"
Received: from smtp-tpcs.ucsd.edu ([132.239.249.20]) by iport-c2-out.ucsd.edu with ESMTP; 09 Oct 2011 13:00:49 -0700
Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by smtp-tpcs.ucsd.edu (Postfix) with ESMTPSA id AA8A180E6C for <cfrg@irtf.org>; Sun,  9 Oct 2011 13:00:44 -0700 (PDT)
Received: by wwe3 with SMTP id 3so7706773wwe.19 for <cfrg@irtf.org>; Sun, 09 Oct 2011 13:00:44 -0700 (PDT)
Received: by 10.216.137.81 with SMTP id x59mr5151390wei.26.1318190444114; Sun, 09 Oct 2011 13:00:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.188.8 with HTTP; Sun, 9 Oct 2011 13:00:04 -0700 (PDT)
From: Sriram Keelveedhi <sriramkr@cs.ucsd.edu>
Date: Sun, 9 Oct 2011 13:00:04 -0700
Message-ID: <CAPRAS9w3f9w6rRSFE9Pm7onZmh9tTcDJnxssvULa-Cpq1X8tTg@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=0016e6d785302af49504aee3213d
Subject: [Cfrg] Optimized implementation of EME2
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: Sun, 09 Oct 2011 20:00:49 -0000

--0016e6d785302af49504aee3213d
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

Are there any optimized implementations of EME2? I came across an
implementation written by Hal Finney and Shai Hallevi, and another by Brian
Gladman. But both of these seem to be reference implementations.

Thanks,

Sriram Keelveedhi
PhD Student
University of California San Diego

--0016e6d785302af49504aee3213d
Content-Type: text/html; charset=ISO-8859-1

Hi all,<div><br></div><div>Are there any optimized implementations of EME2? I came across an implementation written by Hal Finney and Shai Hallevi, and another by Brian Gladman. But both of these seem to be reference implementations.</div>


<div><br></div><div>Thanks,</div><div><br>Sriram Keelveedhi</div><div>PhD Student</div><div>University of California San Diego</div>

--0016e6d785302af49504aee3213d--

From mcgrew@cisco.com  Tue Oct 11 04:36:50 2011
Return-Path: <mcgrew@cisco.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C26D21F8B4A for <cfrg@ietfa.amsl.com>; Tue, 11 Oct 2011 04:36:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 a4c1J9b4l8H9 for <cfrg@ietfa.amsl.com>; Tue, 11 Oct 2011 04:36:50 -0700 (PDT)
Received: from mtv-iport-2.cisco.com (mtv-iport-2.cisco.com [173.36.130.13]) by ietfa.amsl.com (Postfix) with ESMTP id 19F9521F8B3E for <cfrg@irtf.org>; Tue, 11 Oct 2011 04:36:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=mcgrew@cisco.com; l=104; q=dns/txt; s=iport; t=1318333010; x=1319542610; h=message-id:from:to:content-transfer-encoding: mime-version:subject:date; bh=zjlMMo/iNbvRGAOjwEQ+TsVcVH/jhomH2E7SB8fKvSU=; b=Cy/Vvn9vnpj2BUptJdfKJgrU2+8rFZIEJSzbU3FW35/gXb06zQPwLBb6 nBYCYV0PjfMS/0d5H8tOX/vPHO6LYG6IVfSkNlXqtdbaS2fLaZ4K00bmF ACGZz/81j2ZYlxK+nnHzGBn4+2Me+Hx3mw02pjlk9NSAtqVQR8fOIXngR g=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhAIAIAplE6rRDoG/2dsb2JhbABDmUeDcwOKaoEFgWwBJQKCMqFAgSYBnlOGa2EEh36LdpFy
X-IronPort-AV: E=Sophos;i="4.68,522,1312156800";  d="scan'208";a="7155798"
Received: from mtv-core-1.cisco.com ([171.68.58.6]) by mtv-iport-2.cisco.com with ESMTP; 11 Oct 2011 11:36:49 +0000
Received: from stealth-10-32-254-213.cisco.com (stealth-10-32-254-213.cisco.com [10.32.254.213]) by mtv-core-1.cisco.com (8.14.3/8.14.3) with ESMTP id p9BBamTl026784 for <cfrg@irtf.org>; Tue, 11 Oct 2011 11:36:49 GMT
Message-Id: <38F4FD49-01F1-4ACF-B4B0-42C878B18E3A@cisco.com>
From: David McGrew <mcgrew@cisco.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Tue, 11 Oct 2011 04:36:48 -0700
X-Mailer: Apple Mail (2.936)
Subject: [Cfrg] Universally Composable Security Analysis of OAuth v2.0
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: Tue, 11 Oct 2011 11:36:50 -0000

Of possible interest: a security analysis of draft-ietf-oauth-v2-20

http://eprint.iacr.org/2011/526

From mcgrew@cisco.com  Mon Oct 31 08:28:20 2011
Return-Path: <mcgrew@cisco.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 09DC011E80B0 for <cfrg@ietfa.amsl.com>; Mon, 31 Oct 2011 08:28:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.099
X-Spam-Level: 
X-Spam-Status: No, score=-106.099 tagged_above=-999 required=5 tests=[AWL=0.500, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, 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 T1MsIghwCL2v for <cfrg@ietfa.amsl.com>; Mon, 31 Oct 2011 08:28:19 -0700 (PDT)
Received: from mtv-iport-3.cisco.com (mtv-iport-3.cisco.com [173.36.130.14]) by ietfa.amsl.com (Postfix) with ESMTP id 067C011E80A5 for <cfrg@irtf.org>; Mon, 31 Oct 2011 08:28:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=mcgrew@cisco.com; l=5852; q=dns/txt; s=iport; t=1320074899; x=1321284499; h=cc:message-id:from:to:content-transfer-encoding: mime-version:subject:date:references; bh=GaM597nxpTvQgW0Bxm2RdSOWX20BrjJVI9wGmeaVclI=; b=lF+D4JVl6b3fQAEcWNjnAbg0QH4udycZagEF22Wluu2MK/F+RlfKL1kp HGdr973b4MHeeworZjw2uS5MMMnTaLh5cgHqvfMCZT7gcv4ttURU12zaF 7geQo7yipWealaxl+M2LUol0d6fk3BKGpZ7bxZTs7ydmZChXx5XZSIkCr E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgkFAJC9rk6rRDoI/2dsb2JhbABDpyWCEIEFgXIBAQEBAgESASUCPQIQUVc7h2CVUgGeGoghYQSIBowIkX8
X-IronPort-AV: E=Sophos;i="4.69,432,1315180800"; d="scan'208";a="11420948"
Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-3.cisco.com with ESMTP; 31 Oct 2011 15:28:18 +0000
Received: from stealth-10-32-254-213.cisco.com (stealth-10-32-254-213.cisco.com [10.32.254.213]) by mtv-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id p9VFSHkX012465; Mon, 31 Oct 2011 15:28:18 GMT
Message-Id: <D178AE20-C343-46E9-8A80-591749254C8C@cisco.com>
From: David McGrew <mcgrew@cisco.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Mon, 31 Oct 2011 08:28:17 -0700
References: <20111031152030.4873.11841.idtracker@ietfa.amsl.com>
X-Mailer: Apple Mail (2.936)
Subject: [Cfrg] New Version Notification for draft-mcgrew-iv-gen-01.txt
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: Mon, 31 Oct 2011 15:28:20 -0000

Hi,

an updated version of the draft just went in.  It has text to address  
some comments from reviewers; there is a diff below with the new text.

regards,

David

Begin forwarded message:

>
> A new version of I-D, draft-mcgrew-iv-gen-01.txt has been  
> successfully submitted by David McGrew and posted to the IETF  
> repository.
>
> Filename:	 draft-mcgrew-iv-gen
> Revision:	 01
> Title:		 Generation of Deterministic Initialization Vectors (IVs)  
> and Nonces
> Creation date:	 2011-10-31
> WG ID:		 Individual Submission
> Number of pages: 25
>
> Abstract:
>   Many cryptographic algorithms use deterministic IVs, including CTR,
>   GCM, CCM, GMAC.  This type of IV is also called a (deterministic)
>   nonce.  Deterministic IVs must be distinct, for each fixed key, to
>   guarantee the security of the algorithm.  This note describes best
>   practices for the generation of such IVs, and summarizes how they  
> are
>   generated and used in different protocols.  Some problem areas are
>   highlighted, and test considerations are outlined.  This note will  
> be
>   useful to implementers of algorithms using deterministic IVs, and to
>   protocol or system designers using them.
>

< Internet-Draft         Deterministic IV Generation             July  
2011
---
 > Internet-Draft         Deterministic IV Generation          October  
2011
343,345c343,345
<    [RFC4106], TLS [RFC5288], SSH [RFC5647], and SRTP .  The way that
<    these protocols define their IVs is outlined in this section and is
<    summarized in Table 1.
---
 >    [RFC4106], TLS [RFC5288], SSH [RFC5647], and SRTP [RFC3711].   
The way
 >    that these protocols define their IVs is outlined in this  
section and
 >    is summarized in Table 1.

 >    The partially implicit format can save on bandwidth or data  
storage
 >    requirements, because it avoids sending or storing the implicit  
part
 >    of the IV.  However, it limits the number of IVs that can be
 >    generated, because the implicit part is fixed, and it adds  
complexity
 >    to the system, by making the system coordinate the implicit part
 >    through out-of-band means.  Thus, new protocol and system designs
 >    SHOULD NOT use the partially implicit format unless a review of  
all
 >    of the issues shows that the bandwidth or storage savings are  
worth
 >    the complexity.  (An alternative strategy for bandwidth savings is
 >    discussed in Section 7.4.)
 >


<    Fixed field and the Counter field are concatenated, then they are
<    bitwise exclusive-ored with the Salt field, and the resulting value
<    is the IV.  The Counter is incremented, treating it as an unsigned
<    integer with the most significant byte on the left, and the stored
<    Counter field is set to the incremented value.  Then the IV is
<    returned.
---
 >    stored Counter value MUST be checked to determine if an IV can be
 >    generated; an IV can only be generated if the value of Counter + 1
 >    does not exceed the maximum allowable value of the Counter  
field.  If
 >    an IV cannot be generated, then the operation returns an  
indication
 >    that there are no more IVs that are available.  Otherwise, the  
Fixed
 >    field and the Counter field are concatenated, then they are  
bitwise
 >    exclusive-ored with the Salt field, and the resulting value is the
 >    IV.  The Counter is incremented, treating it as an unsigned  
integer
 >    with the most significant byte on the left, and the stored Counter
 >    field is set to the incremented value.  Then the IV is returned.


 > 7.4.  Bandwidth Use
 >
 >    An implicit or partially implicit IV uses less bandwidth than a  
full-
 >    sized IV.  But as noted above, the (partially) implicit IV format
 >    reduces the number of IVs that can be generated and adds  
complexity
 >    to the system.
 >
 >    An alternative approach to bandwidth savings in a protocol  
design is
 >    to use a predictable IV format, such as that of Section 4.1, and  
then
 >    apply header compression to the IV.  Header compression is often  
used
 >    on bandwidth-constrained links, and it can be applied to encrypted
 >    packets [RFC3095].  The format of Section 4.1 can easily be  
handled
 >    by header compression.  This approach has several benefits: it  
makes
 >    IV generation simpler, it allows bandwidth savings for  
environments
 >    in which it matters while putting the complexity burden onto the
 >    systems that opt to realize those savings, and it increases the
 >    number of IVs that can be used.  Specifications that use this  
design
 >    alternative SHOULD require the use of the IV format in Section  
4.1.
 >


 >
 >    Almost all cryptographic systems can implement counter-based
 >    deterministic IVs.  In many cases, it is straightforward to  
generate
 >    deterministic IVs associated with a short-term key in use by a  
single
 >    encrypter, as in a typical point-to-point protocol.  Complications
 >    can arise, however, when there are multiple encrypters, or when  
a key
 >    is used for an extended period of time.  Cryptographic systems  
that
 >    cannot ensure IV distinctness should not use deterministic IVs,  
and
 >    should instead use a misuse-resistant mode of operation such as  
the
 >    Synthetic Initialization Vector (SIV) Authenticated Encryption  
mode
 >    of operation [RFC5295], or a randomized algorithm such as the CBC
 >    mode of operation (though an additional authentication mechanism  
must
 >    be used with that option).  If authentication but not encryption  
is
 >    required, then it is possible to use an algorithm that does not
 >    require an IV, such as HMAC [RFC2104].
 >



