From cfrg-bounces@ietf.org Sun Oct 14 03:40:28 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Igxyu-0000KL-TB; Sun, 14 Oct 2007 03:33:48 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Igxyt-0000F6-6a
	for cfrg@ietf.org; Sun, 14 Oct 2007 03:33:47 -0400
Received: from qb-out-0506.google.com ([72.14.204.232])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Igxyq-0007l7-1a
	for cfrg@ietf.org; Sun, 14 Oct 2007 03:33:45 -0400
Received: by qb-out-0506.google.com with SMTP id o21so1357046qba
	for <cfrg@ietf.org>; Sun, 14 Oct 2007 00:32:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
	bh=Ua+AZFBUt03bpxV/k0lWthNotGa/Z47cOf7nbWjYi7U=;
	b=ma+N7+VqaPYlJCY1/DscazXMIxvtAAuk/Y/mg4khHJMrlmEslg/79yQlaJ5FUNlG+ctpgJIgB0EtpQ/Du1KCOv/sBcocbmJRw4WojZnT0eUYeVl/PqV9DQCYz3umpliYDo+EoogINLdQzNogPLV55oq/QuUkGAbA+zTd6RckkMM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:mime-version:content-type;
	b=FhakmUdcywOKvhRYlUsjE8rAL1G2qsDkA0RICW3tMbW6CJ2XzQrPfk9pRXMzrgtpfM5hr4J+S2kQHbY/X6zFc93pSXqZxo7DdDCQN4lAwZhxLlp0KLj19Bdi6jN8AG3eEWy/vtfFVgSEPPSdWQgMMOnol5VMpIuHrwXs8aSH6PQ=
Received: by 10.142.194.1 with SMTP id r1mr1305504wff.1192347174350;
	Sun, 14 Oct 2007 00:32:54 -0700 (PDT)
Received: by 10.142.188.6 with HTTP; Sun, 14 Oct 2007 00:32:54 -0700 (PDT)
Message-ID: <73aa801c0710140032r68edc96y4abdaf61536c7f80@mail.gmail.com>
Date: Sun, 14 Oct 2007 13:02:54 +0530
From: "vishwas Rudramurthy" <vshwsr@gmail.com>
To: cfrg@ietf.org
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 2409bba43e9c8d580670fda8b695204a
Subject: [Cfrg] Test Mail
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1058934755=="
Errors-To: cfrg-bounces@ietf.org

--===============1058934755==
Content-Type: multipart/alternative; 
	boundary="----=_Part_13449_13273786.1192347174353"

------=_Part_13449_13273786.1192347174353
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All,

My name is vishwas and I am working as a solution delivery consultant in a
company called Cerner Healthcare Services and also people can you please
introduce yourselves, so that I know you very well for the future
conversations.

*Thank You*

------=_Part_13449_13273786.1192347174353
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi All,</div>
<div>&nbsp;</div>
<div>My name is vishwas and I am working as a solution delivery consultant in a company called Cerner Healthcare Services and also people can you please introduce yourselves, so that I know you very well for the future conversations.
</div>
<div>&nbsp;</div>
<div><strong>Thank You</strong>&nbsp;</div>

------=_Part_13449_13273786.1192347174353--


--===============1058934755==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg

--===============1058934755==--




From cfrg-bounces@ietf.org Thu Oct 18 16:45:45 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IicBj-0002nj-2r; Thu, 18 Oct 2007 16:41:51 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IicBi-0002nF-7v
	for cfrg@ietf.org; Thu, 18 Oct 2007 16:41:50 -0400
