From cfrg-bounces@ietf.org Mon Feb 06 22:39:15 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F6JhD-0006Fd-97; Mon, 06 Feb 2006 22:39:15 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F6JhB-0006EC-7y
	for cfrg@megatron.ietf.org; Mon, 06 Feb 2006 22:39:13 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA11812
	for <cfrg@ietf.org>; Mon, 6 Feb 2006 22:37:20 -0500 (EST)
Received: from above.proper.com ([208.184.76.39])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F6JtH-00043c-TS
	for cfrg@ietf.org; Mon, 06 Feb 2006 22:51:46 -0500
Received: from [10.20.30.249] (dsl2-63-249-108-169.cruzio.com [63.249.108.169])
	(authenticated bits=0)
	by above.proper.com (8.12.11/8.12.9) with ESMTP id k173crm0060683
	for <cfrg@ietf.org>; Mon, 6 Feb 2006 19:38:54 -0800 (PST)
	(envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p0623091ec00dc6840272@[10.20.30.249]>
Date: Mon, 6 Feb 2006 19:38:51 -0800
To: cfrg@ietf.org
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7aefe408d50e9c7c47615841cb314bed
Subject: [Cfrg] New Proofs for NMAC and HMAC: Security Without
 Collision-Resistance
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

This paper by Mihir Bellare seems fairly interesting and quite 
related to some recent threads on this mailing list.

<http://eprint.iacr.org/2006/043>

--Paul Hoffman, Director
--VPN Consortium

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



From cfrg-bounces@ietf.org Tue Feb 07 10:44:19 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F6V0t-00082K-M6; Tue, 07 Feb 2006 10:44:19 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F6V0r-0007y7-Kh
	for cfrg@megatron.ietf.org; Tue, 07 Feb 2006 10:44:17 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA05067
	for <cfrg@ietf.org>; Tue, 7 Feb 2006 10:42:35 -0500 (EST)
Received: from fmr17.intel.com ([134.134.136.16] helo=orsfmr002.jf.intel.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F6VDG-0004OP-Fu
	for cfrg@ietf.org; Tue, 07 Feb 2006 10:57:07 -0500
Received: from orsfmr100.jf.intel.com (orsfmr100.jf.intel.com [10.7.209.16])
	by orsfmr002.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc,
	v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id k17FhwXq031128
	for <cfrg@ietf.org>; Tue, 7 Feb 2006 15:43:58 GMT
Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com
	[132.233.42.124])
	by orsfmr100.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc,
	v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id k17FhvaD026562
	for <cfrg@ietf.org>; Tue, 7 Feb 2006 15:43:58 GMT
Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148])
	by fmsmsxvs040.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id
	M2006020707435711356
	for <cfrg@ietf.org>; Tue, 07 Feb 2006 07:43:57 -0800
Received: from fmsmsx312.amr.corp.intel.com ([132.233.42.227]) by
	fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 7 Feb 2006 07:43:57 -0800
Received: from hdsmsx401.amr.corp.intel.com ([10.127.2.60]) by
	fmsmsx312.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 7 Feb 2006 07:43:57 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] New Proofs for NMAC and HMAC: Security Without
	Collision-Resistance
Date: Tue, 7 Feb 2006 10:41:37 -0500
Message-ID: <5404AEB459F8354F81995E038F34320002663041@hdsmsx401.amr.corp.intel.com>
Thread-Topic: [Cfrg] New Proofs for NMAC and HMAC: Security Without
	Collision-Resistance
Thread-Index: AcYrmoBxptWVf4hNRpu3DkLgbpr9ngAYWRwA
From: "Blumenthal, Uri" <uri.blumenthal@intel.com>
To: <cfrg@ietf.org>
X-OriginalArrivalTime: 07 Feb 2006 15:43:57.0423 (UTC)
	FILETIME=[4EBAE7F0:01C62BFD]