Received: from sj-iport-1-in.cisco.com ([171.71.176.70]
	helo=sj-iport-1.cisco.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1IicBd-0008Lu-TV
	for cfrg@ietf.org; Thu, 18 Oct 2007 16:41:50 -0400
X-IronPort-AV: E=Sophos;i="4.21,297,1188802800"; d="scan'208";a="25038617"
Received: from rtp-dkim-1.cisco.com ([64.102.121.158])
	by sj-iport-1.cisco.com with ESMTP; 18 Oct 2007 13:41:45 -0700
Received: from rtp-core-2.cisco.com (rtp-core-2.cisco.com [64.102.124.13])
	by rtp-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l9IKfidw024408; 
	Thu, 18 Oct 2007 16:41:44 -0400
Received: from xbh-rtp-211.amer.cisco.com (xbh-rtp-211.cisco.com
	[64.102.31.102])
	by rtp-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l9IKerkD004433; 
	Thu, 18 Oct 2007 20:41:28 GMT
Received: from xmb-rtp-20c.amer.cisco.com ([64.102.31.57]) by
	xbh-rtp-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 18 Oct 2007 16:41:25 -0400
Received: from 10.32.254.210 ([10.32.254.210]) by xmb-rtp-20c.amer.cisco.com
	([64.102.31.57]) with Microsoft Exchange Server HTTP-DAV ; 
	Thu, 18 Oct 2007 20:41:25 +0000
User-Agent: Microsoft-Entourage/11.2.4.060510
Date: Thu, 18 Oct 2007 13:41:21 -0700
From: mcgrew <mcgrew@cisco.com>
To: <dharkins@lounge.org>
Message-ID: <C33D1301.1904%mcgrew@cisco.com>
Thread-Topic: Comments on SIV and draft-dharkins-siv-aes-00
Thread-Index: AcgRxz2efG/tr326Edy4ygAUUQnMFg==
Mime-version: 1.0
Content-type: text/plain;
	charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 18 Oct 2007 20:41:25.0626 (UTC)
	FILETIME=[40600DA0:01C811C7]
X-TM-AS-Product-Ver: SMEX-8.0.0.1181-5.000.1023-15490.002
X-TM-AS-Result: No--22.916800-8.000000-31
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=8637; t=1192740104;
	x=1193604104; c=relaxed/simple; s=rtpdkim1001;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=mcgrew@cisco.com;
	z=From:=20mcgrew=20<mcgrew@cisco.com>
	|Subject:=20Comments=20on=20SIV=20and=20draft-dharkins-siv-aes-00
	|Sender:=20 |To:=20<dharkins@lounge.org>;
	bh=dzcXaX5bJIBZakstY8iKNGSiBvu7j+xQuG/zxbonMn0=;
	b=iM3E0TCrRy84QF5VKcZy2Ab1+sI9WhKf+jfpJjwnGEG/uEhJtmYmHGZQCfSyeOMRs4fHue98
	CKckz+Q9tdOHs7fRLHSQBm5PIBIOUdMm9YRcNCAtv8MqRatAuz74bse6;
Authentication-Results: rtp-dkim-1; header.From=mcgrew@cisco.com; dkim=pass (
	sig from cisco.com/rtpdkim1001 verified; ); 
X-Spam-Score: -4.0 (----)
X-Scan-Signature: 3d7f2f6612d734db849efa86ea692407
Cc: cfrg@ietf.org
Subject: [Cfrg] Comments on SIV and draft-dharkins-siv-aes-00
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hi Dan,

I'm sorry to take so long in getting back to you.  The new draft looks great
- thanks for carrying it forward.  I have a bunch of comments, some on the
document, and some on SIV itself.

First, a bunch of detailed comments.

The abstract says that " SIV takes a key, a plaintext, and a vector of
data".  I think the term "vector" will not be intuitive to many readers, so
perhaps it would make sense to say that the vector is "an array of
variable-length octet strings", or something like that.  I mean to suggest
that you add text describing what is meant, rather than changing the
terminology from what Phil and Tom wrote.

For the key derivation application (Section 1.3.3), what would the SIV
plaintext input be equal to?  Would it be omitted?

Also, I would guess that SIV-based key derivation would only be appropriate
for deriving keys from a given key, and that it may not be suitable for use
in deriving keys from data that is unpredictable but not uniformly random,
as is used e.g. in Diffie-Hellman.  At least, I believe that this is outside
of the scope of what is claimed in the security analysis, and it would make
sense to document that (after verifying with Phil and Tom).

I think that it might be useful to help explain the vector of inputs by
using an analogy to the POSIX "iovec" or scatter/gather functions readv and
writev; these functions also allow the user to avoid data-marshalling, and
they should be familiar to many implementers.   Of course, the way that
readv and writev work doesn't depend on the way that data is broken into
smaller elements, but SIV does.

Does S2V mean "vector to string"?  Would "V2S" be sensible?

Section 1.3.4 typo - "troughput".  Also, it might be useful to provide the
detail that SIV requires two passes over the data during an encryption
operation, and thus is less suitable for pipelined hardware implementations.

Notation "X10*" - might be notationally clearer to define p(X) as a padding
function, since "X10" looks like a variable name.

I like the compatibility between SIV-CTR and typical CTR implementations.

Sections 3 and 6 define how to use SIV as a nonce-based AEAD, and how to use
it as such in the context of [AEAD].  But I think that a bit more
specificity is needed here.  Section 3 seems to allow multiple "associated
data" inputs, while Section 6 will need to require that there is just a
single AD input.  So I think that Section 3 needs to add a definition that's
specific to the use of SIV together with [AEAD].


Next, some higher-level comments.

First, what's the motivation for key wrapping?   This is an important
question that a lot of people have wrestled with.  I understand from Section
1.3.1 that nonceless AEAD is valuable because there are existing protocols
that do not make use of nonces, so SIV's capability for nonceless AEAD
enables it to be easily adopted by these protocols.   This is a very good
point.  Nonetheless, it does not address the question of "when should a user
use nonceless AEAD?" outside of those "legacy" cases.   I would expect that
we would want to provide guidance that users SHOULD use nonces wherever
possible, but MAY otherwise do without nonces.  (Perhaps there should be an
exception for cases in which determinism is essential, e.g. database
applications in which plaintext-to-ciphertext mapping must be deterministic.
But this is clearly a special case.)


Second, I'm skeptical about the value of the vector input, so I suggest that
more motivation, explanation, and an example usage or two, be added to the
draft.  I'll summarize my skepticism below in the hope that it will be
helpful. 

As I understand it, the two benefits of the vector-input are that it
eliminates the need for the user to marshal multiple inputs into a single
input, and that it offers performance advantages in those cases that there
are repeated invocations of the crypto function in which some of the inputs
remain constant. 

Regarding performance, any AEAD algorithm can be made to support a
scatter/gather or init/update/final interface as per RFC1321.  It is a
conventional technique to copy the intermediate state after an update
operation, and then use it to process different suffixes.   Beyond that,
there are functions that support an "incremental" interface, in the sense of
"Incremental Cryptography and Application to Virus Protection" (27th ACM
Symposium on the Theory of Computing, May 1995).  GMAC, and many other
functions that make use of universal hashing, can be used in this way.  So
it is possible to reap the performance benefit claimed for SIV with some
existing functions, and it's possible to realize the performance advantage
without using a vector of inputs.   As a concrete example, one could replace
the use of AES-CMAC on a vector of inputs in SIV with a polynomial hash
function (such as GHASH, the component of GCM/GMAC) applied to a single
input.  This would allow even *more* performance optimizations (in
particular, it allows optimizations whenever there are repeated invocations
of the crypto function in which *any part* of the input remains constant).

In practice, it seems that these optimizations aren't used so much.  I
believe that the reason is because the additional complexity doesn't seem
warranted when the amount of data that stays the same across invocations is
small compared to the entire data.  FWIW, I do think that there are
applications for incremental message authentication within the area of
security for data-at-rest.

The key derivation example that's used to motivate the vector-of-inputs
points out that in key derivation applications, it is common to have
multiple inputs to the KDF, some of which stay fixed across multiple
invocations of the KDF algorithm.  This is true, though I question the
performance gains, because I suspect that in the KDF case, there are many
small inputs.  I suspect that the vector approach would perform worse than
the standard approach if there were ten one-byte inputs, for example.
Additionally, I wonder why we're that interested in designing SIV to work
well within some existing KDF models (why not just design a dedicated KDF?),
and it seems to me that SIV doesn't actually fit all of the models.  It
seems to not be usable within draft-dang-nistkdf, because SIV requires a key
as a separate and distinct input, which that draft does not provide.  Also,
as noted above, SIV-based KDFs may not be suitable for use in deriving keys
from Diffie-Hellman (or least this use would be outside the "warranty"
provided by the security analysis).

Regarding the need to avoid data marshalling, it is true that in many AEAD
cases, there are multiple data fields that are authenticated.  However, in
most of my experience (e.g. RFCs 4106 and 4543 and IEEE P1619) there is no
data-marshalling issue that needs to be solved, because the fields are
already contiguous, and the lengths of the fields are fixed, so there is no
length-encoding overhead.  In ESP (RFC 4303, not RFC 2406) and SRTP, there
are AD inputs that are not contiguous, but which have fixed lengths; this is
because both of these protocols have an authenticated but unencrypted
header, plus an authenticated "extended sequence number" that holds the
high-order bits of the sequence number, which is not carried in the packet.
For these protocols, an AEAD implementation that supports an
init/update/final interface is sufficient.   Also, in practice these
protocols are often implemented by copying the extended sequence number
field.   Perhaps there are other application areas in which the
data-marshalling before AEAD is onerous - maybe someone can chime in.

On reflection, it seems to me that the enduring advantage for using a vector
of inputs is the fact that it frees the user from the need to explicitly
encode the lengths of the component fields, when those fields have variable
length.  

Of course, applications that make use of the vector-of-inputs feature will
need to define how that vector is constructed, and make sure that the order
of the inputs is well understood.   In addition, if the applications want to
make use of a conventional AEAD method as well, then they will also need to
define a data-marshalling function.

Thirdly, I think it would be useful and interesting to have a comparison
between arbitrary-length pseudorandom permutations with associated data
(such as EME and XCB) and SIV.   But I think that's probably getting beyond
the scope of the SIV draft ;-)

Best regards,

David





_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Fri Oct 19 16:29:20 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IiyNc-0003T8-RC; Fri, 19 Oct 2007 16:23:36 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IiyNZ-0003Rx-Uk
	for cfrg@ietf.org; Fri, 19 Oct 2007 16:23:33 -0400
Received: from colo.trepanning.net ([69.55.226.174] helo=mail1.trepanning.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IiyNQ-0000s3-7l
	for cfrg@ietf.org; Fri, 19 Oct 2007 16:23:33 -0400
Received: from www.trepanning.net (localhost [127.0.0.1])
	by mail1.trepanning.net (Postfix) with ESMTP id 5510E1FA6116;
	Fri, 19 Oct 2007 13:23:08 -0700 (PDT)
Received: from 216.31.249.246
	(SquirrelMail authenticated user dharkins@lounge.org)
	by www.trepanning.net with HTTP;
	Fri, 19 Oct 2007 13:23:08 -0700 (PDT)
Message-ID: <25462.216.31.249.246.1192825388.squirrel@www.trepanning.net>
In-Reply-To: <C33D1301.1904%mcgrew@cisco.com>
References: <C33D1301.1904%mcgrew@cisco.com>
Date: Fri, 19 Oct 2007 13:23:08 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: "mcgrew" <mcgrew@cisco.com>
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3 (Normal)
Importance: Normal
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Scan-Signature: c119f9923e40f08a1d7f390ce651ea92
Cc: cfrg@ietf.org
Subject: [Cfrg] Re: Comments on SIV and draft-dharkins-siv-aes-00
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


  Hi David,

On Thu, October 18, 2007 1:41 pm, mcgrew wrote:
> Hi Dan,
>
> I'm sorry to take so long in getting back to you.  The new draft looks
> great
> - thanks for carrying it forward.  I have a bunch of comments, some on =
the
> document, and some on SIV itself.

  I'm working on an -01 version of the draft right now so your comments
are timely.

> First, a bunch of detailed comments.
>
> The abstract says that " SIV takes a key, a plaintext, and a vector of
> data".  I think the term "vector" will not be intuitive to many readers=
,
> so
> perhaps it would make sense to say that the vector is "an array of
> variable-length octet strings", or something like that.  I mean to sugg=
est
> that you add text describing what is meant, rather than changing the
> terminology from what Phil and Tom wrote.

  OK

> For the key derivation application (Section 1.3.3), what would the SIV
> plaintext input be equal to?  Would it be omitted?

  The key derivation application uses S2V, the vectorized PRF component
of SIV. There is no encryption step.

> Also, I would guess that SIV-based key derivation would only be
> appropriate
> for deriving keys from a given key, and that it may not be suitable for
> use
> in deriving keys from data that is unpredictable but not uniformly rand=
om,
> as is used e.g. in Diffie-Hellman.  At least, I believe that this is
> outside
> of the scope of what is claimed in the security analysis, and it would
> make
> sense to document that (after verifying with Phil and Tom).

  Hopefully my explanation above addresses this comment. I will try to
be more explicit in 1.3.3 that it is S2V being used for key derivation.

> I think that it might be useful to help explain the vector of inputs by
> using an analogy to the POSIX "iovec" or scatter/gather functions readv
> and
> writev; these functions also allow the user to avoid data-marshalling, =
and
> they should be familiar to many implementers.   Of course, the way that
> readv and writev work doesn't depend on the way that data is broken int=
o
> smaller elements, but SIV does.

  That's a good idea. readv and writev seem to be analogous. Each iovec
structure represents an AD input and the array of such structures represe=
nts
the vector of inputs. I will try to come up with some appropriate verbage=
.

> Does S2V mean "vector to string"?  Would "V2S" be sensible?

  "string to vector"

> Section 1.3.4 typo - "troughput".  Also, it might be useful to provide =
the
> detail that SIV requires two passes over the data during an encryption
> operation, and thus is less suitable for pipelined hardware
> implementations.

  Pipelined hardware implementations are definitely not the place for
something like SIV. I see the difference more in "control plane" versus
"data plane" application. SIV is more appropriate for a control plane
application which is typically something in user-space calling into a
cryptographic library to obtain encryption services. In such a situation
the application developer may not be aware of the requirements surroundin=
g
nonce use for a cipher or may miss a subtle nuance in those requirements
and not be able to ensure the security of the application. A data plane
application of an AEAD cipher would typically be able to control the
nonce space (along the lines of something like what SP 800-38D requires).

  The fact that SIV requires 2 passes of the data while something like GC=
M
only requires 1 really just underscores for me the appropriateness of
the distinction above.

  I'll mention 2 passes in that section.

> Notation "X10*" - might be notationally clearer to define p(X) as a
> padding
> function, since "X10" looks like a variable name.

  OK

> I like the compatibility between SIV-CTR and typical CTR implementation=
s.
>
> Sections 3 and 6 define how to use SIV as a nonce-based AEAD, and how t=
o
> use
> it as such in the context of [AEAD].  But I think that a bit more
> specificity is needed here.  Section 3 seems to allow multiple "associa=
ted
> data" inputs, while Section 6 will need to require that there is just a
> single AD input.  So I think that Section 3 needs to add a definition
> that's
> specific to the use of SIV together with [AEAD].

  It's a shame that [AEAD] requires a single AD input. I know Phil has
commented that it should allow multiple inputs. Your response was that
it is too late. Is it? [AEAD] is still an I-D.

  [AEAD] is supposed to provide a generic interface into AEAD cipher mode=
s.
It doesn't as long as it constrains valid modes.

  A single AD input is the degenerate case. SIV can handle a single AD
input just fine but the generic interface to AEAD cipher modes should
not force it.

  I don't think the changes to [AEAD] are significant to remove the
limitation on AD inputs and I'd be happy to suggest text on how to do
that if you're willing to produce another rev of the draft.

> Next, some higher-level comments.
>
> First, what's the motivation for key wrapping?   This is an important
> question that a lot of people have wrestled with.  I understand from
> Section
> 1.3.1 that nonceless AEAD is valuable because there are existing protoc=
ols
> that do not make use of nonces, so SIV's capability for nonceless AEAD
> enables it to be easily adopted by these protocols.   This is a very go=
od
> point.  Nonetheless, it does not address the question of "when should a
> user
> use nonceless AEAD?" outside of those "legacy" cases.   I would expect
> that
> we would want to provide guidance that users SHOULD use nonces wherever
> possible, but MAY otherwise do without nonces.  (Perhaps there should b=
e
> an
> exception for cases in which determinism is essential, e.g. database
> applications in which plaintext-to-ciphertext mapping must be
> deterministic.
> But this is clearly a special case.)

  I think the motivation is to provide deterministic authenticated
encryption for specialized data, such as cryptographic keys. The American
Standards Committee Working Group X9F1 has come up with a draft standard
for such a problem. S/MIME has RFCs on that problem. I do mention that in
the draft.

  I'm a little reluctant to jump into that brier patch though. [DAE] does
a very nice treatment of the reasons behind, and requirements for, key
wrapping both informally (in the introduction) and formally (in appendix
C). I will try to address your comment by pointing readers to [DAE] and
X9F1. Would that be acceptable?

> Second, I'm skeptical about the value of the vector input, so I suggest
> that
> more motivation, explanation, and an example usage or two, be added to =
the
> draft.  I'll summarize my skepticism below in the hope that it will be
> helpful.

  OK, I'll come up with an example on using a vector of inputs.

> As I understand it, the two benefits of the vector-input are that it
> eliminates the need for the user to marshal multiple inputs into a sing=
le
> input, and that it offers performance advantages in those cases that th=
ere
> are repeated invocations of the crypto function in which some of the
> inputs
> remain constant.
>
> Regarding performance, any AEAD algorithm can be made to support a
> scatter/gather or init/update/final interface as per RFC1321.  It is a
> conventional technique to copy the intermediate state after an update
> operation, and then use it to process different suffixes.   Beyond that=
,
> there are functions that support an "incremental" interface, in the sen=
se
> of
> "Incremental Cryptography and Application to Virus Protection" (27th AC=
M
> Symposium on the Theory of Computing, May 1995).  GMAC, and many other
> functions that make use of universal hashing, can be used in this way. =
 So
> it is possible to reap the performance benefit claimed for SIV with som=
e
> existing functions, and it's possible to realize the performance advant=
age
> without using a vector of inputs.

  You seem to be arguing against the novelty of this idea but not against
the idea itself.

  It is a natural way to deal with AD. In [AEAD] you say,

    "When using an AEAD to secure a network protocol, for example,
     this input could include addresses, ports, sequence numbers,
     protocol version numbers, and other fields that indicate how the
     plaintext or ciphertext should be handled, forwarded, or processed."

That's, potentially, several distinct pieces of information. Some may
be contiguous (addresses, ports and sequence numbers might all be in a
single header) but other might not be. Some AD might not even transit
with the authenticated and encrypted data.

  I guess I can try to highlight this concept but it seems that what
should really be explained is why these multiple distinct pieces of
information have to be viewed as a single component input to an AEAD
cipher mode.

>                                     As a concrete example, one could
> replace
> the use of AES-CMAC on a vector of inputs in SIV with a polynomial hash
> function (such as GHASH, the component of GCM/GMAC) applied to a single
> input.  This would allow even *more* performance optimizations (in
> particular, it allows optimizations whenever there are repeated
> invocations
> of the crypto function in which *any part* of the input remains constan=
t).

  This is the second time I have heard this fantastic idea.

> In practice, it seems that these optimizations aren't used so much.  I
> believe that the reason is because the additional complexity doesn't se=
em
> warranted when the amount of data that stays the same across invocation=
s
> is
> small compared to the entire data.  FWIW, I do think that there are
> applications for incremental message authentication within the area of
> security for data-at-rest.
>
> The key derivation example that's used to motivate the vector-of-inputs
> points out that in key derivation applications, it is common to have
> multiple inputs to the KDF, some of which stay fixed across multiple
> invocations of the KDF algorithm.  This is true, though I question the
> performance gains, because I suspect that in the KDF case, there are ma=
ny
> small inputs.

  I attempted to get an S2V-based KDF adopted by the IEEE 802.11r (Fast
Handoff) Task Group. Performance of the S2V KDF (using AES-CMAC) was
four times faster than the HMAC-SHA256 KDF that 11r uses. This was a
real-world example in which the context and label being bound into the
derived key was constant and all that changed was the MAC address of the
AP to whom the new key was to be delivered.

>               I suspect that the vector approach would perform worse th=
an
> the standard approach if there were ten one-byte inputs, for example.
> Additionally, I wonder why we're that interested in designing SIV to wo=
rk
> well within some existing KDF models (why not just design a dedicated
> KDF?),
> and it seems to me that SIV doesn't actually fit all of the models.  It
> seems to not be usable within draft-dang-nistkdf, because SIV requires =
a
> key
> as a separate and distinct input, which that draft does not provide.
> Also,
> as noted above, SIV-based KDFs may not be suitable for use in deriving
> keys
> from Diffie-Hellman (or least this use would be outside the "warranty"
> provided by the security analysis).

  As I mentioned above it is the S2V component of SIV that is being
promoted as a KDF. The KDF used by IEEE 802.11r is modeled along the
lines of a draft-dang-nistkdf KDF and S2V easily replaced it with, as
I noted, a 4x performance increase.

> Regarding the need to avoid data marshalling, it is true that in many A=
EAD
> cases, there are multiple data fields that are authenticated.  However,=
 in
> most of my experience (e.g. RFCs 4106 and 4543 and IEEE P1619) there is=
 no
> data-marshalling issue that needs to be solved, because the fields are
> already contiguous, and the lengths of the fields are fixed, so there i=
s
> no
> length-encoding overhead.  In ESP (RFC 4303, not RFC 2406) and SRTP, th=
ere
> are AD inputs that are not contiguous, but which have fixed lengths; th=
is
> is
> because both of these protocols have an authenticated but unencrypted
> header, plus an authenticated "extended sequence number" that holds the
> high-order bits of the sequence number, which is not carried in the
> packet.
> For these protocols, an AEAD implementation that supports an
> init/update/final interface is sufficient.   Also, in practice these
> protocols are often implemented by copying the extended sequence number
> field.   Perhaps there are other application areas in which the
> data-marshalling before AEAD is onerous - maybe someone can chime in.
>
> On reflection, it seems to me that the enduring advantage for using a
> vector
> of inputs is the fact that it frees the user from the need to explicitl=
y
> encode the lengths of the component fields, when those fields have
> variable
> length.
>
> Of course, applications that make use of the vector-of-inputs feature w=
ill
> need to define how that vector is constructed, and make sure that the
> order
> of the inputs is well understood. In addition, if the applications want
> to
> make use of a conventional AEAD method as well, then they will also nee=
d
> to
> define a data-marshalling function.

  Yes, this requirement is not unique to an AEAD mode that takes a vector
of inputs. Even an init/update/finish mode would need to define how the
components of the AD are used.

> Thirdly, I think it would be useful and interesting to have a compariso=
n
> between arbitrary-length pseudorandom permutations with associated data
> (such as EME and XCB) and SIV.   But I think that's probably getting
> beyond
> the scope of the SIV draft ;-)

  A good topic for the list :-)

  thanks again for your comments and I will incorporate them into my -01