X-Scanned-By: MIMEDefang 2.52 on 10.7.209.16
X-Spam-Score: 0.0 (/)
X-Scan-Signature: de4f315c9369b71d7dd5909b42224370
Content-Transfer-Encoding: quoted-printable
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

> This paper by Mihir Bellare seems fairly interesting and
> quite related to some recent threads on this mailing list.
> <http://eprint.iacr.org/2006/043>

Paul,

Thanks for bringing our attention to it. It is more than interesting.

One observation: this paper basically says that we were looking for
wrong properties! Collision resistance (strong or weak) is unnecessary:
if the underlying compression function is a PRF - then keyed MAC is
secure; and if it's not a PRF (Bellare proved that a slightly weaker
assumption is still OK) - then weak collision resistance won't help.

So when we specify requirements for crypto hash - what we really
want/need is Pseudo-Randomness. Then we can safely use it in key
derivation, and then keyed MAC is also secure.=20

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



From cfrg-bounces@ietf.org Tue Feb 07 13:35:06 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F6Xg9-0002YE-Tl; Tue, 07 Feb 2006 13:35:05 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F6Xg7-0002Vq-Oe
	for cfrg@megatron.ietf.org; Tue, 07 Feb 2006 13:35:04 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA18832
	for <cfrg@ietf.org>; Tue, 7 Feb 2006 13:33:22 -0500 (EST)
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 1F6XsX-00024F-QB
	for cfrg@ietf.org; Tue, 07 Feb 2006 13:47:55 -0500
Received: from sj-core-1.cisco.com ([171.71.177.237])
	by sj-iport-1.cisco.com with ESMTP; 07 Feb 2006 10:34:50 -0800
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 k17IYoKb024112;
	Tue, 7 Feb 2006 10:34:50 -0800 (PST)
Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by
	xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211);
	Tue, 7 Feb 2006 10:34:46 -0800
Received: from [192.168.1.100] ([10.32.254.210]) by xfe-sjc-212.amer.cisco.com
	with Microsoft SMTPSVC(6.0.3790.211); Tue, 7 Feb 2006 10:34:45 -0800
In-Reply-To: <5404AEB459F8354F81995E038F34320002663041@hdsmsx401.amr.corp.intel.com>
References: <5404AEB459F8354F81995E038F34320002663041@hdsmsx401.amr.corp.intel.com>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <8F885CD8-BFE4-4C88-9D59-F8602F53F4FE@cisco.com>
Content-Transfer-Encoding: 7bit
From: David McGrew <mcgrew@cisco.com>
Subject: Re: [Cfrg] New Proofs for NMAC and HMAC: Security Without
	Collision-Resistance
Date: Tue, 7 Feb 2006 10:34:58 -0800
To: "Blumenthal, Uri" <uri.blumenthal@intel.com>
X-Mailer: Apple Mail (2.746.2)
X-OriginalArrivalTime: 07 Feb 2006 18:34:45.0885 (UTC)
	FILETIME=[2B4A1AD0:01C62C15]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: bb8f917bb6b8da28fc948aeffb74aa17
Content-Transfer-Encoding: 7bit
Cc: cfrg@ietf.org
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

Hi Uri,

On Feb 7, 2006, at 7:41 AM, Blumenthal, Uri wrote:

>> This paper by Mihir Bellare seems fairly interesting and
>> quite related to some recent threads on this mailing list.
>> <http://eprint.iacr.org/2006/043>
>
> Paul,
>
> Thanks for bringing our attention to it. It is more than interesting.
>
> One observation: this paper basically says that we were looking for
> wrong properties! Collision resistance (strong or weak) is  
> unnecessary:
> if the underlying compression function is a PRF - then keyed MAC is
> secure; and if it's not a PRF (Bellare proved that a slightly weaker
> assumption is still OK) - then weak collision resistance won't help.
>
> So when we specify requirements for crypto hash - what we really
> want/need is Pseudo-Randomness. Then we can safely use it in key
> derivation, and then keyed MAC is also secure.