version which should be coming out shortly.

  regards,

  Dan.





_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Mon Oct 22 01:11:37 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IjpVV-0005rt-KC; Mon, 22 Oct 2007 01:07:17 -0400
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IjpVU-0005pY-2e
	for cfrg@ietf.org; Mon, 22 Oct 2007 01:07:16 -0400
Received: from colo.trepanning.net ([69.55.226.174] helo=mail1.trepanning.net)
	by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1IjpVT-0006gR-Mv
	for cfrg@ietf.org; Mon, 22 Oct 2007 01:07:15 -0400
Received: from www.trepanning.net (localhost [127.0.0.1])
	by mail1.trepanning.net (Postfix) with ESMTP id DE9001FA6120;
	Sun, 21 Oct 2007 22:07:14 -0700 (PDT)
Received: from 69.12.173.8
	(SquirrelMail authenticated user dharkins@lounge.org)
	by www.trepanning.net with HTTP;
	Sun, 21 Oct 2007 22:07:14 -0700 (PDT)
Message-ID: <38964.69.12.173.8.1193029634.squirrel@www.trepanning.net>
In-Reply-To: <C33D1301.1904%mcgrew@cisco.com>
References: <C33D1301.1904%mcgrew@cisco.com>
Date: Sun, 21 Oct 2007 22:07:14 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: "mcgrew" <mcgrew@cisco.com>
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3 (Normal)
Importance: Normal
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 52e1467c2184c31006318542db5614d5
Cc: cfrg@ietf.org
Subject: [Cfrg] Re: Comments on SIV and draft-dharkins-siv-aes-00
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


  Hi David,

  I think my response to your key derivation comment was wrong.

On Thu, October 18, 2007 1:41 pm, mcgrew wrote:
[snip]
> For the key derivation application (Section 1.3.3), what would the SIV
> plaintext input be equal to?  Would it be omitted?
>
> Also, I would guess that SIV-based key derivation would only be
> appropriate
> for deriving keys from a given key, and that it may not be suitable for
> use
> in deriving keys from data that is unpredictable but not uniformly rand=
om,
> as is used e.g. in Diffie-Hellman.  At least, I believe that this is
> outside
> of the scope of what is claimed in the security analysis, and it would
> make
> sense to document that (after verifying with Phil and Tom).

  As I mentioned, there is no plaintext since it S2V that's doing the
key derivation but I let that cause me to misinterpret your subsequent
comment. S2V requires a key and if that key is not uniformly random I do
believe that it would be inappropriate to use.

  I'll verify with Phil and Tom and most likely come up with some text
to address this.

  Sorry for the brush off. I read one comment and let that cloud my
response to another.

  Dan.



_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Tue Oct 23 17:58:41 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IkRhG-0004sm-2h; Tue, 23 Oct 2007 17:53:58 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IkRhE-0004s1-7s
	for cfrg@ietf.org; Tue, 23 Oct 2007 17:53:56 -0400
Received: from rtp-iport-1.cisco.com ([64.102.122.148])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IkRh5-0007Rp-E2
	for cfrg@ietf.org; Tue, 23 Oct 2007 17:53:56 -0400
X-IronPort-AV: E=Sophos;i="4.21,320,1188792000"; d="scan'208";a="74615924"
Received: from rtp-dkim-1.cisco.com ([64.102.121.158])
	by rtp-iport-1.cisco.com with ESMTP; 23 Oct 2007 17:53:35 -0400
Received: from rtp-core-1.cisco.com (rtp-core-1.cisco.com [64.102.124.12])
	by rtp-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l9NLrb2b002290; 
	Tue, 23 Oct 2007 17:53:37 -0400
Received: from xbh-rtp-211.amer.cisco.com (xbh-rtp-211.cisco.com
	[64.102.31.102])
	by rtp-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l9NLrT8X026869; 
	Tue, 23 Oct 2007 21:53:29 GMT
Received: from xmb-rtp-20c.amer.cisco.com ([64.102.31.57]) by
	xbh-rtp-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Tue, 23 Oct 2007 17:53:21 -0400
Received: from 171.70.216.109 ([171.70.216.109]) by xmb-rtp-20c.amer.cisco.com
	([64.102.31.57]) with Microsoft Exchange Server HTTP-DAV ; 
	Tue, 23 Oct 2007 21:53:21 +0000
User-Agent: Microsoft-Entourage/11.2.4.060510
Date: Tue, 23 Oct 2007 14:53:22 -0700
From: mcgrew <mcgrew@cisco.com>
To: Dan Harkins <dharkins@lounge.org>
Message-ID: <C343BB62.1A93%mcgrew@cisco.com>
Thread-Topic: Comments on SIV and draft-dharkins-siv-aes-00
Thread-Index: AcgVvyEzX5en4oGyEdybSAAUUQnMFg==
In-Reply-To: <25462.216.31.249.246.1192825388.squirrel@www.trepanning.net>
Mime-version: 1.0
Content-type: text/plain;
	charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 23 Oct 2007 21:53:21.0485 (UTC)
	FILETIME=[20E49FD0:01C815BF]
X-TM-AS-Product-Ver: SMEX-8.0.0.1181-5.000.1023-15500.002
X-TM-AS-Result: No--21.644900-8.000000-31
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=12662; t=1193176417;
	x=1194040417; c=relaxed/simple; s=rtpdkim1001;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=mcgrew@cisco.com;
	z=From:=20mcgrew=20<mcgrew@cisco.com>
	|Subject:=20Re=3A=20Comments=20on=20SIV=20and=20draft-dharkins-siv-aes-00
	|Sender:=20 |To:=20Dan=20Harkins=20<dharkins@lounge.org>;
	bh=kyfy0a2pRxtmWZ/SsQOPXfsjZf5rf5moM0jso4aShis=;
	b=h9jxkigpDGGPfP+c4klhWcFO5p03XB71E0dcJsAWzDFf2FDIuSpstlTOqQkE04LO5MbmJVWx
	OikDYTAeBUokIdLINF++DBywNzDNU2gY4fybV8GPHuBCPJtcgY8sAG/m;
Authentication-Results: rtp-dkim-1; header.From=mcgrew@cisco.com; dkim=pass (
	sig from cisco.com/rtpdkim1001 verified; ); 
X-Spam-Score: -1.4 (-)
X-Scan-Signature: a4e5f67c5e230eddf754446d1a2201a4
Cc: cfrg@ietf.org
Subject: [Cfrg] Re: Comments on SIV and draft-dharkins-siv-aes-00
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hi Dan,

On 10/19/07 1:23 PM, "Dan Harkins" <dharkins@lounge.org> wrote:

> 
>   Hi David,
> 
> On Thu, October 18, 2007 1:41 pm, mcgrew wrote:
>> Hi Dan,
>> 
>> I'm sorry to take so long in getting back to you.  The new draft looks
>> great
>> - thanks for carrying it forward.  I have a bunch of comments, some on the
>> document, and some on SIV itself.
> 
>   I'm working on an -01 version of the draft right now so your comments
> are timely.

Super - I guess that I came in just under the wire.

I hope that other people on the mail list can provide comments on the draft
too!  

> 
>> First, a bunch of detailed comments.
>> 
>> The abstract says that " SIV takes a key, a plaintext, and a vector of
>> data".  I think the term "vector" will not be intuitive to many readers,
>> so
>> perhaps it would make sense to say that the vector is "an array of
>> variable-length octet strings", or something like that.  I mean to suggest
>> that you add text describing what is meant, rather than changing the
>> terminology from what Phil and Tom wrote.
> 
>   OK
> 
>> For the key derivation application (Section 1.3.3), what would the SIV
>> plaintext input be equal to?  Would it be omitted?
> 
>   The key derivation application uses S2V, the vectorized PRF component
> of SIV. There is no encryption step.
> 
>> Also, I would guess that SIV-based key derivation would only be
>> appropriate
>> for deriving keys from a given key, and that it may not be suitable for
>> use
>> in deriving keys from data that is unpredictable but not uniformly random,
>> as is used e.g. in Diffie-Hellman.  At least, I believe that this is
>> outside
>> of the scope of what is claimed in the security analysis, and it would
>> make
>> sense to document that (after verifying with Phil and Tom).
> 
>   Hopefully my explanation above addresses this comment. I will try to
> be more explicit in 1.3.3 that it is S2V being used for key derivation.
> 
>> I think that it might be useful to help explain the vector of inputs by
>> using an analogy to the POSIX "iovec" or scatter/gather functions readv
>> and
>> writev; these functions also allow the user to avoid data-marshalling, and
>> they should be familiar to many implementers.   Of course, the way that
>> readv and writev work doesn't depend on the way that data is broken into
>> smaller elements, but SIV does.
> 
>   That's a good idea. readv and writev seem to be analogous. Each iovec
> structure represents an AD input and the array of such structures represents
> the vector of inputs. I will try to come up with some appropriate verbage.
> 
>> Does S2V mean "vector to string"?  Would "V2S" be sensible?
> 
>   "string to vector"
> 
>> Section 1.3.4 typo - "troughput".  Also, it might be useful to provide the
>> detail that SIV requires two passes over the data during an encryption
>> operation, and thus is less suitable for pipelined hardware
>> implementations.
> 
>   Pipelined hardware implementations are definitely not the place for
> something like SIV. I see the difference more in "control plane" versus
> "data plane" application. SIV is more appropriate for a control plane
> application which is typically something in user-space calling into a
> cryptographic library to obtain encryption services. In such a situation
> the application developer may not be aware of the requirements surrounding
> nonce use for a cipher or may miss a subtle nuance in those requirements
> and not be able to ensure the security of the application. A data plane
> application of an AEAD cipher would typically be able to control the
> nonce space (along the lines of something like what SP 800-38D requires).
> 
>   The fact that SIV requires 2 passes of the data while something like GCM
> only requires 1 really just underscores for me the appropriateness of
> the distinction above.
> 
>   I'll mention 2 passes in that section.
> 
>> Notation "X10*" - might be notationally clearer to define p(X) as a
>> padding
>> function, since "X10" looks like a variable name.
> 
>   OK
> 
>> I like the compatibility between SIV-CTR and typical CTR implementations.
>> 
>> Sections 3 and 6 define how to use SIV as a nonce-based AEAD, and how to
>> use
>> it as such in the context of [AEAD].  But I think that a bit more
>> specificity is needed here.  Section 3 seems to allow multiple "associated
>> data" inputs, while Section 6 will need to require that there is just a
>> single AD input.  So I think that Section 3 needs to add a definition
>> that's
>> specific to the use of SIV together with [AEAD].
> 
>   It's a shame that [AEAD] requires a single AD input. I know Phil has
> commented that it should allow multiple inputs. Your response was that
> it is too late. Is it? [AEAD] is still an I-D.
> 
>   [AEAD] is supposed to provide a generic interface into AEAD cipher modes.
> It doesn't as long as it constrains valid modes.
> 
>   A single AD input is the degenerate case. SIV can handle a single AD
> input just fine but the generic interface to AEAD cipher modes should
> not force it.
> 
>   I don't think the changes to [AEAD] are significant to remove the
> limitation on AD inputs and I'd be happy to suggest text on how to do
> that if you're willing to produce another rev of the draft.
> 
>> Next, some higher-level comments.
>> 
>> First, what's the motivation for key wrapping?   This is an important
>> question that a lot of people have wrestled with.  I understand from
>> Section
>> 1.3.1 that nonceless AEAD is valuable because there are existing protocols
>> that do not make use of nonces, so SIV's capability for nonceless AEAD
>> enables it to be easily adopted by these protocols.   This is a very good
>> point.  Nonetheless, it does not address the question of "when should a
>> user
>> use nonceless AEAD?" outside of those "legacy" cases.   I would expect
>> that
>> we would want to provide guidance that users SHOULD use nonces wherever
>> possible, but MAY otherwise do without nonces.  (Perhaps there should be
>> an
>> exception for cases in which determinism is essential, e.g. database
>> applications in which plaintext-to-ciphertext mapping must be
>> deterministic.
>> But this is clearly a special case.)
> 
>   I think the motivation is to provide deterministic authenticated
> encryption for specialized data, such as cryptographic keys. The American
> Standards Committee Working Group X9F1 has come up with a draft standard
> for such a problem. S/MIME has RFCs on that problem. I do mention that in
> the draft.
> 
>   I'm a little reluctant to jump into that brier patch though. [DAE] does
> a very nice treatment of the reasons behind, and requirements for, key
> wrapping both informally (in the introduction) and formally (in appendix
> C). I will try to address your comment by pointing readers to [DAE] and
> X9F1. Would that be acceptable?

Seems to me that normative guidance on when nonces are/aren't needed should
be in the document, since it significantly affects security.  I propose at
least something like this:

<quote>
Applications SHOULD include a nonce in the associated data.  This nonce must
either be generated uniformly at random and be at least as long as the key,
or each nonce value must be distinct for each distinct invocation of the SIV
encrypt function.  Applications MAY do without a nonce in the associated
data if the plaintext contains data that is unpredictable to an adversary,
i.e. a secret key. 
</quote>

Details are up to debate, but I *think* that most people who care would
agree with that guidance.

My concern here isn't specific to SIV at all - my concern is that, if we
define specifications of keywrap algorithms and recommend their use, that we
be very clear where and how we expect for them to be used.

Off topic: OK, now that I have noticed and read Appendix F of [DAE], I think
that it might be a good idea to use that appendix as a source of input data
for the test vectors ;-)

> 
>> Second, I'm skeptical about the value of the vector input, so I suggest
>> that
>> more motivation, explanation, and an example usage or two, be added to the
>> draft.  I'll summarize my skepticism below in the hope that it will be
>> helpful.
> 
>   OK, I'll come up with an example on using a vector of inputs.
> 
>> As I understand it, the two benefits of the vector-input are that it
>> eliminates the need for the user to marshal multiple inputs into a single
>> input, and that it offers performance advantages in those cases that there
>> are repeated invocations of the crypto function in which some of the
>> inputs
>> remain constant.
>> 
>> Regarding performance, any AEAD algorithm can be made to support a
>> scatter/gather or init/update/final interface as per RFC1321.  It is a
>> conventional technique to copy the intermediate state after an update
>> operation, and then use it to process different suffixes.   Beyond that,
>> there are functions that support an "incremental" interface, in the sense
>> of
>> "Incremental Cryptography and Application to Virus Protection" (27th ACM
>> Symposium on the Theory of Computing, May 1995).  GMAC, and many other
>> functions that make use of universal hashing, can be used in this way.  So
>> it is possible to reap the performance benefit claimed for SIV with some
>> existing functions, and it's possible to realize the performance advantage
>> without using a vector of inputs.
> 
>   You seem to be arguing against the novelty of this idea but not against
> the idea itself.