AFAICT, Mihir's work doesn't address the issue of whether or not NMAC  
or HMAC is a secure way of deriving symmetric keys from a Diffie- 
Hellman secret.  The abstract describes the work as showing that the  
functions are good PRFs (or just good MACs) based on some different  
assumptions, but a DH key derivation function can't be shown to be  
secure merely because it is a PRF.

Of course, this is not to suggest that HMAC is a bad KDF.  I suspect  
that it is a good one, but I just don't think that the work cited  
proves anything in that direction.

David

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



From cfrg-bounces@ietf.org Tue Feb 07 18:01:54 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F6bqM-0007Yl-6M; Tue, 07 Feb 2006 18:01:54 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F6bqK-0007Xu-5L
	for cfrg@megatron.ietf.org; Tue, 07 Feb 2006 18:01:52 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA09522
	for <cfrg@ietf.org>; Tue, 7 Feb 2006 17:59:59 -0500 (EST)
Received: from fmr23.intel.com ([143.183.121.15] helo=scsfmr003.sc.intel.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F6c2a-0002z1-Hy
	for cfrg@ietf.org; Tue, 07 Feb 2006 18:14:33 -0500
Received: from scsfmr101.sc.intel.com (scsfmr101.sc.intel.com [10.3.253.10])
	by scsfmr003.sc.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1
	2004/09/17 17:50:56 root Exp $) with ESMTP id k17N1M4k021533; 
	Tue, 7 Feb 2006 23:01:22 GMT
Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com
	[132.233.42.124])
	by scsfmr101.sc.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2
	2004/09/17 18:05:01 root Exp $) with SMTP id k17Muao9031926; 
	Tue, 7 Feb 2006 22:56:37 GMT
Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148])
	by fmsmsxvs040.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id
	M2006020715011904620 ; Tue, 07 Feb 2006 15:01:19 -0800
Received: from fmsmsx312.amr.corp.intel.com ([132.233.42.227]) by
	fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 7 Feb 2006 15:01:19 -0800
Received: from hdsmsx401.amr.corp.intel.com ([10.127.2.60]) by
	fmsmsx312.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 7 Feb 2006 15:01:19 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] New Proofs for NMAC and HMAC: Security Without
	Collision-Resistance
Date: Tue, 7 Feb 2006 17:58:57 -0500
Message-ID: <5404AEB459F8354F81995E038F343200026635F0@hdsmsx401.amr.corp.intel.com>
Thread-Topic: [Cfrg] New Proofs for NMAC and HMAC: Security Without
	Collision-Resistance
Thread-Index: AcYsFZiEshm0Csf3RyWMZivlTbToowACxufw
From: "Blumenthal, Uri" <uri.blumenthal@intel.com>
To: "David McGrew" <mcgrew@cisco.com>
X-OriginalArrivalTime: 07 Feb 2006 23:01:19.0129 (UTC)
	FILETIME=[68017890:01C62C3A]
X-Scanned-By: MIMEDefang 2.52 on 10.3.253.10
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cab78e1e39c4b328567edb48482b6a69
Content-Transfer-Encoding: quoted-printable
Cc: cfrg@ietf.org
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

Hi David,=20

>> One observation: this paper basically says that we were looking for
>> wrong properties! Collision resistance (strong or weak) is =20
>> unnecessary: if the underlying compression function is a PRF then
>> keyed MAC is secure; and if it's not a PRF (Bellare proved that
>> a slightly weaker assumption is still OK) - then weak collision
>> resistance won't help.
>>
>> So when we specify requirements for crypto hash - what we really
>> want/need is Pseudo-Randomness. Then we can safely use it in key
>> derivation, and then keyed MAC is also secure.
>
> AFAICT, Mihir's work doesn't address the issue of whether or not
> NMAC or HMAC is a secure way of deriving symmetric keys from a
> Diffie-Hellman secret.

True. But *if* the construct is a PRF - and there's a good chance of it
if the underlying primitive is a PRF - then key derivation using that
construct to derive keys seems secure enough (yes I realize that DH
secret may have properties :-).