I was trying to make the point that the performance advantages can be
realized without changing the user interface, so to speak.

> 
>   It is a natural way to deal with AD. In [AEAD] you say,
> 
>     "When using an AEAD to secure a network protocol, for example,
>      this input could include addresses, ports, sequence numbers,
>      protocol version numbers, and other fields that indicate how the
>      plaintext or ciphertext should be handled, forwarded, or processed."
> 
> That's, potentially, several distinct pieces of information. Some may
> be contiguous (addresses, ports and sequence numbers might all be in a
> single header) but other might not be. Some AD might not even transit
> with the authenticated and encrypted data.
> 
>   I guess I can try to highlight this concept but it seems that what
> should really be explained is why these multiple distinct pieces of
> information have to be viewed as a single component input to an AEAD
> cipher mode.

To play the devil's advocate: why, then, is there a single plaintext input
in SIV instead of a vector of plaintext inputs?

> 
>>                                     As a concrete example, one could
>> replace
>> the use of AES-CMAC on a vector of inputs in SIV with a polynomial hash
>> function (such as GHASH, the component of GCM/GMAC) applied to a single
>> input.  This would allow even *more* performance optimizations (in
>> particular, it allows optimizations whenever there are repeated
>> invocations
>> of the crypto function in which *any part* of the input remains constant).
> 
>   This is the second time I have heard this fantastic idea.
> 
>> In practice, it seems that these optimizations aren't used so much.  I
>> believe that the reason is because the additional complexity doesn't seem
>> warranted when the amount of data that stays the same across invocations
>> is
>> small compared to the entire data.  FWIW, I do think that there are
>> applications for incremental message authentication within the area of
>> security for data-at-rest.
>> 
>> The key derivation example that's used to motivate the vector-of-inputs
>> points out that in key derivation applications, it is common to have
>> multiple inputs to the KDF, some of which stay fixed across multiple
>> invocations of the KDF algorithm.  This is true, though I question the
>> performance gains, because I suspect that in the KDF case, there are many
>> small inputs.
> 
>   I attempted to get an S2V-based KDF adopted by the IEEE 802.11r (Fast
> Handoff) Task Group. Performance of the S2V KDF (using AES-CMAC) was
> four times faster than the HMAC-SHA256 KDF that 11r uses. This was a
> real-world example in which the context and label being bound into the
> derived key was constant and all that changed was the MAC address of the
> AP to whom the new key was to be delivered.

Great - might be good to add that to the draft.

David

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Tue Oct 23 17:58:46 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IkRhI-0004tV-LL; Tue, 23 Oct 2007 17:54:00 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IkRhG-0004sv-8o
	for cfrg@ietf.org; Tue, 23 Oct 2007 17:53:58 -0400
Received: from rtp-iport-1.cisco.com ([64.102.122.148])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IkRhF-0007Rp-2s
	for cfrg@ietf.org; Tue, 23 Oct 2007 17:53:58 -0400
X-IronPort-AV: E=Sophos;i="4.21,320,1188792000"; d="scan'208";a="74615954"
Received: from rtp-dkim-1.cisco.com ([64.102.121.158])
	by rtp-iport-1.cisco.com with ESMTP; 23 Oct 2007 17:53:55 -0400
Received: from rtp-core-1.cisco.com (rtp-core-1.cisco.com [64.102.124.12])
	by rtp-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l9NLru9M002434; 
	Tue, 23 Oct 2007 17:53:56 -0400
Received: from xbh-rtp-201.amer.cisco.com (xbh-rtp-201.cisco.com
	[64.102.31.12])
	by rtp-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l9NLrZ8l026988; 
	Tue, 23 Oct 2007 21:53:46 GMT
Received: from xmb-rtp-20c.amer.cisco.com ([64.102.31.57]) by
	xbh-rtp-201.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Tue, 23 Oct 2007 17:53:34 -0400
Received: from 171.70.216.109 ([171.70.216.109]) by xmb-rtp-20c.amer.cisco.com
	([64.102.31.57]) with Microsoft Exchange Server HTTP-DAV ; 
	Tue, 23 Oct 2007 21:53:33 +0000
User-Agent: Microsoft-Entourage/11.2.4.060510
Date: Tue, 23 Oct 2007 14:53:36 -0700
From: mcgrew <mcgrew@cisco.com>
To: Dan Harkins <dharkins@lounge.org>
Message-ID: <C343BB70.1A93%mcgrew@cisco.com>
Thread-Topic: Comments on SIV and draft-dharkins-siv-aes-00
Thread-Index: AcgVvymLZ/R144GyEdybSAAUUQnMFg==
In-Reply-To: <38964.69.12.173.8.1193029634.squirrel@www.trepanning.net>
Mime-version: 1.0
Content-type: text/plain;
	charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 23 Oct 2007 21:53:34.0389 (UTC)
	FILETIME=[28959E50:01C815BF]
X-TM-AS-Product-Ver: SMEX-8.0.0.1181-5.000.1023-15500.002
X-TM-AS-Result: No--18.513300-8.000000-31
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1387; t=1193176436;
	x=1194040436; c=relaxed/simple; s=rtpdkim1001;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=mcgrew@cisco.com;
	z=From:=20mcgrew=20<mcgrew@cisco.com>
	|Subject:=20Re=3A=20Comments=20on=20SIV=20and=20draft-dharkins-siv-aes-00
	|Sender:=20 |To:=20Dan=20Harkins=20<dharkins@lounge.org>;
	bh=HjFwZ9X5CCPUMoF0h0bjVA+QcWLY3Gsewx5Ahp5T/Ts=;
	b=eeKT9tDudeCXkXQDln3UD9588ZFxJb3PyIMLuGFAeGRgnaAdU2bnQZGJMJl0VSk5o4XI40wm
	ylic/kqjX5HMOf6xVMbPmDcriAfCZz3B5K5QLI29vO8oE33iqn+P8p6R;
Authentication-Results: rtp-dkim-1; header.From=mcgrew@cisco.com; dkim=pass (
	sig from cisco.com/rtpdkim1001 verified; ); 
X-Spam-Score: -1.4 (-)
X-Scan-Signature: e1e48a527f609d1be2bc8d8a70eb76cb
Cc: cfrg@ietf.org
Subject: [Cfrg] Re: Comments on SIV and draft-dharkins-siv-aes-00
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hi Dan,

On 10/21/07 10:07 PM, "Dan Harkins" <dharkins@lounge.org> wrote:

> 
>   Hi David,
> 
>   I think my response to your key derivation comment was wrong.
> 
> On Thu, October 18, 2007 1:41 pm, mcgrew wrote:
> [snip]
>> For the key derivation application (Section 1.3.3), what would the SIV
>> plaintext input be equal to?  Would it be omitted?
>> 
>> Also, I would guess that SIV-based key derivation would only be
>> appropriate
>> for deriving keys from a given key, and that it may not be suitable for
>> use
>> in deriving keys from data that is unpredictable but not uniformly random,
>> as is used e.g. in Diffie-Hellman.  At least, I believe that this is
>> outside
>> of the scope of what is claimed in the security analysis, and it would
>> make
>> sense to document that (after verifying with Phil and Tom).
> 
>   As I mentioned, there is no plaintext since it S2V that's doing the
> key derivation but I let that cause me to misinterpret your subsequent
> comment. S2V requires a key and if that key is not uniformly random I do
> believe that it would be inappropriate to use.
> 
>   I'll verify with Phil and Tom and most likely come up with some text
> to address this.
> 
>   Sorry for the brush off. I read one comment and let that cloud my
> response to another.
> 
>   Dan.

Not a problem, thanks for clarifying.

David

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Tue Oct 23 20:59:42 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IkUXe-0005eH-F3; Tue, 23 Oct 2007 20:56:14 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IkUXc-0005cO-WA
	for cfrg@ietf.org; Tue, 23 Oct 2007 20:56:13 -0400