> The abstract describes the work as showing that the functions
> are good PRFs (or just good MACs) based on some different
> assumptions

Hmm... What I read from the paper is something different: in order to
have a good MAC one _has_ to start with a PRF as a compression function.
I don't see anything but assumption that SHA (or MDx) in fact _are_ PRFs
- just the statement that _if_ they are - not only HMAC is secure
(regardless of presence or absence of collision resistance), but also
key derivation applications. Consequently - if those hash function are
in fact _not_ PRFs, then not only key derivation shouldn't be done with
them - but also MACing may be insecure even using HMAC construct.

> ......... but a DH key derivation function can't be shown
> to be secure merely because it is a PRF.

Understand, though not quite. We can discuss this.

> Of course, this is not to suggest that HMAC is a bad KDF.=20
> I suspect that it is a good one, but I just don't think
> that the work cited proves anything in that direction.

:-)

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



From cfrg-bounces@ietf.org Wed Feb 08 09:46:41 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F6qaf-0005Xz-OQ; Wed, 08 Feb 2006 09:46:41 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F6nac-00027G-QA
	for cfrg@megatron.ietf.org; Wed, 08 Feb 2006 06:34:31 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA13636
	for <cfrg@ietf.org>; Wed, 8 Feb 2006 06:32:35 -0500 (EST)
Received: from mail-router01.qut.edu.au ([131.181.254.7])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F6nn1-0000Xv-OS
	for cfrg@ietf.org; Wed, 08 Feb 2006 06:47:17 -0500
Received: from mail-msgstore01.qut.edu.au (mail-msgstore01.qut.edu.au
	[131.181.118.55]) by mail-router01.qut.edu.au (MOS 3.7.3a-GA)
	with ESMTP id EDN23422; Wed, 8 Feb 2006 21:33:58 +1000 (EST)
Received: (from mail-msgstore01.qut.edu.au [203.117.181.40])
	by mail-msgstore01.qut.edu.au (MOS 3.7.3a-GA)
	with HTTPS/1.1 id BZM16064 (AUTH n3112918);
	Wed,  8 Feb 2006 21:32:34 +1000 (EST)
From: Praveen Gauravaram <p.gauravaram@student.qut.edu.au>
Subject: RE: [Cfrg] New Proofs for NMAC and HMAC:
	Security Without	Collision-Resistance
To: "Blumenthal, Uri" <uri.blumenthal@intel.com>,
	David McGrew <mcgrew@cisco.com>
X-Mailer: Mirapoint Webmail Direct 3.7.3a-GA
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20060208213234.BZM16064@mail-msgstore01.qut.edu.au>
Date: Wed,  8 Feb 2006 21:32:34 +1000 (EST)
X-Junkmail-Whitelist: YES (by domain whitelist at mail-router01.qut.edu.au)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 41c17b4b16d1eedaa8395c26e9a251c4
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Wed, 08 Feb 2006 09:45:54 -0500
Cc: cfrg@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: p.gauravaram@student.qut.edu.au
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

Dear David and cfrg members:
It is my pleasure to introduce myself as Praveen Gauravaram.
In the following draft version 
(http://eprint.iacr.org/2005/390) we have modified Merkle Damgard construction to serve many purposes. We have proved that if f is a PRF then the modified MD construction called 3C is also a PRF. Then it works as a MAC as well. It also serves as a new mode of operation for the MD hash function providing more resistance against multi-block collision attacks demonstrated on MD5 and SHA-1 hash functions by Wang. In fact we are currently working on this draft and a completed version will be released soon. As a hash function the construction avoids extension attacks as well. It is a simple modification to MD hash.

Unfortunately I will be away in the next few days and may not be contribute in replying to this group. I would kindly appreciate for any useful comments. The main point from the point of view of PRF here is using just one key we were able to show that the nested construction works as a PRF. 

I shall catch up with this soon.
Yours sincerely,
Praveen


---- Original message ----
>Date: Tue, 7 Feb 2006 17:58:57 -0500
>From: "Blumenthal, Uri" <uri.blumenthal@intel.com>  
>Subject: RE: [Cfrg] New Proofs for NMAC and HMAC: Security Without Collision-Resistance  
>To: "David McGrew" <mcgrew@cisco.com>
>Cc: cfrg@ietf.org
>
>Hi David, 
>
>>> One observation: this paper basically says that we were looking for
>>> wrong properties! Collision resistance (strong or weak) is  
>>> unnecessary: if the underlying compression function is a PRF then
>>> keyed MAC is secure; and if it's not a PRF (Bellare proved that
>>> a slightly weaker assumption is still OK) - then weak collision
>>> resistance won't help.
>>>
>>> So when we specify requirements for crypto hash - what we really
>>> want/need is Pseudo-Randomness. Then we can safely use it in key
>>> derivation, and then keyed MAC is also secure.
>>
>> AFAICT, Mihir's work doesn't address the issue of whether or not
>> NMAC or HMAC is a secure way of deriving symmetric keys from a
>> Diffie-Hellman secret.
>
>True. But *if* the construct is a PRF - and there's a good chance of it
>if the underlying primitive is a PRF - then key derivation using that
>construct to derive keys seems secure enough (yes I realize that DH
>secret may have properties :-).
>
>> The abstract describes the work as showing that the functions
>> are good PRFs (or just good MACs) based on some different
>> assumptions
>
>Hmm... What I read from the paper is something different: in order to
>have a good MAC one _has_ to start with a PRF as a compression function.
>I don't see anything but assumption that SHA (or MDx) in fact _are_ PRFs
>- just the statement that _if_ they are - not only HMAC is secure
>(regardless of presence or absence of collision resistance), but also
>key derivation applications. Consequently - if those hash function are
>in fact _not_ PRFs, then not only key derivation shouldn't be done with
>them - but also MACing may be insecure even using HMAC construct.
>
>> ......... but a DH key derivation function can't be shown
>> to be secure merely because it is a PRF.
>
>Understand, though not quite. We can discuss this.
>
>> Of course, this is not to suggest that HMAC is a bad KDF. 
>> I suspect that it is a good one, but I just don't think
>> that the work cited proves anything in that direction.
>
>:-)
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@ietf.org
>https://www1.ietf.org/mailman/listinfo/cfrg

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



From cfrg-bounces@ietf.org Tue Feb 14 16:45:50 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F97za-0006OG-6R; Tue, 14 Feb 2006 16:45:50 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F97zW-0006Mp-BS
	for cfrg@megatron.ietf.org; Tue, 14 Feb 2006 16:45:48 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA04909
	for <cfrg@ietf.org>; Tue, 14 Feb 2006 16:43:57 -0500 (EST)
Received: from sj-iport-2-in.cisco.com ([171.71.176.71]
	helo=sj-iport-2.cisco.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1F98DK-00034c-Oe
	for cfrg@ietf.org; Tue, 14 Feb 2006 17:00:05 -0500
Received: from sj-core-5.cisco.com ([171.71.177.238])
	by sj-iport-2.cisco.com with ESMTP; 14 Feb 2006 13:45:32 -0800
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com
	[128.107.191.63])
	by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id k1ELjSk3011462;
	Tue, 14 Feb 2006 13:45:31 -0800 (PST)
Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by
	xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211);
	Tue, 14 Feb 2006 13:45:29 -0800
Received: from [128.107.163.46] ([128.107.163.46]) by
	xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211);
	Tue, 14 Feb 2006 13:45:28 -0800
In-Reply-To: <20060208213234.BZM16064@mail-msgstore01.qut.edu.au>
References: <20060208213234.BZM16064@mail-msgstore01.qut.edu.au>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <0D00913C-62CF-457A-A5F6-850F0D2E7AE4@cisco.com>
Content-Transfer-Encoding: 7bit
From: David McGrew <mcgrew@cisco.com>
Subject: Re: [Cfrg] New Proofs for NMAC and HMAC: Security
	Without	Collision-Resistance