Received: from colo.trepanning.net ([69.55.226.174] helo=mail1.trepanning.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IkUXX-0005lc-Ej
	for cfrg@ietf.org; Tue, 23 Oct 2007 20:56:12 -0400
Received: from www.trepanning.net (localhost [127.0.0.1])
	by mail1.trepanning.net (Postfix) with ESMTP id 9396E1FA612A;
	Tue, 23 Oct 2007 17:55:43 -0700 (PDT)
Received: from 69.12.173.8
	(SquirrelMail authenticated user dharkins@lounge.org)
	by www.trepanning.net with HTTP;
	Tue, 23 Oct 2007 17:55:43 -0700 (PDT)
Message-ID: <2222.69.12.173.8.1193187343.squirrel@www.trepanning.net>
In-Reply-To: <C343BB62.1A93%mcgrew@cisco.com>
References: <C343BB62.1A93%mcgrew@cisco.com>
Date: Tue, 23 Oct 2007 17:55:43 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: "mcgrew" <mcgrew@cisco.com>
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3 (Normal)
Importance: Normal
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Scan-Signature: 7268a2980febc47a9fa732aba2b737ba
Cc: cfrg@ietf.org
Subject: [Cfrg] Re: Comments on SIV and draft-dharkins-siv-aes-00
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


  Hi David,

On Tue, October 23, 2007 2:53 pm, mcgrew wrote:
> Hi Dan,
>
> On 10/19/07 1:23 PM, "Dan Harkins" <dharkins@lounge.org> wrote:
>
>>
>>   Hi David,
>>
>> On Thu, October 18, 2007 1:41 pm, mcgrew wrote:
[snip]
>>> First, what's the motivation for key wrapping?   This is an important
>>> question that a lot of people have wrestled with.  I understand from
>>> Section
>>> 1.3.1 that nonceless AEAD is valuable because there are existing
>>> protocols
>>> that do not make use of nonces, so SIV's capability for nonceless AEA=
D
>>> enables it to be easily adopted by these protocols.   This is a very
>>> good
>>> point.  Nonetheless, it does not address the question of "when should=
 a
>>> user
>>> use nonceless AEAD?" outside of those "legacy" cases.   I would expec=
t
>>> that
>>> we would want to provide guidance that users SHOULD use nonces wherev=
er
>>> possible, but MAY otherwise do without nonces.  (Perhaps there should
>>> be
>>> an
>>> exception for cases in which determinism is essential, e.g. database
>>> applications in which plaintext-to-ciphertext mapping must be
>>> deterministic.
>>> But this is clearly a special case.)
>>
>>   I think the motivation is to provide deterministic authenticated
>> encryption for specialized data, such as cryptographic keys. The
>> American
>> Standards Committee Working Group X9F1 has come up with a draft standa=
rd
>> for such a problem. S/MIME has RFCs on that problem. I do mention that
>> in
>> the draft.
>>
>>   I'm a little reluctant to jump into that brier patch though. [DAE]
>> does
>> a very nice treatment of the reasons behind, and requirements for, key
>> wrapping both informally (in the introduction) and formally (in append=
ix
>> C). I will try to address your comment by pointing readers to [DAE] an=
d
>> X9F1. Would that be acceptable?
>
> Seems to me that normative guidance on when nonces are/aren't needed
> should
> be in the document, since it significantly affects security.  I propose=
 at
> least something like this:

  Suggested text is always welcome :-)

> <quote>
> Applications SHOULD include a nonce in the associated data.  This nonce
> must
> either be generated uniformly at random and be at least as long as the
> key,
> or each nonce value must be distinct for each distinct invocation of th=
e
> SIV
> encrypt function.  Applications MAY do without a nonce in the associate=
d
> data if the plaintext contains data that is unpredictable to an adversa=
ry,
> i.e. a secret key.
> </quote>
>
> Details are up to debate, but I *think* that most people who care would
> agree with that guidance.

  The attractive thing about SIV is that nonces need not be random or
distinct for each distinct invocation of the SIV encrypt function. SIV
provides resistance to nonce reuse. While this guidance is appropriate
for cipher modes like GCM or CCM it is overly restrictive for SIV.

  I like the rest of the suggested text (thank you!).

  Does anyone else have an opinion on the topic of nonce reuse and SIV?

> My concern here isn't specific to SIV at all - my concern is that, if w=
e
> define specifications of keywrap algorithms and recommend their use, th=
at
> we
> be very clear where and how we expect for them to be used.

  That's the brier patch I don't want to jump into. The I-D is about SIV
and not a generic treatment of the keywrap problem. I have no problem
explaining when a nonce is not needed in the associated data with SIV
(and your text above will help) but I don't want to deal with the general
case of keywrapping in a I-D about SIV.

> Off topic: OK, now that I have noticed and read Appendix F of [DAE], I
> think
> that it might be a good idea to use that appendix as a source of input
> data
> for the test vectors ;-)

  Excellent idea.

[snip]
>>> Regarding performance, any AEAD algorithm can be made to support a
>>> scatter/gather or init/update/final interface as per RFC1321.  It is =
a
>>> conventional technique to copy the intermediate state after an update
>>> operation, and then use it to process different suffixes.   Beyond
>>> that,
>>> there are functions that support an "incremental" interface, in the
>>> sense
>>> of
>>> "Incremental Cryptography and Application to Virus Protection" (27th
>>> ACM
>>> Symposium on the Theory of Computing, May 1995).  GMAC, and many othe=
r
>>> functions that make use of universal hashing, can be used in this way=
.
>>> So
>>> it is possible to reap the performance benefit claimed for SIV with
>>> some
>>> existing functions, and it's possible to realize the performance
>>> advantage
>>> without using a vector of inputs.
>>
>>   You seem to be arguing against the novelty of this idea but not
>> against
>> the idea itself.
>
> I was trying to make the point that the performance advantages can be
> realized without changing the user interface, so to speak.
>
>>
>>   It is a natural way to deal with AD. In [AEAD] you say,
>>
>>     "When using an AEAD to secure a network protocol, for example,
>>      this input could include addresses, ports, sequence numbers,
>>      protocol version numbers, and other fields that indicate how the
>>      plaintext or ciphertext should be handled, forwarded, or
>> processed."
>>
>> That's, potentially, several distinct pieces of information. Some may
>> be contiguous (addresses, ports and sequence numbers might all be in a
>> single header) but other might not be. Some AD might not even transit
>> with the authenticated and encrypted data.
>>
>>   I guess I can try to highlight this concept but it seems that what
>> should really be explained is why these multiple distinct pieces of
>> information have to be viewed as a single component input to an AEAD
>> cipher mode.
>
> To play the devil's advocate: why, then, is there a single plaintext in=
put
> in SIV instead of a vector of plaintext inputs?

  Because it's unnatural. Things like ports, sequence numbers, protocol
version numbers, and addresses cannot be encrypted because they need to b=
e
inspected by a network entity or a protocol layer that does not have
access to keying material. It is still valuable to authenticate them
end-to-end though. Also it is perfectly reasonable for a component of AD
to be internal state or something that does not transit with the encrypte=
d
and authenticated packet but there is no reason why one would want to
encrypt that.

  That is not the case with plaintext. In a network protocol data to
encrypt is contiguous. There could be a packet aggregation protocol
similar to the way 802.11n handles MPDU aggregation but if all the
packets are to be encrypted with the same key (not the case for 11n)
then all that's needed is to have enough cleartext header to deliver
the whole bundle of aggregated packets to the crypto engine. There is
no need for multiple disjoint components to plaintext.

  While it would be possible to modify an AEAD algorithm to accept
multiple distinct plaintext inputs (especially if it uses CTR mode for
encryption) it would overly complicate the encryption and decryption
definition with no benefit.

  The benefit of treating AD as multiple and distinct is that that's
the way it starts out. You need only specify the order in which it is
processed (and you need to do that regardless of how your mode handles
AD input). If you additionally require that AD be a single input then
you may also need to encode lengths of the distinct data. In one octet?
Two octets? Four octets? It's additional work to overcome a limitation
in the mode. If a cipher mode does not have a limitation it should not
be required to adopt one.

  You state that any AEAD algorithm can be modified to accept multiple
distinct pieces of AD using scatter/gather or init/update/final technique=
s.
Great! So AEAD algorithms that only allow a single input for AD have a wa=
y
to deal with the more natural case where AD is as you describe in [AEAD]
(you quote above). There seems to be no reason to _require_ all AEAD
algorithms to have a single input for AD.

  Can we please remove the single input AD requirement in [AEAD]? SIV