Date: Tue, 14 Feb 2006 13:45:53 -0800
To: p.gauravaram@student.qut.edu.au
X-Mailer: Apple Mail (2.746.2)
X-OriginalArrivalTime: 14 Feb 2006 21:45:28.0658 (UTC)
	FILETIME=[F89AF320:01C631AF]
X-Spam-Score: 2.2 (++)
X-Scan-Signature: e1b0e72ff1bbd457ceef31828f216a86
Content-Transfer-Encoding: 7bit
Cc: cfrg@ietf.org
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

Hi Praveen,

On Feb 8, 2006, at 3:32 AM, Praveen Gauravaram wrote:

> Dear David and cfrg members:
> It is my pleasure to introduce myself as Praveen Gauravaram.
> In the following draft version
> (http://eprint.iacr.org/2005/390) we have modified Merkle Damgard  
> construction to serve many purposes. We have proved that if f is a  
> PRF then the modified MD construction called 3C is also a PRF. Then  
> it works as a MAC as well. It also serves as a new mode of  
> operation for the MD hash function providing more resistance  
> against multi-block collision attacks demonstrated on MD5 and SHA-1  
> hash functions by Wang. In fact we are currently working on this  
> draft and a completed version will be released soon. As a hash  
> function the construction avoids extension attacks as well. It is a  
> simple modification to MD hash.

yes, it looks interesting.  The most interesting aspect is the  
potential for improved collision resistance, since that's the  
property that has proven more difficult to achieve than was  
originally thought.

David

>
> Unfortunately I will be away in the next few days and may not be  
> contribute in replying to this group. I would kindly appreciate for  
> any useful comments. The main point from the point of view of PRF  
> here is using just one key we were able to show that the nested  
> construction works as a PRF.
>
> I shall catch up with this soon.
> Yours sincerely,
> Praveen
>
>
> ---- Original message ----
>> Date: Tue, 7 Feb 2006 17:58:57 -0500
>> From: "Blumenthal, Uri" <uri.blumenthal@intel.com>
>> Subject: RE: [Cfrg] New Proofs for NMAC and HMAC: Security Without  
>> Collision-Resistance
>> To: "David McGrew" <mcgrew@cisco.com>
>> Cc: cfrg@ietf.org
>>
>> Hi David,
>>
>>>> One observation: this paper basically says that we were looking for
>>>> wrong properties! Collision resistance (strong or weak) is
>>>> unnecessary: if the underlying compression function is a PRF then
>>>> keyed MAC is secure; and if it's not a PRF (Bellare proved that
>>>> a slightly weaker assumption is still OK) - then weak collision
>>>> resistance won't help.
>>>>
>>>> So when we specify requirements for crypto hash - what we really
>>>> want/need is Pseudo-Randomness. Then we can safely use it in key
>>>> derivation, and then keyed MAC is also secure.
>>>
>>> AFAICT, Mihir's work doesn't address the issue of whether or not
>>> NMAC or HMAC is a secure way of deriving symmetric keys from a
>>> Diffie-Hellman secret.
>>
>> True. But *if* the construct is a PRF - and there's a good chance  
>> of it
>> if the underlying primitive is a PRF - then key derivation using that
>> construct to derive keys seems secure enough (yes I realize that DH
>> secret may have properties :-).
>>
>>> The abstract describes the work as showing that the functions
>>> are good PRFs (or just good MACs) based on some different
>>> assumptions
>>
>> Hmm... What I read from the paper is something different: in order to
>> have a good MAC one _has_ to start with a PRF as a compression  
>> function.
>> I don't see anything but assumption that SHA (or MDx) in fact  
>> _are_ PRFs
>> - just the statement that _if_ they are - not only HMAC is secure
>> (regardless of presence or absence of collision resistance), but also
>> key derivation applications. Consequently - if those hash function  
>> are
>> in fact _not_ PRFs, then not only key derivation shouldn't be done  
>> with
>> them - but also MACing may be insecure even using HMAC construct.
>>
>>> ......... but a DH key derivation function can't be shown
>>> to be secure merely because it is a PRF.
>>
>> Understand, though not quite. We can discuss this.
>>
>>> Of course, this is not to suggest that HMAC is a bad KDF.
>>> I suspect that it is a good one, but I just don't think
>>> that the work cited proves anything in that direction.
>>
>> :-)
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/cfrg

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



From cfrg-bounces@ietf.org Thu Feb 16 13:08:14 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F9nY6-0001uH-SH; Thu, 16 Feb 2006 13:08:14 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F9nY5-0001ta-TT
	for cfrg@megatron.ietf.org; Thu, 16 Feb 2006 13:08:13 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA16946
	for <cfrg@ietf.org>; Thu, 16 Feb 2006 13:06:26 -0500 (EST)
Received: from stoneport.math.uic.edu ([131.193.178.160])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1F9nmM-0007QA-O6
	for cfrg@ietf.org; Thu, 16 Feb 2006 13:22:59 -0500
Received: (qmail 17450 invoked by uid 1016); 16 Feb 2006 18:08:42 -0000
Date: 16 Feb 2006 18:08:42 -0000
Message-ID: <20060216180842.17449.qmail@cr.yp.to>
Automatic-Legal-Notices: See http://cr.yp.to/mailcopyright.html.
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@ietf.org
Subject: Re: [Cfrg] New Proofs for NMAC and HMAC: Security Without
	Collision-Resistance
References: <5404AEB459F8354F81995E038F343200026635F0@hdsmsx401.amr.corp.intel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0ddefe323dd869ab027dbfff7eff0465
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>
Sender: cfrg-bounces@ietf.org
Errors-To: cfrg-bounces@ietf.org

It's well known that the standard Wegman-Carter hash-and-encrypt MACs
are secure if the secret-key hash function has low differential
probabilities and the secret-key encryption function is a PRF.

NMAC, HMAC, etc. are examples of the Wegman-Carter framework. They use
SHA with a secret IV as the hash function---conjectured to have low
differential probabilities---and SHA with another secret IV as the
encryption function---conjecturally a PRF.

These aren't particularly good Wegman-Carter examples. We have _faster_
hash functions that are _proven_ to have low differential probabilities.
For example, Poly1305 has low differential probabilities and is much
faster than SHA, so it's much better than SHA as the hash function in a
Wegman-Carter MAC.

See http://cr.yp.to/talks.html#2005.02.15 for many more examples.

Blumenthal, Uri writes:
> Hmm... What I read from the paper is something different: in order to
> have a good MAC one _has_ to start with a PRF as a compression function.

No. You _can_ start with a PRF compression function, cascade it to build
a PRF hash function, and conclude that the PRF hash function has low
differential probabilities; but most constructions in the literature
don't work this way. For example, Poly1305 certainly isn't a PRF. The
PRF property is overkill.

> True. But *if* the construct is a PRF - and there's a good chance of it
> if the underlying primitive is a PRF - then key derivation using that
> construct to derive keys seems secure enough

No. The Vernam key generator is trivially proven to be a PRF, but it's
useless for deriving a secret key from a Diffie-Hellman result g^xy.

It's true that cipher designers use the same basic techniques to build

   * fast key-derivation functions believed to be secure,
   * fast short-key functions believed to be PRFs,
   * fast functions believed to be one-way,
   * fast functions believed to be collision-resistant,

etc.; but these security properties shouldn't be confused. We have many
examples of specific functions that are secure for one context and
breakable for another. It's often a speed disaster to reject functions
in one context merely because they don't qualify in another, and it's
often a security disaster to allow functions in one context merely
because they qualify in another.

---D. J. Bernstein, Professor, Mathematics, Statistics,
and Computer Science, University of Illinois at Chicago

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