deals with AD the way it naturally is. It seems wrong to force SIV to dea=
l
with AD in an unnatural way because that's the way other modes handle it.

  Dan.




_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Thu Oct 25 17:43:46 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IlAQj-0007F4-8d; Thu, 25 Oct 2007 17:39:53 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IlAQi-0007Ey-86
	for cfrg@ietf.org; Thu, 25 Oct 2007 17:39:52 -0400
Received: from fk-out-0910.google.com ([209.85.128.185])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IlAQc-0006hx-18
	for cfrg@ietf.org; Thu, 25 Oct 2007 17:39:52 -0400
Received: by fk-out-0910.google.com with SMTP id z23so596072fkz
	for <cfrg@ietf.org>; Thu, 25 Oct 2007 14:38:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth;
	bh=AxhUK7b4nRA5/o2P9Ajg3BWBSJjUbqzA0BNMu2yIUMw=;
	b=KvofKEF4i3GhWhjPmvAuoKCenEkv3J4qNEdDjScxjZ0aYpLN2TvN0PTETpzdQ8EmwCtaxiH0t1nDVxiWdDH4SSSnO6uL+iS0m8sa06qWk4dIoP1+hWh5qDykSHSIjj2BoFcLx4QRQOG0LSt7B3bJBNX99RJKqOZr/hS6LpJMhNw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth;
	b=LQpXuqgP0EGK6v0UtQa5Cpc1czwMVsUckBx/f14Bpt1dKz2Y8FZKYuXvy5HVWFA8Sq8Ftrh8DH2IsMY/IQX6KxgPmTfsh0EgyP3pZXvZW6VieiNRDq3SeczO/0HC8jiEmmj0XNVy78kF6xm9Y8B8xQ43GWCtb8qKDZGr+/DKQys=
Received: by 10.82.172.10 with SMTP id u10mr4729962bue.1193348327509;
	Thu, 25 Oct 2007 14:38:47 -0700 (PDT)
Received: by 10.82.121.3 with HTTP; Thu, 25 Oct 2007 14:38:47 -0700 (PDT)
Message-ID: <e89b43830710251438r3131465end1c357957eee98c@mail.gmail.com>
Date: Thu, 25 Oct 2007 17:38:47 -0400
From: "Hugo Krawczyk" <hugo@ee.technion.ac.il>
To: cfrg@ietf.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Google-Sender-Auth: 90a70db9d1f7386e
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4adaf050708fb13be3316a9eee889caa
Cc: Shai Halevi <shaih@alum.mit.edu>,
	"Hugo Krawczyk \(ee\)" <hugo@ee.technion.ac.il>
Subject: [Cfrg] New Randomized Hashing Draft
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

We have submitted a new version of our randomized hashing internet
draft which is posted under
http://www.ietf.org/internet-drafts/draft-irtf-cfrg-rhash-01.txt

Here is the abstract:

   This document describes a randomized hashing scheme consisting of a
   simple message randomization transform that when used as a front-end
   to regular hash-then-sign signature schemes, such as RSA and DSS,
   frees these signatures from their current vulnerability to off-line
   collision attacks against the underlying hash function.  The proposed
   mechanism can work with any hash function as-is and requires no
   change to the underlying signature algorithm. Incorporating this
   mechanism into existing applications requires changes that are
   comparable in their complexity to accommodating a new (deterministic)
   hash function such as SHA-256.

It is worth stressing that the scheme has been simplified considerably
from a first version of this proposal which required the change to
encoding algorithms such as those in PKCS 1. No such change is
required now.

The draft contains a FULL specification and discusses implementation
issues, in particular how to accomodate the extra random salt required
by the scheme. It also reports on several experimental implementations
carried out by different teams.

A web page with detailed information on the scheme including papers on
analysis and implementation can be found in
http://www.ee.technion.ac.il/~hugo/rhash/

The specification in this internet draft is aligned with NIST's recent
Special Publication 800-106 (Draft) "Randomized Hashing Digital
Signatures"
http://csrc.nist.gov/publications/drafts/Draft-SP-800-106/Draft-SP800-106.pdf
that describes the same scheme. The main difference in our spec is
that we allow for some optimizations for specific hash families (most
notably Merkle-Damgard).

We welcome comments, especially any feedback related to the
suitability of the technique for specifc applications and potential
interest in specific IETF WGs.

Please send comments to the authors (cc-ed above) or via the cfrg mailing list.

Hugo

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From cfrg-bounces@ietf.org Mon Oct 29 16:15:13 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1ImaxZ-0003WY-Je; Mon, 29 Oct 2007 16:11:41 -0400
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1ImaxY-0003WT-RW
	for cfrg@ietf.org; Mon, 29 Oct 2007 16:11:40 -0400
Received: from sj-iport-2-in.cisco.com ([171.71.176.71]
	helo=sj-iport-2.cisco.com)
	by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1ImaxY-0003UQ-FO
	for cfrg@ietf.org; Mon, 29 Oct 2007 16:11:40 -0400
X-IronPort-AV: E=Sophos;i="4.21,344,1188802800"; d="scan'208";a="411367346"
Received: from sj-dkim-1.cisco.com ([171.71.179.21])
	by sj-iport-2.cisco.com with ESMTP; 29 Oct 2007 13:11:40 -0700
Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237])
	by sj-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l9TKBdHa027736
	for <cfrg@ietf.org>; Mon, 29 Oct 2007 13:11:39 -0700
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com
	[171.70.151.144])
	by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l9TKBRUt012604
	for <cfrg@ietf.org>; Mon, 29 Oct 2007 20:11:37 GMT
Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by
	xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 29 Oct 2007 13:11:23 -0700
Received: from [128.107.163.176] ([128.107.163.176]) by
	xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 29 Oct 2007 13:11:23 -0700
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <7E92AA78-BE51-4D77-8399-14319B39AB45@cisco.com>
Content-Transfer-Encoding: 7bit
From: Brian Weis <bew@cisco.com>
Date: Mon, 29 Oct 2007 13:11:37 -0700
To: cfrg@ietf.org
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 29 Oct 2007 20:11:23.0150 (UTC)
	FILETIME=[E08F4AE0:01C81A67]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1107; t=1193688699;
	x=1194552699; c=relaxed/simple; s=sjdkim1004;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=bew@cisco.com;
	z=From:=20Brian=20Weis=20<bew@cisco.com>
	|Subject:=20New=20CFRG=20I-D=3A=20Fast=20MAC=20Requirements
	|Sender:=20; bh=j6WUhZu4mqfW8gWfaaItua9joN1bdW5Fh8VDTPImyy0=;
	b=MxGz28aqSul9aEiui4AcZqtkGFlWZVz3pW/VVc29MHuJdFqXDmIpZpgAAmpKpofE519tqarX
	PEAqSC7wdJOSZVHfmGw6/PcFH0yok4NaRg7G/0b1eOZWpfmjIj7o1JhB/yhtcMg8kwRxfike1i
	gyEC0quCA2dY45hR8jkFElknk=;
Authentication-Results: sj-dkim-1; header.From=bew@cisco.com; dkim=pass (sig
	from cisco.com/sjdkim1004 verified; ); 
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9182cfff02fae4f1b6e9349e01d62f32
Cc: mcgrew@cisco.com
Subject: [Cfrg] New CFRG I-D: Fast MAC Requirements
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Greetings,

The new I-D http://www.ietf.org/internet-drafts/draft-irtf-cfrg-fast- 
mac-requirements-00.txt is available. It describes the need for a  
fast MAC (in software) and proposes a set of requirements for such a  
MAC. Although there are possibly many applications for a fast MAC,  
the particular one we have in mind is the replacement for the TCP MD5  
Signature Option (being discussed in the transport area).

Abstract:
This memo outlines requirements guiding the development of a fast
Message Authentication Code (MAC) algorithm suitable for use with
many IETF protocols, but in particular routing protocols that use a
MAC for packet authentication.

It is widely conjectured that secure MACs that are fast in software
are possible, and many interesting MACs have appeared in the
literature.  Nevertheless, none of these MACs have seen broad
adoption, and none are a good match for the routing protocol case.
We hope that this memo brings together MAC designers and MAC users
for a fruitful discussion.

Comments to the authors or CFRG list are invited.

Brian & David

_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



