From mailnull@www1.ietf.org  Wed Mar 12 16:15:27 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA23225
	for <cfrg-archive@odin.ietf.org>; Wed, 12 Mar 2003 16:15:27 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2CLTZG15990
	for cfrg-archive@odin.ietf.org; Wed, 12 Mar 2003 16:29:35 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2CLTZO15987
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 12 Mar 2003 16:29:35 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA23214
	for <cfrg-web-archive@ietf.org>; Wed, 12 Mar 2003 16:14:55 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2CLOnO15648;
	Wed, 12 Mar 2003 16:24:49 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2CLNNO15576
	for <cfrg@optimus.ietf.org>; Wed, 12 Mar 2003 16:23:23 -0500
Received: from sottmxssm.entrust.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA22938
	for <cfrg@ietf.org>; Wed, 12 Mar 2003 16:08:44 -0500 (EST)
Received: from SOTTMXS01.entrust.com (sottmxs01.entrust.com [10.4.61.7])
	by sottmxssm.entrust.com (Switch-2.2.5/Switch-2.2.4) with ESMTP id V2CL08GV06052
	for <cfrg@ietf.org>; Wed, 12 Mar 2003 16:08:16 -0500
Received: by sottmxs01.entrust.com with Internet Mail Service (5.5.2656.59)
	id <GXR5N7KH>; Wed, 12 Mar 2003 16:10:54 -0500
Message-ID: <BFB44293CE13C9419B7AFE7CBC35B93903E27C02@sottmxs08.entrust.com>
From: Robert Zuccherato <robert.zuccherato@entrust.com>
To: cfrg@ietf.org
Date: Wed, 12 Mar 2003 16:10:53 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2656.59)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C2E8DB.DD9226E0"
Subject: [Cfrg] CFP: SAC 2003
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2E8DB.DD9226E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

[Apologies if you receive multiple copies of this announcement.]

[Call For Papers - Please distribute and post.]=20
(Submissions due May 2, 2003.  See http://www.scs.carleton.ca/~sac2003/
<http://www.scs.carleton.ca/~sac2003/>  for further information.)
________________________________________________________________________=
____
_______
SAC 2003
Tenth Annual Workshop on SELECTED AREAS IN CRYPTOGRAPHY=20
August 14 & 15, 2003
Carleton University
Ottawa, Ontario, Canada
=20
The Workshop on Selected Areas in Cryptography (SAC) is an annual =
conference
dedicated to specific themes in the area of cryptographic system design =
and
analysis. Authors are encouraged to submit original papers related to =
the
themes for the SAC 2003 workshop:
*	Design and analysis of symmetric key cryptosystems.=20
*	Primitives for symmetric key cryptography, including block and
stream ciphers, hash functions, and MACs.
*	Efficient implementation of cryptographic systems in public and
symmetric key cryptography.
*	Cryptographic solutions for Web services security.=20
*	Cryptography and security of trusted and distributed systems.=20
=20
In addition to talks from accepted submissions, SAC 2003 will include
seminars from invited speakers:=20
=B7   Nicolas Courtois, Schlumberger Smart Cards
=B7   Virgil D. Gligor, University of Maryland

This year's workshop is chaired by Mitsuru Matsui from Mitsubishi =
Electric,
Japan, and Robert Zuccherato from Entrust, Inc., Canada.
Questions regarding the conference should be sent to
sac2003@scs.carleton.ca <mailto:sac2003@scs.carleton.ca>  .=20
Important Dates=20
Paper Submission Deadline     May 2, 2003
Notification of Acceptance    Jun. 18, 2003
Early Registration Deadline   Jul. 11, 2003
Workshop                      Aug. 14 and 15, 2003 =20
Proceedings Version Deadline  Sep. 14, 2003



------_=_NextPart_001_01C2E8DB.DD9226E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>CFP: SAC 2003</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Courier New">[Apologies if you receive =
multiple copies of this announcement.]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">[Call For Papers - Please =
distribute and post.] </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">(Submissions due May 2, =
2003.&nbsp; See <A HREF=3D"http://www.scs.carleton.ca/~sac2003/" =
TARGET=3D"_blank">http://www.scs.carleton.ca/~sac2003/</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">&lt;<A =
HREF=3D"http://www.scs.carleton.ca/~sac2003/" =
TARGET=3D"_blank">http://www.scs.carleton.ca/~sac2003/</A>&gt;&nbsp; =
for further information.)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">___________________________________________________________________=
________________</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">SAC 2003</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Tenth Annual Workshop on =
SELECTED AREAS IN CRYPTOGRAPHY </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">August 14 &amp; 15, 2003</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Carleton University</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Ottawa, Ontario, Canada</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">The Workshop on Selected Areas =
in Cryptography (SAC) is an annual conference</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">dedicated to specific themes in =
the area of cryptographic system design and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">analysis. Authors are =
encouraged to submit original papers related to the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">themes for the SAC 2003 =
workshop:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Design and analysis of =
symmetric key cryptosystems. </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Primitives for symmetric key =
cryptography, including block and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">stream ciphers, hash functions, =
and MACs.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Efficient implementation of =
cryptographic systems in public and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">symmetric key =
cryptography.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cryptographic solutions for =
Web services security. </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cryptography and security of =
trusted and distributed systems. </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">In addition to talks from =
accepted submissions, SAC 2003 will include</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">seminars from invited speakers: =
</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">=B7&nbsp;&nbsp; Nicolas =
Courtois, Schlumberger Smart Cards</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">=B7&nbsp;&nbsp; Virgil D. =
Gligor, University of Maryland</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">This year's workshop is chaired =
by Mitsuru Matsui from Mitsubishi Electric,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Japan, and Robert Zuccherato =
from Entrust, Inc., Canada.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Questions regarding the =
conference should be sent to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">sac2003@scs.carleton.ca &lt;<A =
HREF=3D"mailto:sac2003@scs.carleton.ca">mailto:sac2003@scs.carleton.ca</=
A>&gt;&nbsp; . </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Important Dates </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Paper Submission =
Deadline&nbsp;&nbsp;&nbsp;&nbsp; May 2, 2003</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Notification of Acceptance&nbsp;=
&nbsp;&nbsp; Jun. 18, 2003</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Early Registration =
Deadline&nbsp;&nbsp; Jul. 11, 2003</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">Workshop&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Aug. 14 and 15, 2003&nbsp; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Proceedings Version =
Deadline&nbsp; Sep. 14, 2003</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C2E8DB.DD9226E0--
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Sun Mar 23 03:36:24 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id DAA27657
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 03:36:24 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2N8tcx18970
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 03:55:38 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2N8tcO18967
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 03:55:38 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id DAA27651
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 03:35:52 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2N8s5O18913;
	Sun, 23 Mar 2003 03:54:05 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2N8q3O18881
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 03:52:03 -0500
Received: from hoemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id DAA27620
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 03:32:18 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2N8YZ009411
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 03:34:35 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2N8YYA01091; Sun, 23 Mar 2003 03:34:34 -0500 (EST)
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2N8YX101087; Sun, 23 Mar 2003 03:34:33 -0500 (EST)
Message-ID: <3E7D718F.7050304@bell-labs.com>
Date: Sun, 23 Mar 2003 03:34:23 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Content-Type: multipart/mixed;
 boundary="------------020208050107040706040902"
Subject: [Cfrg] AES-based PRF - comment please
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

This is a multi-part message in MIME format.
--------------020208050107040706040902
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Folks,

Here's a proposed PRF based on AES block cipher. Its purpose is
to allow variable length input and output for AES, including
keying material. It can be useful for AES-only protocol suites
in IKEv2. It is based directly on Rijndael submission paper,
where they describe how to use Rijndael as Hash and as PRF.

Ted Ts'o asked me to post it here, which is my pleasure to do.
I look for comments, improvements and criticism.

Thank you!

Regards,
Uri.

P.S. IKEv2 will use AES as block cipher, and g^xy as S. But it
would be nice if the construct holds for generic block cipher
and generic secret S.

--------------020208050107040706040902
Content-Type: text/plain;
 name="aes-prf.txt"
Content-Disposition: inline;
 filename="aes-prf.txt"
Content-Transfer-Encoding: 7bit

PROPOSAL: AES-BASED PSEUDO RANDOM FUNCTION FOR IKEv2.

PRF(S, N)

The goal is to produce requested amount of pseudo
random bits, using AES (or other block cipher) and 
variable-length input for both parameters: the secret
one (e.g. DH output) and the one publicly known (e.g.
concatenation of nonces). Should work with variable
key length, preferably support different block sizes.
Preferably, the construct is provably secure.

The following idea is implementing recommendation from
Rijndael Submission Paper to NIST, in particular - for
using AES as Pseudo Random Function. It is assumed that
AES is the block cipher that will be used, but the 
construct is generic enough to accomodate other 
block ciphers with no weak keys.



ALGORITHM:  PRF(S, N)

S is secret, N may be known. No assumption on the quality 
of randomness is made for either parameter. No limitation 
on size of S, N. 

Outputs pseudo-random stream of bits in  cipher blocksize
chunks (128-bit for AES). Bu default - outputs the number
of bits equal to blocksize. Optionally the amount of
output bits can be specified.

Block cipher is assumed, with key-buffer for key, and
data-buffer for plaintext. AES is a natural choice.

Algorithm:
  
   1. Fill the key-buffer with S. If S is shorter than
      the key-buffer, pad the key buffer with zeroes.
      
   2. If any bits of S are left after step (1), place
      them in the data-buffer. Append parameter N to
      the data-buffer. Pad the data-buffer with zeroes
      if necessary, to make it multiple of cipher block
      size, and at least as long as key-buffer.

   3. Encrypt as many blocks of data-buffer as necessary
      to fill key-buffer. 

   4. Take the output of (3) and fill the key-buffer.
      Continue (3) and (4) for the reminder of the 
      data-buffer.

   5. At this point the encryption engine is ready to produce
      Pseudo-Random stream.  Now run the encryption engine in
      OFB mode (starting with input buffer filled with zeroes)
      using the full block size, until the desired amount of 
      output bits is produced.


RATIONALE.

a. Encryption engine is keyed with secret parameter because
all the theory of block cipher security is based on the
assumption that it is the key which is unknown to the 
attacker. No analysis exists (as far as I know) for the 
case when the key is known, but the plaintext and/or 
ciphertext aren't.

b. Changing the key at step (4) mitigates the Related Keys
attack.

c. OFB mode in step (5) allows producing [practically] any
amount of output bits, much larger than the cipher block 
size.



SECURITY PROPERTIES.

A block cipher being a Pseudo Random Permutation, if the
S parameter is secret, the following hold true:

   - output of (3) is pseudo-random.
   - output of (5) is pseudo-random.



CONSIDERATIONS.

Security of this PRF is based on three assumptions: (a) block
cipher used is not broken, (b) the secret parameter is unknown
to the attacker, and (c) there is no property of the key space
that makes a class of keys weak. 

If a weak secret - such as a short passwod - is used for parameter
S, then it is possible to break this algorithm by dictionary
attack. Note that this vulnerability exists in HMAC as well,
and is unavoidable (unless one uses protocols such as PAK, 
EKE/SPEKE, etc).


DESIGN ALTERNATIVE.

Instead of zeroizing the data-buffer in the step (5),
one can leave it as is, effectively filled with the
new key. Cryptographic property of this is one-way-ness,
as it is impossible to invert E{K}K not knowing the key. 
Whether this is a desired property, is left for the
discussion.

--------------020208050107040706040902--

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



From mailnull@www1.ietf.org  Sun Mar 23 09:00:34 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA02065
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 09:00:34 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2NEJtx06666
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 09:19:55 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NEJtO06663
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 09:19:55 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA02061
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 09:00:02 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NEIcO06614;
	Sun, 23 Mar 2003 09:18:38 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NEHuO06576
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 09:17:56 -0500
Received: from penguin.wise.edt.ericsson.se (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA02020
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 08:58:04 -0500 (EST)
Received: from esealnt610.al.sw.ericsson.se (alteon-nat3.sw.ericsson.se [153.88.254.120])
	by penguin.wise.edt.ericsson.se (8.12.8/8.12.8/WIREfire-1.5) with ESMTP id h2NE0GHQ011131;
	Sun, 23 Mar 2003 15:00:17 +0100 (MET)
Received: from era.ericsson.se (sealwa01m008.sw.ericsson.se [130.100.251.137]) by esealnt610.al.sw.ericsson.se with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55)
	id HMLFR3DS; Sun, 23 Mar 2003 15:00:07 +0100
Message-ID: <3E7DBDDF.5@era.ericsson.se>
Date: Sun, 23 Mar 2003 14:59:59 +0100
X-Sybari-Space: 00000000 00000000 00000000 00000000
From: =?ISO-8859-1?Q?Mats_N=E4slund?= <mats.naslund@era.ericsson.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Uri Blumenthal <uri@bell-labs.com>
CC: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <3E7D718F.7050304@bell-labs.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit


Hi Uri,

Uri Blumenthal wrote:

> PROPOSAL: AES-BASED PSEUDO RANDOM FUNCTION FOR IKEv2.
> 
> PRF(S, N)
> 
> The goal is to produce requested amount of pseudo
> random bits, using AES (or other block cipher) and 
> variable-length input for both parameters: the secret
> one (e.g. DH output) and the one publicly known (e.g.
> concatenation of nonces). Should work with variable
> key length, preferably support different block sizes.
> Preferably, the construct is provably secure.
> 
> The following idea is implementing recommendation from
> Rijndael Submission Paper to NIST, in particular - for
> using AES as Pseudo Random Function. It is assumed that
> AES is the block cipher that will be used, but the 
> construct is generic enough to accomodate other 
> block ciphers with no weak keys.
> 
> 
> 
> ALGORITHM:  PRF(S, N)
> 
> S is secret, N may be known. No assumption on the quality 
> of randomness is made for either parameter. No limitation 
> on size of S, N. 
> 
> Outputs pseudo-random stream of bits in  cipher blocksize
> chunks (128-bit for AES). Bu default - outputs the number
> of bits equal to blocksize. Optionally the amount of
> output bits can be specified.
> 
> Block cipher is assumed, with key-buffer for key, and
> data-buffer for plaintext. AES is a natural choice.
> 
> Algorithm:
>   
>    1. Fill the key-buffer with S. If S is shorter than
>       the key-buffer, pad the key buffer with zeroes.
>       
>    2. If any bits of S are left after step (1), place
>       them in the data-buffer. Append parameter N to
>       the data-buffer. Pad the data-buffer with zeroes
>       if necessary, to make it multiple of cipher block
>       size, and at least as long as key-buffer.
> 
>    3. Encrypt as many blocks of data-buffer as necessary
>       to fill key-buffer. 
> 
>    4. Take the output of (3) and fill the key-buffer.
>       Continue (3) and (4) for the reminder of the 
>       data-buffer.

It could be that I missunderstand the constuction/notation, could
you provide it in "mathematical" notation? However, modulo that, it
seems that at this point (after step 4), all the "entropy" has been 
"hashed down" to key-buffer size (i.e. 128 bits say). This means
that even if the original S was, say a 1024 bit DH key, the
uncertainty of the internal state at this point is only 128 bits,
so....

> 
>    5. At this point the encryption engine is ready to produce
>       Pseudo-Random stream.  Now run the encryption engine in
>       OFB mode (starting with input buffer filled with zeroes)
>       using the full block size, until the desired amount of 
>       output bits is produced.

...if the desired output length is, say 256 bits, you will still
only get an effective key-size of 128, or? Also, since the OFB starts
from 00....0 it seems you could have vulnerability to off-line
pre-computation attacks.

In other words, there seems to be a bottle-neck just after
that step 4 that upper bounds the effective entropy, is that
right?

Have you looked at ISO/IEC 18033-2 ? they have a similar PRF
(mapping aribitrary length to arbitrary length) that is (if I remember
correctly) basically running SHA1 is "counter mode", keyed by the
input key.

Cheers

/Mats

> 
> 
> RATIONALE.
> 
> a. Encryption engine is keyed with secret parameter because
> all the theory of block cipher security is based on the
> assumption that it is the key which is unknown to the 
> attacker. No analysis exists (as far as I know) for the 
> case when the key is known, but the plaintext and/or 
> ciphertext aren't.
> 
> b. Changing the key at step (4) mitigates the Related Keys
> attack.
> 
> c. OFB mode in step (5) allows producing [practically] any
> amount of output bits, much larger than the cipher block 
> size.
> 
> 
> 
> SECURITY PROPERTIES.
> 
> A block cipher being a Pseudo Random Permutation, if the
> S parameter is secret, the following hold true:
> 
>    - output of (3) is pseudo-random.
>    - output of (5) is pseudo-random.
> 
> 
> 
> CONSIDERATIONS.
> 
> Security of this PRF is based on three assumptions: (a) block
> cipher used is not broken, (b) the secret parameter is unknown
> to the attacker, and (c) there is no property of the key space
> that makes a class of keys weak. 
> 
> If a weak secret - such as a short passwod - is used for parameter
> S, then it is possible to break this algorithm by dictionary
> attack. Note that this vulnerability exists in HMAC as well,
> and is unavoidable (unless one uses protocols such as PAK, 
> EKE/SPEKE, etc).
> 
> 
> DESIGN ALTERNATIVE.
> 
> Instead of zeroizing the data-buffer in the step (5),
> one can leave it as is, effectively filled with the
> new key. Cryptographic property of this is one-way-ness,
> as it is impossible to invert E{K}K not knowing the key. 
> Whether this is a desired property, is left for the
> discussion.


----------------------------------------------
Mats Näslund, PhD, Senior Specialist
Communications Security Lab, Ericsson Research
SE-16480 Stockholm, Sweden
Visiting adr: Torshamnsgatan 23, Kista
Phone/Fax: (+46 8) 58533739/4047020


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



From mailnull@www1.ietf.org  Sun Mar 23 13:46:54 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06885
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 13:46:54 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2NJ6Kc20755
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 14:06:20 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJ6KO20752
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 14:06:20 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06874
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 13:46:23 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJ5dO20738;
	Sun, 23 Mar 2003 14:05:39 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJ4wO20712
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 14:04:58 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06858
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 13:44:56 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2NIMFE31067
	for cfrg@ietf.org; Sun, 23 Mar 2003 10:22:15 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 23 Mar 2003 18:22:15 GMT
Organization: University of California, Berkeley
Lines: 16
Distribution: isaac
Message-ID: <b5ku0n$u91$1@abraham.cs.berkeley.edu>
References: <3E7D718F.7050304@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048443735 31009 128.32.153.211 (23 Mar 2003 18:22:15 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 23 Mar 2003 18:22:15 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>Here's a proposed PRF based on AES block cipher.

For those who aren't on IPSec mailing list, Hugo Krawczyk and I have
pointed out that this construction requires something more than just
the assumption that AES is a PRP -- some additional assumptions are
required for this construction to be secure.

In general, I am somewhat skeptical of constructions which assume that
AES is something more than a PRP; most analysis of AES has been on its
security as a PRP.

Also, in general, given that we already have PRF's with well-justified
security arguments, I think any new proposal of a PRF ought to come
with a careful proof of security under some well-specified set of
assumptions.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Sun Mar 23 14:06:42 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07160
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 14:06:42 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2NJQ9x21926
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 14:26:09 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJQ8O21922
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 14:26:08 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07150
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 14:06:11 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJP2O21906;
	Sun, 23 Mar 2003 14:25:02 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJOcO21877
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 14:24:38 -0500
Received: from hoemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07138
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 14:04:41 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2NJ6vt23139
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 14:06:57 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2NJ6u622969; Sun, 23 Mar 2003 14:06:56 -0500 (EST)
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2NJ6uc22965; Sun, 23 Mar 2003 14:06:56 -0500 (EST)
Message-ID: <3E7E05C4.8070605@bell-labs.com>
Date: Sun, 23 Mar 2003 14:06:44 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <3E7D718F.7050304@bell-labs.com> <b5ku0n$u91$1@abraham.cs.berkeley.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David Wagner wrote:
>>Here's a proposed PRF based on AES block cipher.
> 
> For those who aren't on IPSec mailing list, Hugo Krawczyk and I have
> pointed out that this construction requires something more than just
> the assumption that AES is a PRP -- some additional assumptions are
> required for this construction to be secure.

However we seem to disagree as to what other assumptions - if
any - are necessary. We are currently discussing those off-line,
but if anybody on the list would like to contribute, you're
most welcome!

> In general, I am somewhat skeptical of constructions which assume that
> AES is something more than a PRP; most analysis of AES has been on its
> security as a PRP.

I do not think that a stronger assumption is needed (or indeed can
be made). Being a PRP [family] means that whatever key [PRP family
index] you choose, the specific function is a PRP. Which should be
enough for the proposed construction. I'm in the process of putting
together a more "formal" proof, and again, feel free to jump in.

> Also, in general, given that we already have PRF's with well-justified
> security arguments, I think any new proposal of a PRF ought to come
> with a careful proof of security under some well-specified set of
> assumptions.

It looks that whatever arguments can be made against this construction,
the very same ones apply to the existing PRF's, such as HMAC - because
in case of AES the PRP property is necessary (otherwise it's not an
acceptable block cipher), and in case of SHA it's merely believed
as nobody proved otherwise that it is a PRF (and if it isn't,
it still is an acceptable hash, which it was designed to be).
The existing PRF's security is reduced to that of SHA - and
SHA is LIKELY (but doesn't have to) have the ascribed to
it properties. This construct's security is reduced to
that of AES - which MUST have the ascribed property
(or else it is broken). However as David pointed
out, this reduction is not shown convincingly
yet - which I'm busy with now (David, thanks
for putting me to work :-).

Also the justification for creating a new PRF is simple - if you have
a pure AES-based protocol suite (encryption, integrity, MAC), you may
want to have your PRF also AES-based - especially if crypto hardware
is involved (for example a custom ASIC, where it matters whether
you place another algorithm on the chip).

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



From mailnull@www1.ietf.org  Sun Mar 23 14:22:13 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07639
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 14:22:13 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2NJfeW23172
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 14:41:40 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJfeO23169
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 14:41:40 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07626
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 14:21:42 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJf3O23154;
	Sun, 23 Mar 2003 14:41:03 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJeHO23109
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 14:40:17 -0500
Received: from hoemail1.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07609
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 14:20:18 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail1.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2NJMZX19279
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 14:22:35 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2NJMXk24853; Sun, 23 Mar 2003 14:22:33 -0500 (EST)
Cc: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2NJMVc24843; Sun, 23 Mar 2003 14:22:32 -0500 (EST)
Message-ID: <3E7E096C.80803@bell-labs.com>
Date: Sun, 23 Mar 2003 14:22:20 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Mats_N=E4slund?= <mats.naslund@era.ericsson.se>
Original-CC: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <3E7D718F.7050304@bell-labs.com> <3E7DBDDF.5@era.ericsson.se>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by www1.ietf.org id h2NJeHO23110
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

Mats Näslund wrote:
> ...if the desired output length is, say 256 bits, you will still
> only get an effective key-size of 128, or?

The effective key size is that of the AES key size. So if one
uses AES with 128-bit key - then it's 128 bits, if AES with
256 bits - then it's 256 bits. And there's no way to make
it stronger. At least this is my understanding.

So whatever entropy the initial secret has, the resulting
entropy will be no greater than the key size of AES.

But for SHA-based PRF the resulting entropy is no greater  than
SHA output size (160 bits at most), and the same applies to MD5
(128 bits at most). Am I correct?

 > Also, since the OFB starts from 00....0 it seems you could have
 > vulnerability to off-line pre-computation attacks.

I'm not sure I fully follow. Precomputation of the PRF output
for a bunch of assumed keys (because it shouldn't be feasible
to precompute OFB output for a reasonable-sized portion of
AES keyspace)? Could you amplify please?

Also, there are variations. One - to start OFB from the existing
buffer (which contains the key), in effect beginning OFB with
E{K}K (a non-invertible construct). Another - to skip the
first few blocks of the OFB output based on the function
of the first OFB encryption...

What would you say - does it make sense?

> In other words, there seems to be a bottle-neck just after
> that step 4 that upper bounds the effective entropy, is that
> right?

I doubt it's at the step 4. I'd say it's the consequence of
having a pseudo random function, whose key size effectively
defines an upper bound. No matter what, it wouldn't be
possible to create an AES-based PRF whose entropy is
greater than AES key size. I think step 4 doesn't
bring it any lower than that.

> Have you looked at ISO/IEC 18033-2 ? they have a similar PRF
> (mapping aribitrary length to arbitrary length) that is (if I remember
> correctly) basically running SHA1 is "counter mode", keyed by the
> input key.

Grrrrr. No I haven't. I will. I've taken the construct from Rijndael
paper. But as I understand form your description, ISO/IEC is similar
to what I'm doing, right?

And for precomputation attack it shouldn't matter whether CTR or OFB
mode is used, correct? Please comment.

And Mats, I appreciate your review very much. Thank you!

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



From mailnull@www1.ietf.org  Sun Mar 23 14:33:21 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07863
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 14:33:21 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2NJqmV23487
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 14:52:48 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJqmO23484
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 14:52:48 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07850
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 14:32:50 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJq4O23469;
	Sun, 23 Mar 2003 14:52:04 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NJpLO23451
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 14:51:21 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA07820
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 14:31:23 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2NJ8h031542
	for cfrg@ietf.org; Sun, 23 Mar 2003 11:08:43 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 23 Mar 2003 19:08:43 GMT
Organization: University of California, Berkeley
Lines: 14
Distribution: isaac
Message-ID: <b5l0nr$uo2$1@abraham.cs.berkeley.edu>
References: <3E7D718F.7050304@bell-labs.com> <b5ku0n$u91$1@abraham.cs.berkeley.edu> <3E7E05C4.8070605@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048446523 31490 128.32.153.211 (23 Mar 2003 19:08:43 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 23 Mar 2003 19:08:43 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>It looks that whatever arguments can be made against this construction,
>the very same ones apply to the existing PRF's, such as HMAC - 

I don't see it.  In the random oracle model (where SHA1 is modelled as
a random oracle), I think SHA1-HMAC is golden.

I'm happier modelling SHA1 as a random oracle than I am modelling AES as
an ideal cipher.  The former has been better studied by cryptanalysts,
I think.

I think some kind of random oracle or ideal cipher model is going to be
necessary, if we can't assume our key material is uniformly distributed
(as seems to be the case for IPSec).
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Sun Mar 23 15:12:26 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA09393
	for <cfrg-archive@odin.ietf.org>; Sun, 23 Mar 2003 15:12:26 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2NKVsD25315
	for cfrg-archive@odin.ietf.org; Sun, 23 Mar 2003 15:31:54 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NKVsO25312
	for <cfrg-web-archive@optimus.ietf.org>; Sun, 23 Mar 2003 15:31:54 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA09347
	for <cfrg-web-archive@ietf.org>; Sun, 23 Mar 2003 15:11:55 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NKVBO25298;
	Sun, 23 Mar 2003 15:31:11 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2NKUuO25275
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 15:30:56 -0500
Received: from auemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA09242
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 15:10:56 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by auemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2NKDDP24592
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 15:13:14 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2NKDDF01422; Sun, 23 Mar 2003 15:13:13 -0500 (EST)
Cc: cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2NKDBc01413; Sun, 23 Mar 2003 15:13:11 -0500 (EST)
Message-ID: <3E7E154C.8010408@bell-labs.com>
Date: Sun, 23 Mar 2003 15:13:00 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Wagner <daw@mozart.cs.berkeley.edu>
Original-CC: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <3E7D718F.7050304@bell-labs.com> <b5ku0n$u91$1@abraham.cs.berkeley.edu> <3E7E05C4.8070605@bell-labs.com> <b5l0nr$uo2$1@abraham.cs.berkeley.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David Wagner wrote:
>>It looks that whatever arguments can be made against this construction,
>>the very same ones apply to the existing PRF's, such as HMAC - 
> 
> I don't see it. 

Let's see. (no pun intended :-)

 > In the random oracle model (where SHA1 is modelled as
> a random oracle), I think SHA1-HMAC is golden.

SHA was designed as a collision-resistant hash function. All
the other properties are assumed.

> I'm happier modelling SHA1 as a random oracle than I am modelling
 > AES as an ideal cipher.

Why? AES is a lot closer to an ideal cipher (unless and until broken)
than SHA - to random oracle (because if proven wrong, SHA still can
function as a crypto-hash).

 > The former has been better studied by cryptanalysts, I think.

For longer time - yes. Better? I doubt. Anyway, this is
highly subjective.


> I think some kind of random oracle or ideal cipher model is going to be
> necessary, if we can't assume our key material is uniformly distributed
> (as seems to be the case for IPSec).

Probably so. So please do join the analysis, will you? After all,
it is for the benefit of everybody involved to get it right. BTW,
what assumptions can be made of g^xy, in your opinion?

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



From mailnull@www1.ietf.org  Mon Mar 24 00:46:17 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA22824
	for <cfrg-archive@odin.ietf.org>; Mon, 24 Mar 2003 00:46:17 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2O65ug25335
	for cfrg-archive@odin.ietf.org; Mon, 24 Mar 2003 01:05:56 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2O65uO25332
	for <cfrg-web-archive@optimus.ietf.org>; Mon, 24 Mar 2003 01:05:56 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA22798
	for <cfrg-web-archive@ietf.org>; Mon, 24 Mar 2003 00:45:45 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2O64dO25281;
	Mon, 24 Mar 2003 01:04:39 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2O63nO25247
	for <cfrg@optimus.ietf.org>; Mon, 24 Mar 2003 01:03:49 -0500
Received: from igw2.watson.ibm.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA22767
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 00:43:39 -0500 (EST)
Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57])
	by igw2.watson.ibm.com (8.11.6/8.11.4) with ESMTP id h2O5juT32012;
	Mon, 24 Mar 2003 00:45:56 -0500
Received: from ornavella.watson.ibm.com (ornavella.watson.ibm.com [9.2.16.80])
	by sp1n293en1.watson.ibm.com (8.11.6/8.11.4) with ESMTP id h2O5jul95332;
	Mon, 24 Mar 2003 00:45:56 -0500
Received: (from canetti@localhost)
	by ornavella.watson.ibm.com (AIX4.3/8.9.3/8.9.3/09-18-2002) id AAA37022;
	Mon, 24 Mar 2003 00:45:56 -0500
Date: Mon, 24 Mar 2003 00:45:56 -0500
From: Ran Canetti <canetti@watson.ibm.com>
Message-Id: <200303240545.AAA37022@ornavella.watson.ibm.com>
To: cfrg@ietf.org, uri@bell-labs.com
Subject: Re:  [Cfrg] AES-based PRF - comment please
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>


Uri,

Few remarks:

1. I think that there is some terminology confusion here with respect to the
meaning of the name "pseudorandom function" (PRF). In the cryptographic
theory, a PRF is an abstraction (i.e., a primitive) with specific 
mathematical properties. Within IKE there is a construct (used for key
derivation) that is called "PRF"; the reason for the name was that in 
the mind of the protocol designers this construct was to be modeled as 
a PRF in a security proof of IKE. However, there is of course no necessity 
to model the IKE-PRF construct as a PRF. Indeed, what you seem to suggest 
is that we can perhaps do otherwise.

2. In crypto-theory, a PRF is guaranteed to provide security only when its
key is SECRET and RANDOM (ie, uniformly distributed). 
If the key is either not secret or not random then all bets are off - no
security whatsoever is guaranteed. 

3. The security requirements from block-ciphers are typically aligned with
the requirements from PRFs (or rather PRPs (pseudorandom permulations)).
That is, security is required and analyzed only for the case where the key
is SECRET and RANDOM. Nothing is required when the key is either not secret
or not random.

4. You seem to want to construct a key-derivation function that can take 
a bunch of inputs of variable length (some of them are secret, some public, 
some random, some not) and somehow generate out of these a sequence of
pseudorandom bits, which is as long as necessary. your general methodology
is as follows:
I. Using some hash function H, "hash down" the input material into a value 
v that is of the right size for a PRF F. (You essentially make no distinction
between the S input and the N input to your construct.)
This corresponds to your steps 1-4.
II. Run F in OFB with key v and input 0*, to generate as many output bits as
necessary. This corresponds to your step 5.

Your hope is that H is good enough so that v will be sufficiently
"pseudorandom", even if the input is neither completely random nor
completely secret. 

Furthermore, you are using AES both for H and for F. 

5. While using AES for F is sound, my impression is that using AES as the 
(essentially keyless) hash function H is rather risky and definitely not 
well analyzed. This is not to say that it's necessarily a bad idea; rather, 
I'd say that this requires much more justification and analysis - both in 
terms of general cryptographic modeling and in terms of AES specifically.
Certainly, this property that you need from H does not follow from 
collision resistance. 

(Ofcourse, the "easy way out" would be to model AES as a random oracle. 
Then the analysis is completely trivialized and everything becomes perfectly
secure on paper. But this is no real analysis - we know that AES is NOT
a random oracle and we need an analysis based on realistic
assumptions on/ modeling of AES.)


Hope this makes sense.


Ran


> From cfrg-admin@ietf.org Sun Mar 23 03:58:26 2003
> 
> Folks,
> 
> Here's a proposed PRF based on AES block cipher. Its purpose is
> to allow variable length input and output for AES, including
> keying material. It can be useful for AES-only protocol suites
> in IKEv2. It is based directly on Rijndael submission paper,
> where they describe how to use Rijndael as Hash and as PRF.
> 
> Ted Ts'o asked me to post it here, which is my pleasure to do.
> I look for comments, improvements and criticism.
> 
> Thank you!
> 
> Regards,
> Uri.
> 
> P.S. IKEv2 will use AES as block cipher, and g^xy as S. But it
> would be nice if the construct holds for generic block cipher
> and generic secret S.
> 
> --------------020208050107040706040902
> Content-Type: text/plain;
>  name="aes-prf.txt"
> Content-Disposition: inline;
>  filename="aes-prf.txt"
> Content-Transfer-Encoding: 7bit
> 
> PROPOSAL: AES-BASED PSEUDO RANDOM FUNCTION FOR IKEv2.
> 
> PRF(S, N)
> 
> The goal is to produce requested amount of pseudo
> random bits, using AES (or other block cipher) and 
> variable-length input for both parameters: the secret
> one (e.g. DH output) and the one publicly known (e.g.
> concatenation of nonces). Should work with variable
> key length, preferably support different block sizes.
> Preferably, the construct is provably secure.
> 
> The following idea is implementing recommendation from
> Rijndael Submission Paper to NIST, in particular - for
> using AES as Pseudo Random Function. It is assumed that
> AES is the block cipher that will be used, but the 
> construct is generic enough to accomodate other 
> block ciphers with no weak keys.
> 
> 
> 
> ALGORITHM:  PRF(S, N)
> 
> S is secret, N may be known. No assumption on the quality 
> of randomness is made for either parameter. No limitation 
> on size of S, N. 
> 
> Outputs pseudo-random stream of bits in  cipher blocksize
> chunks (128-bit for AES). Bu default - outputs the number
> of bits equal to blocksize. Optionally the amount of
> output bits can be specified.
> 
> Block cipher is assumed, with key-buffer for key, and
> data-buffer for plaintext. AES is a natural choice.
> 
> Algorithm:
>   
>    1. Fill the key-buffer with S. If S is shorter than
>       the key-buffer, pad the key buffer with zeroes.
>       
>    2. If any bits of S are left after step (1), place
>       them in the data-buffer. Append parameter N to
>       the data-buffer. Pad the data-buffer with zeroes
>       if necessary, to make it multiple of cipher block
>       size, and at least as long as key-buffer.
> 
>    3. Encrypt as many blocks of data-buffer as necessary
>       to fill key-buffer. 
> 
>    4. Take the output of (3) and fill the key-buffer.
>       Continue (3) and (4) for the reminder of the 
>       data-buffer.
> 
>    5. At this point the encryption engine is ready to produce
>       Pseudo-Random stream.  Now run the encryption engine in
>       OFB mode (starting with input buffer filled with zeroes)
>       using the full block size, until the desired amount of 
>       output bits is produced.
> 
> 
> RATIONALE.
> 
> a. Encryption engine is keyed with secret parameter because
> all the theory of block cipher security is based on the
> assumption that it is the key which is unknown to the 
> attacker. No analysis exists (as far as I know) for the 
> case when the key is known, but the plaintext and/or 
> ciphertext aren't.
> 
> b. Changing the key at step (4) mitigates the Related Keys
> attack.
> 
> c. OFB mode in step (5) allows producing [practically] any
> amount of output bits, much larger than the cipher block 
> size.
> 
> 
> 
> SECURITY PROPERTIES.
> 
> A block cipher being a Pseudo Random Permutation, if the
> S parameter is secret, the following hold true:
> 
>    - output of (3) is pseudo-random.
>    - output of (5) is pseudo-random.
> 
> 
> 
> CONSIDERATIONS.
> 
> Security of this PRF is based on three assumptions: (a) block
> cipher used is not broken, (b) the secret parameter is unknown
> to the attacker, and (c) there is no property of the key space
> that makes a class of keys weak. 
> 
> If a weak secret - such as a short passwod - is used for parameter
> S, then it is possible to break this algorithm by dictionary
> attack. Note that this vulnerability exists in HMAC as well,
> and is unavoidable (unless one uses protocols such as PAK, 
> EKE/SPEKE, etc).
> 
> 
> DESIGN ALTERNATIVE.
> 
> Instead of zeroizing the data-buffer in the step (5),
> one can leave it as is, effectively filled with the
> new key. Cryptographic property of this is one-way-ness,
> as it is impossible to invert E{K}K not knowing the key. 
> Whether this is a desired property, is left for the
> discussion.
> 
> --------------020208050107040706040902--
> 
> _______________________________________________
> 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 mailnull@www1.ietf.org  Mon Mar 24 05:00:07 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA09095
	for <cfrg-archive@odin.ietf.org>; Mon, 24 Mar 2003 05:00:06 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2OAJqg19815
	for cfrg-archive@odin.ietf.org; Mon, 24 Mar 2003 05:19:52 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OAJqO19812
	for <cfrg-web-archive@optimus.ietf.org>; Mon, 24 Mar 2003 05:19:52 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA09074
	for <cfrg-web-archive@ietf.org>; Mon, 24 Mar 2003 04:59:35 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OAIuO19775;
	Mon, 24 Mar 2003 05:18:56 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OAHtO19715
	for <cfrg@optimus.ietf.org>; Mon, 24 Mar 2003 05:17:55 -0500
Received: from albatross.wise.edt.ericsson.se (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA09037
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 04:57:38 -0500 (EST)
Received: from esealnt613.al.sw.ericsson.se (alteon-nat8.sw.ericsson.se [153.88.254.125])
	by albatross.wise.edt.ericsson.se (8.12.8/8.12.8/WIREfire-1.5) with ESMTP id h2O9xpbh014501;
	Mon, 24 Mar 2003 10:59:52 +0100 (MET)
Received: from era.ericsson.se (research-pi6vzu.ki.sw.ericsson.se [147.214.181.170]) by esealnt613.al.sw.ericsson.se with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55)
	id HKFXG4AC; Mon, 24 Mar 2003 10:59:51 +0100
Message-ID: <3E7ED717.2000005@era.ericsson.se>
Date: Mon, 24 Mar 2003 10:59:51 +0100
X-Sybari-Space: 00000000 00000000 00000000 00000000
From: =?ISO-8859-1?Q?Mats_N=E4slund?= <mats.naslund@era.ericsson.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Uri Blumenthal <uri@bell-labs.com>
CC: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <3E7D718F.7050304@bell-labs.com> <3E7DBDDF.5@era.ericsson.se> <3E7E096C.80803@bell-labs.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit



Uri Blumenthal wrote:
> Mats Näslund wrote:
> 
>> ...if the desired output length is, say 256 bits, you will still
>> only get an effective key-size of 128, or?
> 
> 
> The effective key size is that of the AES key size. So if one
> uses AES with 128-bit key - then it's 128 bits, if AES with
> 256 bits - then it's 256 bits. And there's no way to make

OK, my example was using a bad choice of parameters. Replace e.g.
"256" by "384" and "128" by "256"... Of course, if
you only want to provide key material at 256 bits or less, this
is not a problem. I assumed that you also might want to  e.g.
convert 2048 bits of DH key to, say 512 bits. (I really don't
have an application for this in mind, it just seems a nice
general primitive to have.)

> it stronger. At least this is my understanding.
> 
> So whatever entropy the initial secret has, the resulting
> entropy will be no greater than the key size of AES.

Sure, any consturction which uses something of form

1) tmp = h(S || N)
2) key = g(tmp)

will be limited by the "width" of h.

I am not sure it is generally impossible by other constructions
though (?)

> 
> But for SHA-based PRF the resulting entropy is no greater  than
> SHA output size (160 bits at most), and the same applies to MD5
> (128 bits at most). Am I correct?

Right, with any "simple" construction.

> 
>  > Also, since the OFB starts from 00....0 it seems you could have
>  > vulnerability to off-line pre-computation attacks.
> 
> I'm not sure I fully follow. Precomputation of the PRF output
> for a bunch of assumed keys (because it shouldn't be feasible
> to precompute OFB output for a reasonable-sized portion of
> AES keyspace)? Could you amplify please?

*If* I have correctly interpreted your construction, it matches
the pattern of steps 1), 2) above. (If not, my aplogies.)

Let's assume that the keys are to be used for e.g. HMAC, and for 
simplicity, that the attacker is able to choose plaintext, p, to be
authenticated by Alice.

The attack would be:

* generate M random values of "tmp" and expand them as in step 2)
   and store valued { HMAC(k,p) }.
* sit back and watch N sessions, each HMAC:ing the message you chose,
   and look for collisions in your list

Though somewhat pathologic, this seems to enable finding keys with
traditional "square root" time/memory trade off. Adding "salt" in
step 2) (or making sure that all MACs are randomized) seems to
fix this though.

> Also, there are variations. One - to start OFB from the existing
> buffer (which contains the key), in effect beginning OFB with
> E{K}K (a non-invertible construct). Another - to skip the
> first few blocks of the OFB output based on the function
> of the first OFB encryption...
> 
> What would you say - does it make sense?

Well, if you randomize the srating point of the OFB, it seems fine.

> 
>> In other words, there seems to be a bottle-neck just after
>> that step 4 that upper bounds the effective entropy, is that
>> right?
> 
> 
> I doubt it's at the step 4. I'd say it's the consequence of
> having a pseudo random function, whose key size effectively
> defines an upper bound. No matter what, it wouldn't be
> possible to create an AES-based PRF whose entropy is
> greater than AES key size. I think step 4 doesn't
> bring it any lower than that.
> 
>> Have you looked at ISO/IEC 18033-2 ? they have a similar PRF
>> (mapping aribitrary length to arbitrary length) that is (if I remember
>> correctly) basically running SHA1 is "counter mode", keyed by the
>> input key.
> 
> 
> Grrrrr. No I haven't. I will. I've taken the construct from Rijndael
> paper. But as I understand form your description, ISO/IEC is similar
> to what I'm doing, right?

It seems so, though I would need to re-cap.

> 
> And for precomputation attack it shouldn't matter whether CTR or OFB
> mode is used, correct? Please comment.

Correct. The same TMTO attack applies also to CTR if the starting
point is not randomized properly. If it is, both seem OK.

> 
> And Mats, I appreciate your review very much. Thank you!

Sure. I think it would be nice to have an "all-AES-based" security.
It would also have been nice if the 256-bit block version of Rijndael
was standardized so that you could get 256 bit hashes using the same
primitive.

Best,

/Mats

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



From mailnull@www1.ietf.org  Mon Mar 24 05:02:25 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA09148
	for <cfrg-archive@odin.ietf.org>; Mon, 24 Mar 2003 05:02:25 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2OAMBG19946
	for cfrg-archive@odin.ietf.org; Mon, 24 Mar 2003 05:22:11 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OAMAO19943
	for <cfrg-web-archive@optimus.ietf.org>; Mon, 24 Mar 2003 05:22:10 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA09141
	for <cfrg-web-archive@ietf.org>; Mon, 24 Mar 2003 05:01:54 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OAL1O19918;
	Mon, 24 Mar 2003 05:21:01 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OAKrO19897
	for <cfrg@optimus.ietf.org>; Mon, 24 Mar 2003 05:20:53 -0500
Received: from albatross.wise.edt.ericsson.se (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA09109
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 05:00:37 -0500 (EST)
Received: from esealnt613.al.sw.ericsson.se (alteon-nat8.sw.ericsson.se [153.88.254.125])
	by albatross.wise.edt.ericsson.se (8.12.8/8.12.8/WIREfire-1.5) with ESMTP id h2OA2ubh015568
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 11:02:56 +0100 (MET)
Received: from era.ericsson.se (research-pi6vzu.ki.sw.ericsson.se [147.214.181.170]) by esealnt613.al.sw.ericsson.se with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55)
	id HKFXGVN1; Mon, 24 Mar 2003 11:02:56 +0100
Message-ID: <3E7ED7D0.60300@era.ericsson.se>
Date: Mon, 24 Mar 2003 11:02:56 +0100
X-Sybari-Space: 00000000 00000000 00000000 00000000
From: =?ISO-8859-1?Q?Mats_N=E4slund?= <mats.naslund@era.ericsson.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <3E7D718F.7050304@bell-labs.com> <b5ku0n$u91$1@abraham.cs.berkeley.edu> <3E7E05C4.8070605@bell-labs.com> <b5l0nr$uo2$1@abraham.cs.berkeley.edu> <3E7E154C.8010408@bell-labs.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit



Uri Blumenthal wrote:

[snip]

> Probably so. So please do join the analysis, will you? After all,
> it is for the benefit of everybody involved to get it right. BTW,
> what assumptions can be made of g^xy, in your opinion?

There are quite a few things known about the "absolute" distribution
of this (and other properties). Igor Shparlinski's new book provides
a nice compilation of such results.

/Mats


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



From mailnull@www1.ietf.org  Mon Mar 24 10:03:32 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA20895
	for <cfrg-archive@odin.ietf.org>; Mon, 24 Mar 2003 10:03:32 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2OFNND08498
	for cfrg-archive@odin.ietf.org; Mon, 24 Mar 2003 10:23:23 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OFNNO08495
	for <cfrg-web-archive@optimus.ietf.org>; Mon, 24 Mar 2003 10:23:23 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA20843
	for <cfrg-web-archive@ietf.org>; Mon, 24 Mar 2003 10:03:01 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2OFCRO07744;
	Mon, 24 Mar 2003 10:12:27 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2O4OsO19761
	for <cfrg@optimus.ietf.org>; Sun, 23 Mar 2003 23:24:54 -0500
Received: from mail.securesoftware.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA21253
	for <cfrg@ietf.org>; Sun, 23 Mar 2003 23:04:45 -0500 (EST)
Received: from securesoftware.com (pcp732336pcs.arlngt01.va.comcast.net [68.49.161.231])
	by mail.securesoftware.com (Postfix) with ESMTP
	id 16C851345E2; Sun, 23 Mar 2003 23:07:54 -0500 (EST)
Date: Sun, 23 Mar 2003 23:07:27 -0500
Subject: Re: [Cfrg] AES-based PRF - comment please
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v551)
Cc: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
To: Uri Blumenthal <uri@bell-labs.com>
From: John Viega <viega@securesoftware.com>
In-Reply-To: <3E7D718F.7050304@bell-labs.com>
Message-Id: <205E7968-5DAE-11D7-99C5-003065BA64DC@securesoftware.com>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.551)
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

This has become somewhat a popular topic, particularly since Peter 
Gutmann's "Crypto Gardening Guide".  In that, Peter argued for more 
versatile PRFs that could be adapted to a wide variety of situations.  
He talked about things like iteration counts, etc.

I'd actually like to know why PKCS #5's PBKDF2 isn't sufficient for 
Peter's needs, because I have found it useful for all of mine.  It's 
also very easy to adapt to use with AES.

The standard implementation for PBKDF2 that I've seen uses HMAC-SHA1 
internally.  One can replace that with OMAC, with one issue.  The way 
HMAC-SHA1 is used relies on the fact that it can accept arbitrary sized 
keys, whereas OMAC requires a fixed sized keys.  The easiest way to 
handle that problem is by using a hash function based on a block cipher 
like Davies-Meyer, but, IIRC, the proof for those constructions are in 
the ideal cipher model.

I think you could probably avoid the hash-from-cipher construction by 
keying with the first keylen bytes, and then take the rest (if any), 
and prepend "len(key) || key leftovers" to the MAC input.  But, I 
haven't given it much thought, and there may be something disastrously 
wrong with that.

I've got code lying around implementing PBKDF2 with Davis-Meyer and 
OMAC that I'd be happy to share for anyone who's interested.

John

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



From mailnull@www1.ietf.org  Mon Mar 24 18:34:54 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA09720
	for <cfrg-archive@odin.ietf.org>; Mon, 24 Mar 2003 18:34:53 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2ONsu011580
	for cfrg-archive@odin.ietf.org; Mon, 24 Mar 2003 18:54:56 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2ONsuO11577
	for <cfrg-web-archive@optimus.ietf.org>; Mon, 24 Mar 2003 18:54:56 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA09714
	for <cfrg-web-archive@ietf.org>; Mon, 24 Mar 2003 18:34:22 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2ONqUO11521;
	Mon, 24 Mar 2003 18:52:30 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2ONp3O11481
	for <cfrg@optimus.ietf.org>; Mon, 24 Mar 2003 18:51:03 -0500
Received: from auemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA09657
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 18:30:29 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by auemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2ONWlB08343
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 18:32:48 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2ONWlo24764; Mon, 24 Mar 2003 18:32:47 -0500 (EST)
Cc: cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2ONWhw24738; Mon, 24 Mar 2003 18:32:43 -0500 (EST)
Message-ID: <3E7F9590.7000605@bell-labs.com>
Date: Mon, 24 Mar 2003 18:32:32 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: Ran Canetti <canetti@watson.ibm.com>
Original-CC: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <200303240545.AAA37022@ornavella.watson.ibm.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Ran Canetti wrote:
> Uri,
> 
> Few remarks:
> 
> 1. I think that there is some terminology confusion here with respect
 > to the meaning of the name "pseudorandom function" (PRF).

Yes, it seems so.

 > In the cryptographic
> theory, a PRF is an abstraction (i.e., a primitive) with specific 
> mathematical properties. Within IKE there is a construct (used for key
> derivation) that is called "PRF"; the reason for the name was that in 
> the mind of the protocol designers this construct was to be modeled as 
> a PRF in a security proof of IKE. However, there is of course no necessity 
> to model the IKE-PRF construct as a PRF. Indeed, what you seem to suggest 
> is that we can perhaps do otherwise.

OK. You're certainly correct on all te counts here.

I'm considering two choices. One is to leave this suggestion as is,
possibly tweak it a bit. Another possibility - to modify it to make
it "really" provable, but the concern here is to lose performance.

What would your preference/recommendation be?

> 2. In crypto-theory, a PRF is guaranteed to provide security only when
 > its key is SECRET and RANDOM (ie, uniformly distributed).

Yes. In my mind the word "random" is stuck in the same bin as
"random number generator". "Uniformly distributed" is what it
is. Thanks for bringing this up!

> If the key is either not secret or not random then all bets are
 > off - no security whatsoever is guaranteed.

I thought that the "degree" of non-randomness - i.e. fixing only
a certain part of the key - reduced the workload of adversary,
i.e. lowered the security guarantees ("resistance"), but didn't
invalidate the whole thing?


> 3. The security requirements from block-ciphers are typically aligned with
> the requirements from PRFs (or rather PRPs (pseudorandom permulations)).
> That is, security is required and analyzed only for the case where the key
> is SECRET and RANDOM. Nothing is required when the key is either not secret
> or not random.

I see.

> 4. You seem to want to construct a key-derivation function that can take 
> a bunch of inputs of variable length (some of them are secret, some public, 
> some random, some not) and somehow generate out of these a sequence of
> pseudorandom bits, which is as long as necessary. your general methodology
> is as follows:
> I. Using some hash function H, "hash down" the input material into a value 
> v that is of the right size for a PRF F. (You essentially make no distinction
> between the S input and the N input to your construct.)
> This corresponds to your steps 1-4.

Yes. I'd like to discuss with you why no distinction between S and N
is needed here.

> Your hope is that H is good enough so that v will be sufficiently
> "pseudorandom", even if the input is neither completely random nor
> completely secret. 

Yes, assuming the input contains "enough" of secret and the secret
part is distributed uniformly "enough".

> 5. While using AES for F is sound, my impression is that using AES as the 
> (essentially keyless) hash function H is rather risky and definitely not 
> well analyzed. This is not to say that it's necessarily a bad idea; rather, 
> I'd say that this requires much more justification and analysis - both in 
> terms of general cryptographic modeling and in terms of AES specifically.
> Certainly, this property that you need from H does not follow from 
> collision resistance. 

I understand. Thanks.

> (Ofcourse, the "easy way out" would be to model AES as a random oracle. 
> Then the analysis is completely trivialized and everything becomes perfectly
> secure on paper. But this is no real analysis - we know that AES is NOT
> a random oracle and we need an analysis based on realistic
> assumptions on/ modeling of AES.)

I'd like to discuss this off-line. OK?

> Hope this makes sense.

It makes a lot of sense!

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



From mailnull@www1.ietf.org  Mon Mar 24 18:49:50 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA10057
	for <cfrg-archive@odin.ietf.org>; Mon, 24 Mar 2003 18:49:49 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2P09q912772
	for cfrg-archive@odin.ietf.org; Mon, 24 Mar 2003 19:09:52 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2P09qO12769
	for <cfrg-web-archive@optimus.ietf.org>; Mon, 24 Mar 2003 19:09:52 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA10044
	for <cfrg-web-archive@ietf.org>; Mon, 24 Mar 2003 18:49:18 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2P08AO12722;
	Mon, 24 Mar 2003 19:08:10 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2P07FO12271
	for <cfrg@optimus.ietf.org>; Mon, 24 Mar 2003 19:07:15 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA09989
	for <cfrg@ietf.org>; Mon, 24 Mar 2003 18:46:41 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2ONO1G17989
	for cfrg@ietf.org; Mon, 24 Mar 2003 15:24:01 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 24 Mar 2003 23:24:01 GMT
Organization: University of California, Berkeley
Lines: 15
Distribution: isaac
Message-ID: <b5o42h$hhg$1@abraham.cs.berkeley.edu>
References: <200303240545.AAA37022@ornavella.watson.ibm.com> <3E7F9590.7000605@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048548241 17968 128.32.153.211 (24 Mar 2003 23:24:01 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 24 Mar 2003 23:24:01 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>Ran Canetti wrote:
>> If the key is either not secret or not random then all bets are
>> off - no security whatsoever is guaranteed.
>
>I thought that the "degree" of non-randomness - i.e. fixing only
>a certain part of the key - reduced the workload of adversary,
>i.e. lowered the security guarantees ("resistance"), but didn't
>invalidate the whole thing?

No.  Ran is right.

If you fix a few bits of the key to a PRP, all bets are off
(unless you make extra assumptions beyond just that it's a PRP).
See my counterexample posted on the IPSec mailing list.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Tue Mar 25 12:23:53 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA22220
	for <cfrg-archive@odin.ietf.org>; Tue, 25 Mar 2003 12:23:53 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2PHiH229524
	for cfrg-archive@odin.ietf.org; Tue, 25 Mar 2003 12:44:17 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PHiGO29521
	for <cfrg-web-archive@optimus.ietf.org>; Tue, 25 Mar 2003 12:44:16 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA22213
	for <cfrg-web-archive@ietf.org>; Tue, 25 Mar 2003 12:23:22 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PHcrO29313;
	Tue, 25 Mar 2003 12:38:53 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PHbqO29266
	for <cfrg@optimus.ietf.org>; Tue, 25 Mar 2003 12:37:52 -0500
Received: from mailout.zetnet.co.uk (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA22000
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 12:16:57 -0500 (EST)
Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk)
	by mailout.zetnet.co.uk with esmtp (Exim 3.36 #1 (Debian))
	id 18xs4z-0007Mm-00
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 17:19:17 +0000
Received: from zetnet.co.uk (bts-1011.dialup.zetnet.co.uk [194.247.51.243])
	by zetnet.co.uk (8.12.3/8.12.3/Debian -4.sec) with ESMTP id h2PHJEKJ012092
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 17:19:15 GMT
Message-ID: <3E7EE10B.52BE1FF3@zetnet.co.uk>
Date: Mon, 24 Mar 2003 10:42:19 +0000
From: David Hopwood <david.hopwood@zetnet.co.uk>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en-GB,en,fr-FR,fr,de-DE,de,ru
MIME-Version: 1.0
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <200303240545.AAA37022@ornavella.watson.ibm.com> <3E7F9590.7000605@bell-labs.com> <b5o42h$hhg$1@abraham.cs.berkeley.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----

David Wagner wrote:
> Uri Blumenthal  wrote:
> >Ran Canetti wrote:
> >> If the key is either not secret or not random then all bets are
> >> off - no security whatsoever is guaranteed.
> >
> >I thought that the "degree" of non-randomness - i.e. fixing only
> >a certain part of the key - reduced the workload of adversary,
> >i.e. lowered the security guarantees ("resistance"), but didn't
> >invalidate the whole thing?
> 
> No.  Ran is right.
> 
> If you fix a few bits of the key to a PRP, all bets are off
> (unless you make extra assumptions beyond just that it's a PRP).

In general, if you fix k bits then the bound on the success probability of
an attack is degraded by a factor of 2^k. (This is not the same as reducing
the workload.)

The intuition behind this is that there is a 2^-k probability of an
attacker who assumes that the k bits are fixed, having that assumption
satisfied by chance for the unmodified PRP. Therefore the success probability
cannot be multiplied by more than 2^k. Actually the same argument applies for
any keyed algorithm.

Of course for sufficiently large k, this is effectively the same thing as
"all bets are off". For k < 8, say, it is probably harmless. Anyway, this
argument does not in any way justify using non-secret or non-random keys,
unless you know that they are only "slightly" non-random.

- -- 
David Hopwood <david.hopwood@zetnet.co.uk>

Home page & PGP public key: http://www.users.zetnet.co.uk/hopwood/
RSA 2048-bit; fingerprint 71 8E A6 23 0E D3 4C E5  0F 69 8C D4 FA 66 15 01
Nothing in this message is intended to be legally binding. If I revoke a
public key but refuse to specify why, it is because the private key has been
seized under the Regulation of Investigatory Powers Act; see www.fipr.org/rip


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBPn7g7jkCAxeYt5gVAQGqZgf9ElXjonj0y6hg1bNDEHb2umymUZXc8yub
PCTXglr0TjZC6GvgCzalwnOLtZ0wTEC5mtYkAiXpj/GMHnOkkaV7z7WlIiiG2JDc
jVHT1/MHZMBXf9mojJzri+ujNMpm1o3lz/S/Vxd+VWPHbqM3K8Wuhw00QtDdS8Q4
KNjTElXcdINKbJGeGqvaLqc1fr0rzXkQEK0R/FtZQK81Q4RLO+0Otc64LzCEshmI
6sAHdro6V3wc/gx8mRia8vKSnTxF+0abJ8QS0Hs5TMVYdTeZLe7Qz6e1wkvVG3aH
Hq9LkKw6pYDLy3oxk9TSj9q3sQil+bRFPw21YdfeRYq51cv1Q1MiXA==
=Yzfn
-----END PGP SIGNATURE-----
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Tue Mar 25 13:20:11 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23731
	for <cfrg-archive@odin.ietf.org>; Tue, 25 Mar 2003 13:20:11 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2PIeac00992
	for cfrg-archive@odin.ietf.org; Tue, 25 Mar 2003 13:40:36 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PIeaO00989
	for <cfrg-web-archive@optimus.ietf.org>; Tue, 25 Mar 2003 13:40:36 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23723
	for <cfrg-web-archive@ietf.org>; Tue, 25 Mar 2003 13:19:40 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PIV6O32324;
	Tue, 25 Mar 2003 13:31:06 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PIULO32283
	for <cfrg@optimus.ietf.org>; Tue, 25 Mar 2003 13:30:21 -0500
Received: from mailout.zetnet.co.uk (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23444
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 13:09:25 -0500 (EST)
Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk)
	by mailout.zetnet.co.uk with esmtp (Exim 3.36 #1 (Debian))
	id 18xstl-0000Ti-00
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 18:11:45 +0000
Received: from zetnet.co.uk (bts-1011.dialup.zetnet.co.uk [194.247.51.243])
	by zetnet.co.uk (8.12.3/8.12.3/Debian -4.sec) with ESMTP id h2PIBfKJ031309
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 18:11:43 GMT
Message-ID: <3E7EED56.1C5C1859@zetnet.co.uk>
Date: Mon, 24 Mar 2003 11:34:46 +0000
From: David Hopwood <david.hopwood@zetnet.co.uk>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en-GB,en,fr-FR,fr,de-DE,de,ru
MIME-Version: 1.0
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <205E7968-5DAE-11D7-99C5-003065BA64DC@securesoftware.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----

John Viega wrote:
> I'd actually like to know why PKCS #5's PBKDF2 isn't sufficient for
> Peter's needs, because I have found it useful for all of mine.  It's
> also very easy to adapt to use with AES.

As a password hash, PBKDF2 has two warts:

  - the computationally intensive part is repeated for each block
    of output required (say n hash outputs). This means that an attacker
    doing a dictionary search will gain an n-times advantage relative to
    the optimum.
  - unlike some other password hashes like bcrypt, there is no attempt to
    make the hash difficult for an attacker to optimise for a hardware-based
    keysearch machine.

These warts don't apply when it is used just as a variable-length
input/output PRF with a small iteration count - but in that case PBKDF2 is
arguably unnecessarily complicated, since VIO-PRFs don't need salt or
iteration counts.

FWIW, my preferred VIO-PRF is this:

    HMAC-PRF(hash)(key, seed) =
        HMAC(hash)(key, I2OSP(0, 4) || seed) ||
        HMAC(hash)(key, I2OSP(1, 4) || seed) ||
        HMAC(hash)(key, I2OSP(2, 4) || seed) ||
        ...

Note that it has no entropy bottleneck; for each <hash output length> of
PRF output, the key and seed both contribute fully to the entropy of the
output (limited only by the hash *block* size). It as as secure in the sense
of a VIO-PRF, as plain HMAC is as a VI-PRF (this also extends to the subset
of related-key attacks that can be formalised using the "PRF-RK" property
given at <http://groups.google.com/groups?selm=3D6466C6.1EC9E8E%40zetnet.co.uk>).

> The standard implementation for PBKDF2 that I've seen uses HMAC-SHA1
> internally.  One can replace that with OMAC, with one issue.  The way
> HMAC-SHA1 is used relies on the fact that it can accept arbitrary sized
> keys, whereas OMAC requires a fixed sized keys.  The easiest way to
> handle that problem is by using a hash function based on a block cipher
> like Davies-Meyer, but, IIRC, the proof for those constructions are in
> the ideal cipher model.

Davies-Meyer is construction i = 5 in [BRS02]. IMHO, constructions i = 1..4
from that paper are strictly better than Davies-Meyer, since they use the
cipher "the right way round", i.e. with either the fixed initial chaining
value h_0, or a previous ciphertext output h_{i-1} as the key. Provided that
h_0 is not a weak key, I find this more reasonable than the other constructions
(i = 5..20) that are keyed by m_i or (m_i xor h_{i-1}), so that an attacker is
able to influence the key. Even rather minor weaknesses in the cipher's key
schedule (such as just two related keys out of the whole key space) can render
those constructions insecure; see
<http://groups.google.com/groups?selm=3D4DCBC2.8846BF59%40zetnet.co.uk>.

[There is nothing to choose between my preferred 4 alternatives from that
paper, so anyone who wants to use one of these as a hash function might as
well use i = 1.
<http://www.users.zetnet.co.uk/hopwood/crypto/scan/md.html#BRS-Hn> nails
down some details.]

> I think you could probably avoid the hash-from-cipher construction by
> keying with the first keylen bytes, and then take the rest (if any),
> and prepend "len(key) || key leftovers" to the MAC input.

I would avoid this in cases where the first keylen bytes are not guaranteed
to have sufficient entropy on their own.


[BRS02] John Black, Phillip Rogaway, Thomas Shrimpton,
        "Black-Box Analysis of the Block-Cipher-Based Hash-Function
         Constructions from PGV" (full version),
        IACR e-print 2002/066, June 3 2002.
        <http://eprint.iacr.org/2002/066/>

- -- 
David Hopwood <david.hopwood@zetnet.co.uk>

Home page & PGP public key: http://www.users.zetnet.co.uk/hopwood/
RSA 2048-bit; fingerprint 71 8E A6 23 0E D3 4C E5  0F 69 8C D4 FA 66 15 01
Nothing in this message is intended to be legally binding. If I revoke a
public key but refuse to specify why, it is because the private key has been
seized under the Regulation of Investigatory Powers Act; see www.fipr.org/rip


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBPn7s6zkCAxeYt5gVAQEEfAf/b8XvssotoZLVuecea3zOGBx20R9C3vgM
5ejMQn8nEmQhKwVypHexpl2sASnaTQLMVw9biC/J3GxUqY9zajeqnfCf4I4VOYaS
AiDrLfRpAuEFdlVgeUb/X5vIUjFDqYc1H3DRjjRtUgGlAJngayxOsd18cW5qvDei
4o3apSMghnJIdjjTkUOt5+J8+tlgUOI7PBikVS5uTVkEGRa1dgTFWiwHkEqdMbHD
LkCXrKljtMI1rQVV7t4OLLpTXUXRWCFhNuff4IgqSbkA1Nf9nGsB86fT35e/5lEr
060y8TaJnx90pDSIvTSJzKKXosqz3w9GicbG+2mNwQkOWE1BnCzgnw==
=QIGi
-----END PGP SIGNATURE-----
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Tue Mar 25 13:27:55 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24255
	for <cfrg-archive@odin.ietf.org>; Tue, 25 Mar 2003 13:27:55 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2PImLB01611
	for cfrg-archive@odin.ietf.org; Tue, 25 Mar 2003 13:48:21 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PImKO01607
	for <cfrg-web-archive@optimus.ietf.org>; Tue, 25 Mar 2003 13:48:20 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24187
	for <cfrg-web-archive@ietf.org>; Tue, 25 Mar 2003 13:27:24 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PIkFO01455;
	Tue, 25 Mar 2003 13:46:15 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PIjhO01349
	for <cfrg@optimus.ietf.org>; Tue, 25 Mar 2003 13:45:43 -0500
Received: from hoemail1.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23883
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 13:24:47 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail1.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2PIR5H02715
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 13:27:06 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2PIR5Q00164; Tue, 25 Mar 2003 13:27:05 -0500 (EST)
Cc: cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2PIR2F00130; Tue, 25 Mar 2003 13:27:02 -0500 (EST)
Message-ID: <3E809F68.30104@bell-labs.com>
Date: Tue, 25 Mar 2003 13:26:48 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Hopwood <david.hopwood@zetnet.co.uk>
Original-CC: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <200303240545.AAA37022@ornavella.watson.ibm.com> <3E7F9590.7000605@bell-labs.com> <b5o42h$hhg$1@abraham.cs.berkeley.edu> <3E7EE10B.52BE1FF3@zetnet.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David Hopwood wrote:
> David Wagner wrote:
>>>I thought that the "degree" of non-randomness - i.e. fixing only
>>>a certain part of the key - reduced the workload of adversary,
>>>i.e. lowered the security guarantees ("resistance"), but didn't
>>>invalidate the whole thing?
>>
>>No.  Ran is right.
>>
>>If you fix a few bits of the key to a PRP, all bets are off
>>(unless you make extra assumptions beyond just that it's a PRP).
> 
 >
> In general, if you fix k bits then the bound on the success probability of
> an attack is degraded by a factor of 2^k. (This is not the same as reducing
> the workload.)

Well, this makes perfect sense. And it's precisely what I expected to 
see (as opposite to "no matter what all bets are off").


> The intuition behind this is that there is a 2^-k probability of an
> attacker who assumes that the k bits are fixed, having that assumption
> satisfied by chance for the unmodified PRP. Therefore the success probability
> cannot be multiplied by more than 2^k. Actually the same argument applies for
> any keyed algorithm.

Great! Thanks!

> Of course for sufficiently large k, this is effectively the same thing as
> "all bets are off". For k < 8, say, it is probably harmless. Anyway, this
> argument does not in any way justify using non-secret or non-random keys,
> unless you know that they are only "slightly" non-random.

In pratice - but not in theory, right? Because the theory deals with
the degradation - which is quantifiable? So if only 8 out of 128 key
bits are random - it still means degradation by 2^120, not "all bets
are off"?

Thanks!

Regards,
Uri.

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



From mailnull@www1.ietf.org  Tue Mar 25 16:55:36 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA05656
	for <cfrg-archive@odin.ietf.org>; Tue, 25 Mar 2003 16:55:36 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2PMG4d20596
	for cfrg-archive@odin.ietf.org; Tue, 25 Mar 2003 17:16:04 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PMG4O20593
	for <cfrg-web-archive@optimus.ietf.org>; Tue, 25 Mar 2003 17:16:04 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA05652
	for <cfrg-web-archive@ietf.org>; Tue, 25 Mar 2003 16:55:04 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PM9SO20234;
	Tue, 25 Mar 2003 17:09:28 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2PM6DO19271
	for <cfrg@optimus.ietf.org>; Tue, 25 Mar 2003 17:06:13 -0500
Received: from syd-msg-core-1.cisco.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA05243
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 16:45:12 -0500 (EST)
Received: from sfluhrer-w2k.cisco.com (localhost [127.0.0.1])
	by syd-msg-core-1.cisco.com (8.12.2/8.12.6) with ESMTP id h2PLlGMp007534;
	Wed, 26 Mar 2003 08:47:17 +1100 (EST)
Message-Id: <4.3.2.7.2.20030325112101.01ae0518@mira-sjcm-3.cisco.com>
X-Sender: sfluhrer@mira-sjcm-3.cisco.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Tue, 25 Mar 2003 13:47:18 -0800
To: cfrg@ietf.org
From: Scott Fluhrer <sfluhrer@cisco.com>
Subject: Re: [Cfrg] AES-based PRF - comment please
Cc: Uri Blumenthal <uri@bell-labs.com>
In-Reply-To: <3E7F9590.7000605@bell-labs.com>
References: <200303240545.AAA37022@ornavella.watson.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Here is a counter-proposal for an AES-based PRF:

Definitions:

b is the size of the block of the underlying block cipher.  We'll assume 
it's a multiple of 8.
k is the size of the key of the underlying block cipher.
|| is bitstring concatenation.
^ is bitwise exclusive or.
E_k(X) is the block encryption, using the underlying block cipher, with the 
key k, of the block X.
E*_k(X) is the output of the underlying block cipher in OFB mode, with the 
key k, and the initial block X.  Specifically,
    E*_k(X) = E_k(X) || E_k(E_k(X)) || E_k(E_k(E_k(X))) || ...
    Note that, if only b bits are required from E*_k(X), the output is 
identical to E_k(X).
S is the secret key of the PRF.  It MUST be at least k bits long, and less 
than 2^32 bits long.
N is the (possibly) public parameter to the PRF.  It MUST be at most 
2^{b/2} bits long.

To compute PRF(S, N), you follow the following steps:

1. Assign:
     K = The first k bits of S.
     K2 = The remaining bits of S
     M = Length(K2) || K2 || N
        where Length(K2) is the length of K2 in bits, expressed as a 32 bit 
quantity in Network order.
        M will be looked upon as a concatenation of n blocks, M[1], ..., 
M[n], where M[1],...,M[n-1] are b bits long, and M[n] is between 1 and b 
bits long.

2 Derive 3 k-bit keys (K1, K2 and K3) from the key K, as follows:
       K1 = E*_k(0x0101...01)
       K2 = E*_k(0x0202...02)
       K3 = E*_k(0x0303...03)

3. Define F[0] = 0x00000000000000000000000000000000

4. For each block M[i], where i = 1 ... n-1:
      XOR M[i] with F[i-1], then encrypt the result with Key K1, yielding F[i].
      (that is, F[i] = E_K1( M[i] ^ F[i-1] )

5. For block M[n]:

      (a) If the blocksize of M[n] is b bits:
         XOR M[n] with F[n-1] and Key K2, then generate OFB mode output 
with Key K2, yielding X.
         (that is, X = E*_K2( M[n] ^ F[n-1] )

      (b) If the blocksize of M[n] is less than b bits:
          (i) Pad M[n] with a single "1" bit, followed by the number of "0" 
bits (possibly none) required to increase M[n]'s blocksize to b bits.
          (ii) XOR M[n] with F[n-1] and Key K3, then generate OFB mode 
output with Key K3, yielding X.
             (that is, X = E*_K3( M[n] ^ F[n-1] )

6. Return the OFB output, with a zero starting block, of the key X, namely 
E*_X(0x00...00)
    This step is identical to step 5 of Uri's proposal.


Similarities to Uri's proposal:

In both cases, we run a MAC-like construction with S and N to generate a 
key, and then run the key in OFB mode to generate the output.  However, I 
replaced Uri's MAC-like construction with a generalization of XCBC-MAC.


Advantages of this proposal over Uri's:

1. This reduces the number of times the implementation needs to run the AES 
key scheduling to 4 times (only once if you compute based on the same S 
value multiple times, and you precompute the key schedules for K1, K2, K3).

2. If you use AES-128 as the block cipher, then steps 2 through 5 is 
precisely the XCBC MAC found in the draft-ietf-ipsec-ciph-aes-xcbc-mac-03 
(except we don't truncate the output to 96 bits, and assuming I didn't 
introduce a typo somewhere)  This means that an implementation that already 
implements XCBC can reuse that implementation here, rather than creating a 
separate control structure.

3. It also fixes the weaknesses:
     PRF(A, B) = PRF(A, B||0) (where 0 is a single 0 bit, and assuming that 
appending the 0 bit didn't cause the PRF to encrypt another block).
     PRF(A || B, C) = PRF(A, B || C) (when the length of A >= k)
     These weaknesses might not have mattered in the IKE environment, but 
we might as well clean them up anyway.


Disadvantages of this proposal (that I know about):

1. I have yet to do any sort of formal security review.  The review for the 
k=b case should be straightforward, the k>b case appears to be considerably 
trickier.  Should we insist that k=b (especially given that it's not 
obvious whether AES-256 gives you more security than AES-128 within this 
construction)?

2. For a fixed S, PRF(S, N) can take on only 2^{b} values.  Hence, a 
particular S should be used no more than 2^{b/2} times.

3. I did generalize XCBC to handle both the k>b case, and the case where 
the length of S is greater than k -- do either of these modifications 
invalidate the security proofs for XCBC?  I don't think so, but that should 
be checked.  Or, is there a standard (i.e. already proven) way of 
generalizing XCBC that we can take advantage of?


--
scott

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



From mailnull@www1.ietf.org  Tue Mar 25 20:37:45 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA14243
	for <cfrg-archive@odin.ietf.org>; Tue, 25 Mar 2003 20:37:44 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2Q1wHl04110
	for cfrg-archive@odin.ietf.org; Tue, 25 Mar 2003 20:58:17 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2Q1wHO04107
	for <cfrg-web-archive@optimus.ietf.org>; Tue, 25 Mar 2003 20:58:17 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA14239
	for <cfrg-web-archive@ietf.org>; Tue, 25 Mar 2003 20:37:13 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2Q1v4O04069;
	Tue, 25 Mar 2003 20:57:04 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2Q1seO03974
	for <cfrg@optimus.ietf.org>; Tue, 25 Mar 2003 20:54:40 -0500
Received: from mailout.zetnet.co.uk (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA14185
	for <cfrg@ietf.org>; Tue, 25 Mar 2003 20:33:37 -0500 (EST)
Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk)
	by mailout.zetnet.co.uk with esmtp (Exim 3.36 #1 (Debian))
	id 18xzpc-0001Yx-00
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 01:35:56 +0000
Received: from zetnet.co.uk (bts-0051.dialup.zetnet.co.uk [194.247.48.51])
	by zetnet.co.uk (8.12.3/8.12.3/Debian -4.sec) with ESMTP id h2Q1ZnKJ006111
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 01:35:53 GMT
Message-ID: <3E7F54C2.B310A09D@zetnet.co.uk>
Date: Mon, 24 Mar 2003 18:56:02 +0000
From: David Hopwood <david.hopwood@zetnet.co.uk>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en-GB,en,fr-FR,fr,de-DE,de,ru
MIME-Version: 1.0
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <205E7968-5DAE-11D7-99C5-003065BA64DC@securesoftware.com> <3E7EED56.1C5C1859@zetnet.co.uk>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----

David Hopwood wrote:
> FWIW, my preferred VIO-PRF is this:
> 
>     HMAC-PRF(hash)(key, seed) =
>         HMAC(hash)(key, I2OSP(0, 4) || seed) ||
>         HMAC(hash)(key, I2OSP(1, 4) || seed) ||
>         HMAC(hash)(key, I2OSP(2, 4) || seed) ||
>         ...

(I2OSP(i, 4) is a 4-byte big-endian representation of i.)

> Note that it has no entropy bottleneck; for each <hash output length> of
> PRF output, the key and seed both contribute fully to the entropy of the
> output (limited only by the hash *block* size).

Sorry, I was wrong here. HMAC is defined as:

  HMAC(hash)(key, msg) = hash((k XOR opad) || hash((k XOR ipad) || msg))

                       where k = key' zero-extended to B bytes
                             key' = key,       if |key| <= B
                             key' = hash(key), if |key| > B
                             B = hash block size in bytes

Let L be the hash chaining variable size in bytes (usually equal to its output
length). Because k is at the start of the hash inputs (before the 'I2OSP(i, 4)'
counter), the maximum entropy contribution of the key is 2*L bytes when
|key| <= B, or L bytes when |key| > B.

Although this isn't really a problem for typical hash sizes, I think it's worth
considering how to fix it, if we are going to recommend a hash-based VIO-PRF.

This approach:

  HMAC-PRF2(hash)(key, seed) =
      HMAC(hash)(I2OSP(0, 4) || key, I2OSP(0, 4) || seed) ||
      HMAC(hash)(I2OSP(1, 4) || key, I2OSP(1, 4) || seed) ||
      HMAC(hash)(I2OSP(2, 4) || key, I2OSP(2, 4) || seed) ||
      ...

doesn't obviously preserve the security of HMAC as a PRF, for the model that
assumes non-related keys. I'll have to think about this some more - I'm fairly
sure that avoiding the hash output size bottleneck is possible.

- -- 
David Hopwood <david.hopwood@zetnet.co.uk>

Home page & PGP public key: http://www.users.zetnet.co.uk/hopwood/
RSA 2048-bit; fingerprint 71 8E A6 23 0E D3 4C E5  0F 69 8C D4 FA 66 15 01
Nothing in this message is intended to be legally binding. If I revoke a
public key but refuse to specify why, it is because the private key has been
seized under the Regulation of Investigatory Powers Act; see www.fipr.org/rip


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBPn9UtDkCAxeYt5gVAQHudQf+OykroBikDFjGsIq34b7ANmZG8hnqblEY
QBP8BiH4KR2hYppq0FLVyBcU8sr8VOC0ar6/EtYn6HZ1DcNlrBj7J+n2gKNYoOg7
20CMy2R5KcID8MIuoLyLTOO7buSNxrDRuIn9TrOMrbqdl/ysl4PE0XCHU4gE2jgS
/zRgU/Myg5eJ6f3A1ajBhWjR9L+adOcNUoCdGHLbATwYEWHiphhVsYgErfQp9afd
F0NB3dX7xvoTfT2ZBQsw7zSLXiMq0aqA2+XNrFikrnoYeMiaN158Pn5//xcRzpMt
rwzqKt3HxnP7tGXEAkNtJ/NNJkRuk4lT4lLL7S7+oeQxOLLuBdwy7A==
=utR6
-----END PGP SIGNATURE-----

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



From mailnull@www1.ietf.org  Wed Mar 26 01:33:44 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA19709
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 01:33:44 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2Q6sOh21771
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 01:54:24 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2Q6sNO21768
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 01:54:23 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA19703
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 01:33:12 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2Q6r1O21680;
	Wed, 26 Mar 2003 01:53:01 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2Q6ojO21613
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 01:50:45 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA19583
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 01:29:28 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2Q66mI06158
	for cfrg@ietf.org; Tue, 25 Mar 2003 22:06:48 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 26 Mar 2003 06:06:48 GMT
Organization: University of California, Berkeley
Lines: 63
Distribution: isaac
Message-ID: <b5rg1o$5jj$1@abraham.cs.berkeley.edu>
References: <200303240545.AAA37022@ornavella.watson.ibm.com> <4.3.2.7.2.20030325112101.01ae0518@mira-sjcm-3.cisco.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048658808 5747 128.32.153.211 (26 Mar 2003 06:06:48 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 26 Mar 2003 06:06:48 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Scott Fluhrer  wrote:
>Here is a counter-proposal for an AES-based PRF:

I'm worried there may be some confusion here.

Your counter-proposal looks like a perfectly fine pseudorandom function.
However, I don't think it's a good replacement for SHA1-HMAC in IKE,
i.e., it's not as great an instantiation of IKE's "PRF".

At this point, I can almost hear you saying "Huh??".  What's going on here
is some confusing terminology, as Hugo mentioned earlier.  IKE's "PRF"
really should be more than just any old pseudorandom function; idealy,
it should also have some random oracle like properties.

How is IKE's "PRF" used?  If F is your instantiation of IKE's "PRF",
then IKE will compute F(g^xy, N) where g^xy is the result of a Diffie
Hellman exchange and N is some (possibly public) nonce.  What security
assumptions do we need for this to be secure?  It turns out that *either*
of the following two pairs of assumptions suffice.
   (a) If F is a pseudorandom function and DDH is hard,
       then IKE will be secure.
          and also:
   (b) If F is a random oracle and plain DH is hard,
       then IKE will be secure.
Recall that plain DH is the problem of computing g^xy from (g,g^x,g^y),
while DDH is the problem of distinguishing g^xy from g^z given
(g,g^x,g^y).  A pseudorandom function requires that its key be uniformly
distributed, or at least indistinguishable from uniform.  If F is a
generic pseudorandom function, then we're going to require that DDH
be hard (which will imply, under suitable side conditions, that g^xy
is indistinguishable from uniform); plain DH won't suffice.  However,
if F also some random oracle like properties, then all we need is that
plain DH be hard.

When we use F = SHA1-HMAC, this gives us some nice properties.  Recall
that DDH is a mildly questionable assumption; also, the random oracle
model is mildly questionable as well.  However, the above property
of IKE will ensure that if *either* DDH is hard *or* F behaves like a
random oracle, then IKE will be secure.  This is a really nice property:
it gives IKE a belt-and-suspenders kind of security.  (I'm assuming that
plain DH is hard and that F is a pseudorandom function; these assumptions
are probably much more realistic.)

With all that background, now I can say why your counter-proposal is
not quite as nice as SHA1-HMAC.  It's not as nice, because it seems
unlikely that your counter-proposal behaves like a random oracle.
In particular, property (b) from above has little hope of being true.
We lose the belt-and-suspenders strength.

For this reason, what we'd really like is a function F that's
  (1) hardware-friendly (i.e., uses only AES);
  (2) almost certainly a pseudorandom function
      (i.e., we can prove F is a PRF if AES is a PRP); and,
  (3) stands some chance of behaving like a random oracle
      (e.g., we can prove F behaves like a random oracle if AES
       is modelled as an ideal cipher).
This seems quite challenging to achieve.  And, even if we can achieve it,
its security still might not be quite as attractive as SHA1: I have less
confidence that AES can be safely modelled as an ideal cipher than that
SHA1 can be safely modelled as a random oracle, because I don't have
a great deal of confidence that AES's key schedule is super-strong.
And yet, there are good reasons to want an AES-only "PRF" for IKE,
so I don't really know what to do about this conundrum.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Wed Mar 26 08:55:27 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA26277
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 08:55:26 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2QEGGR31696
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 09:16:16 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QEGGO31693
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 09:16:16 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA26252
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 08:54:55 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QEFTO31621;
	Wed, 26 Mar 2003 09:15:29 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QD9FO26320
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 08:09:15 -0500
Received: from mail.securesoftware.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA24121
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 07:47:56 -0500 (EST)
Received: from zork.org (pcp732336pcs.arlngt01.va.comcast.net [68.49.161.231])
	by mail.securesoftware.com (Postfix) with ESMTP
	id 82EDD1341C0; Wed, 26 Mar 2003 07:51:07 -0500 (EST)
Date: Wed, 26 Mar 2003 07:50:18 -0500
Subject: Re: [Cfrg] AES-based PRF - comment please
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v551)
Cc: cfrg@ietf.org
To: daw@mozart.cs.berkeley.edu (David Wagner)
From: John Viega <viega@zork.org>
In-Reply-To: <b5rg1o$5jj$1@abraham.cs.berkeley.edu>
Message-Id: <7F68F333-5F89-11D7-82EB-003065BA64DC@zork.org>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.551)
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Wednesday, March 26, 2003, at 06:06 AM, David Wagner wrote:
>
>
> For this reason, what we'd really like is a function F that's
>   (1) hardware-friendly (i.e., uses only AES);
>   (2) almost certainly a pseudorandom function
>       (i.e., we can prove F is a PRF if AES is a PRP); and,
>   (3) stands some chance of behaving like a random oracle
>       (e.g., we can prove F behaves like a random oracle if AES
>        is modelled as an ideal cipher).
> This seems quite challenging to achieve.  And, even if we can achieve 
> it,
> its security still might not be quite as attractive as SHA1: I have 
> less
> confidence that AES can be safely modelled as an ideal cipher than that
> SHA1 can be safely modelled as a random oracle, because I don't have
> a great deal of confidence that AES's key schedule is super-strong.
> And yet, there are good reasons to want an AES-only "PRF" for IKE,
> so I don't really know what to do about this conundrum.

Earlier I mentioned that PKCS#5 would certainly fit the requirements 
above, and would have real general-purpose flexibility.  If it's too 
complex for people's tastes, one could also use HMAC with Davies-Meyer 
or Matyas-Myer-Oseas as the hash function, or wait 1.5 years for the 
MDC2 patent to expire.

I don't see an issue if you're willing to live with AES modeled as an 
ideal cipher.  I think the real hard problem is coming up with a 
construction that only needs to assume that AES is a PRP.

John

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



From mailnull@www1.ietf.org  Wed Mar 26 09:41:13 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA27708
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 09:41:13 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2QF22102485
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 10:02:02 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QF22O02482
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 10:02:02 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA27693
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 09:40:42 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QF0sO02364;
	Wed, 26 Mar 2003 10:00:54 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QD6UO25449
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 08:06:30 -0500
Received: from mail.securesoftware.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA24080
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 07:45:11 -0500 (EST)
Received: from zork.org (pcp732336pcs.arlngt01.va.comcast.net [68.49.161.231])
	by mail.securesoftware.com (Postfix) with ESMTP
	id 49EE8134495; Wed, 26 Mar 2003 07:48:22 -0500 (EST)
Date: Wed, 26 Mar 2003 07:47:33 -0500
Subject: Re: [Cfrg] AES-based PRF - comment please
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v551)
Cc: cfrg@ietf.org
To: daw@mozart.cs.berkeley.edu (David Wagner)
From: John Viega <viega@zork.org>
In-Reply-To: <b5rg1o$5jj$1@abraham.cs.berkeley.edu>
Message-Id: <1CF59AA2-5F89-11D7-9C82-003065BA64DC@zork.org>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.551)
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Wednesday, March 26, 2003, at 06:06 AM, David Wagner wrote:
>
>
> For this reason, what we'd really like is a function F that's
>   (1) hardware-friendly (i.e., uses only AES);
>   (2) almost certainly a pseudorandom function
>       (i.e., we can prove F is a PRF if AES is a PRP); and,
>   (3) stands some chance of behaving like a random oracle
>       (e.g., we can prove F behaves like a random oracle if AES
>        is modelled as an ideal cipher).
> This seems quite challenging to achieve.  And, even if we can achieve 
> it,
> its security still might not be quite as attractive as SHA1: I have 
> less
> confidence that AES can be safely modelled as an ideal cipher than that
> SHA1 can be safely modelled as a random oracle, because I don't have
> a great deal of confidence that AES's key schedule is super-strong.
> And yet, there are good reasons to want an AES-only "PRF" for IKE,
> so I don't really know what to do about this conundrum.

Earlier I mentioned that PKCS#5 would certainly fit the requirements 
above, and would have real general-purpose flexibility.  If it's too 
complex for people's tastes, one could also use HMAC with Davies-Meyer 
or Matyas-Myer-Oseas as the hash function, or wait 1.5 years for the 
MDC2 patent to expire.

I don't see an issue if you're willing to live with AES modeled as an 
ideal cipher.  I think the real hard problem is coming up with a 
construction that only needs to assume that AES is a PRP.

John

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



From mailnull@www1.ietf.org  Wed Mar 26 13:34:51 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06505
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 13:34:51 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2QItkW21500
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 13:55:46 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QItjO21497
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 13:55:45 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06494
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 13:34:19 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QIsHO21398;
	Wed, 26 Mar 2003 13:54:17 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QIokO21173
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 13:50:46 -0500
Received: from sj-core-1.cisco.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06358
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 13:29:20 -0500 (EST)
Received: from mira-sjc5-b.cisco.com (IDENT:mirapoint@mira-sjc5-b.cisco.com [171.71.163.14])
	by sj-core-1.cisco.com (8.12.6/8.12.6) with ESMTP id h2QIVV4c024371;
	Wed, 26 Mar 2003 10:31:32 -0800 (PST)
Received: from MCGREWW2K (stealth-10-34-251-100.cisco.com [10.34.251.100])
	by mira-sjc5-b.cisco.com (Mirapoint Messaging Server MOS 3.2.1-GA)
	with SMTP id AFM04328;
	Wed, 26 Mar 2003 10:30:05 -0800 (PST)
From: "David A. Mcgrew" <mcgrew@cisco.com>
To: "Scott Fluhrer" <sfluhrer@cisco.com>, <cfrg@ietf.org>
Cc: "Uri Blumenthal" <uri@bell-labs.com>
Subject: RE: [Cfrg] AES-based PRF - comment please
Date: Wed, 26 Mar 2003 10:31:29 -0800
Message-ID: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <4.3.2.7.2.20030325112101.01ae0518@mira-sjcm-3.cisco.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Importance: Normal
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Scott,

using xcbc the way that you did in your construction seems like a good idea; it
has the right properties prf-wise.

As David Wagner mentioned, we may want a random oracle rather than a prf for
ike.  But an efficient keyed prf with variable input length would have some
other nice uses.  In particular, I'm thinking that if counter mode had the
variable-input-length capability, then there would never be a need to debate the
format of the counter.   It would be easier to just use a prf that could accept
all of the inputs one might want to provide.  Also, it would be usable in
situations where it cannot easily be used at present.  For example, in some
protocol there may be a 160-bit nonce, such as an ipv6 address concatenated with
a 32-bit sequence number.

There would be some security degradation relative to vanilla-flavored ofb or ctr
if the number of invocations of the prf was close to 2^64 (for aes), but perhaps
that effect is manageable by just limiting the number of invocations.

David

> -----Original Message-----
> From: cfrg-admin@ietf.org [mailto:cfrg-admin@ietf.org]On Behalf Of Scott
> Fluhrer
> Sent: Tuesday, March 25, 2003 1:47 PM
> To: cfrg@ietf.org
> Cc: Uri Blumenthal
> Subject: Re: [Cfrg] AES-based PRF - comment please
>
>
> Here is a counter-proposal for an AES-based PRF:
>
> Definitions:
>
> b is the size of the block of the underlying block cipher.  We'll assume
> it's a multiple of 8.
> k is the size of the key of the underlying block cipher.
> || is bitstring concatenation.
> ^ is bitwise exclusive or.
> E_k(X) is the block encryption, using the underlying block cipher, with the
> key k, of the block X.
> E*_k(X) is the output of the underlying block cipher in OFB mode, with the
> key k, and the initial block X.  Specifically,
>     E*_k(X) = E_k(X) || E_k(E_k(X)) || E_k(E_k(E_k(X))) || ...
>     Note that, if only b bits are required from E*_k(X), the output is
> identical to E_k(X).
> S is the secret key of the PRF.  It MUST be at least k bits long, and less
> than 2^32 bits long.
> N is the (possibly) public parameter to the PRF.  It MUST be at most
> 2^{b/2} bits long.
>
> To compute PRF(S, N), you follow the following steps:
>
> 1. Assign:
>      K = The first k bits of S.
>      K2 = The remaining bits of S
>      M = Length(K2) || K2 || N
>         where Length(K2) is the length of K2 in bits, expressed as a 32 bit
> quantity in Network order.
>         M will be looked upon as a concatenation of n blocks, M[1], ...,
> M[n], where M[1],...,M[n-1] are b bits long, and M[n] is between 1 and b
> bits long.
>
> 2 Derive 3 k-bit keys (K1, K2 and K3) from the key K, as follows:
>        K1 = E*_k(0x0101...01)
>        K2 = E*_k(0x0202...02)
>        K3 = E*_k(0x0303...03)
>
> 3. Define F[0] = 0x00000000000000000000000000000000
>
> 4. For each block M[i], where i = 1 ... n-1:
>       XOR M[i] with F[i-1], then encrypt the result with Key K1,
> yielding F[i].
>       (that is, F[i] = E_K1( M[i] ^ F[i-1] )
>
> 5. For block M[n]:
>
>       (a) If the blocksize of M[n] is b bits:
>          XOR M[n] with F[n-1] and Key K2, then generate OFB mode output
> with Key K2, yielding X.
>          (that is, X = E*_K2( M[n] ^ F[n-1] )
>
>       (b) If the blocksize of M[n] is less than b bits:
>           (i) Pad M[n] with a single "1" bit, followed by the number of "0"
> bits (possibly none) required to increase M[n]'s blocksize to b bits.
>           (ii) XOR M[n] with F[n-1] and Key K3, then generate OFB mode
> output with Key K3, yielding X.
>              (that is, X = E*_K3( M[n] ^ F[n-1] )
>
> 6. Return the OFB output, with a zero starting block, of the key X, namely
> E*_X(0x00...00)
>     This step is identical to step 5 of Uri's proposal.
>
>
> Similarities to Uri's proposal:
>
> In both cases, we run a MAC-like construction with S and N to generate a
> key, and then run the key in OFB mode to generate the output.  However, I
> replaced Uri's MAC-like construction with a generalization of XCBC-MAC.
>
>
> Advantages of this proposal over Uri's:
>
> 1. This reduces the number of times the implementation needs to run the AES
> key scheduling to 4 times (only once if you compute based on the same S
> value multiple times, and you precompute the key schedules for K1, K2, K3).
>
> 2. If you use AES-128 as the block cipher, then steps 2 through 5 is
> precisely the XCBC MAC found in the draft-ietf-ipsec-ciph-aes-xcbc-mac-03
> (except we don't truncate the output to 96 bits, and assuming I didn't
> introduce a typo somewhere)  This means that an implementation that already
> implements XCBC can reuse that implementation here, rather than creating a
> separate control structure.
>
> 3. It also fixes the weaknesses:
>      PRF(A, B) = PRF(A, B||0) (where 0 is a single 0 bit, and assuming that
> appending the 0 bit didn't cause the PRF to encrypt another block).
>      PRF(A || B, C) = PRF(A, B || C) (when the length of A >= k)
>      These weaknesses might not have mattered in the IKE environment, but
> we might as well clean them up anyway.
>
>
> Disadvantages of this proposal (that I know about):
>
> 1. I have yet to do any sort of formal security review.  The review for the
> k=b case should be straightforward, the k>b case appears to be considerably
> trickier.  Should we insist that k=b (especially given that it's not
> obvious whether AES-256 gives you more security than AES-128 within this
> construction)?
>
> 2. For a fixed S, PRF(S, N) can take on only 2^{b} values.  Hence, a
> particular S should be used no more than 2^{b/2} times.
>
> 3. I did generalize XCBC to handle both the k>b case, and the case where
> the length of S is greater than k -- do either of these modifications
> invalidate the security proofs for XCBC?  I don't think so, but that should
> be checked.  Or, is there a standard (i.e. already proven) way of
> generalizing XCBC that we can take advantage of?
>
>
> --
> scott
>
> _______________________________________________
> 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 mailnull@www1.ietf.org  Wed Mar 26 17:26:51 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA18275
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 17:26:51 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2QMln010044
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 17:47:49 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QMlnO10041
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 17:47:49 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA18252
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 17:26:19 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QMk6O09939;
	Wed, 26 Mar 2003 17:46:06 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QMhwO09872
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 17:43:58 -0500
Received: from auemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA18203
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 17:22:28 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by auemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2QMOlS05691
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 17:24:47 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2QMOke12449; Wed, 26 Mar 2003 17:24:46 -0500 (EST)
Cc: "David A. Mcgrew" <mcgrew@cisco.com>,
        Scott Fluhrer
    <sfluhrer@cisco.com>, cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2QMOgP12423; Wed, 26 Mar 2003 17:24:42 -0500 (EST)
Message-ID: <3E82289D.6040701@bell-labs.com>
Date: Wed, 26 Mar 2003 17:24:29 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Wagner <daw@mozart.cs.berkeley.edu>
Original-CC: "David A. Mcgrew" <mcgrew@cisco.com>, Scott Fluhrer
 <sfluhrer@cisco.com>,
   cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

So as far as I see, the advantage of Scott's proposal is using
an "officially blessed" XCBC. The disadvantage - being "just"
a PRF.  The solution seems to still use a two-part construct,
first part *crypto-hashing* the input, and the second part
actually producing pseudo random output. Only this way
we can get to the "belt-and-suspenders" level (IMHO).

The following two questions is for everybody, especially for
D. Wagner.

1. If a Secure Hash function is build of AES block cipher,
    will you accept it as Random Oracle (i.e. would you
    extend to it your "mildly questionable" status you
    grant SHA)?

2. If for security proofs of AES-based crypto-hash, one
    uses black-box assumption, would this be OK with you?
    [Being PRP is insufficient, being ideal cipher is too
    strong.]

3. [I lied: I had a third question :-] To randomize OFB
    starting point I want to take two bytes of DH output
    to use as offset counter. Any problem with that?

Thanks!


David A. Mcgrew wrote:
> Scott,
> 
> using xcbc the way that you did in your construction seems like a good idea; it
> has the right properties prf-wise.
> 
> As David Wagner mentioned, we may want a random oracle rather than a prf for
> ike.  But an efficient keyed prf with variable input length would have some
> other nice uses.  In particular, I'm thinking that if counter mode had the
> variable-input-length capability, then there would never be a need to debate the
> format of the counter.   It would be easier to just use a prf that could accept
> all of the inputs one might want to provide.  Also, it would be usable in
> situations where it cannot easily be used at present.  For example, in some
> protocol there may be a 160-bit nonce, such as an ipv6 address concatenated with
> a 32-bit sequence number.
> 
> There would be some security degradation relative to vanilla-flavored ofb or ctr
> if the number of invocations of the prf was close to 2^64 (for aes), but perhaps
> that effect is manageable by just limiting the number of invocations.
> 
> David
> 
> 
>>-----Original Message-----
>>From: cfrg-admin@ietf.org [mailto:cfrg-admin@ietf.org]On Behalf Of Scott
>>Fluhrer
>>Sent: Tuesday, March 25, 2003 1:47 PM
>>To: cfrg@ietf.org
>>Cc: Uri Blumenthal
>>Subject: Re: [Cfrg] AES-based PRF - comment please
>>
>>
>>Here is a counter-proposal for an AES-based PRF:
>>
>>Definitions:
>>
>>b is the size of the block of the underlying block cipher.  We'll assume
>>it's a multiple of 8.
>>k is the size of the key of the underlying block cipher.
>>|| is bitstring concatenation.
>>^ is bitwise exclusive or.
>>E_k(X) is the block encryption, using the underlying block cipher, with the
>>key k, of the block X.
>>E*_k(X) is the output of the underlying block cipher in OFB mode, with the
>>key k, and the initial block X.  Specifically,
>>    E*_k(X) = E_k(X) || E_k(E_k(X)) || E_k(E_k(E_k(X))) || ...
>>    Note that, if only b bits are required from E*_k(X), the output is
>>identical to E_k(X).
>>S is the secret key of the PRF.  It MUST be at least k bits long, and less
>>than 2^32 bits long.
>>N is the (possibly) public parameter to the PRF.  It MUST be at most
>>2^{b/2} bits long.
>>
>>To compute PRF(S, N), you follow the following steps:
>>
>>1. Assign:
>>     K = The first k bits of S.
>>     K2 = The remaining bits of S
>>     M = Length(K2) || K2 || N
>>        where Length(K2) is the length of K2 in bits, expressed as a 32 bit
>>quantity in Network order.
>>        M will be looked upon as a concatenation of n blocks, M[1], ...,
>>M[n], where M[1],...,M[n-1] are b bits long, and M[n] is between 1 and b
>>bits long.
>>
>>2 Derive 3 k-bit keys (K1, K2 and K3) from the key K, as follows:
>>       K1 = E*_k(0x0101...01)
>>       K2 = E*_k(0x0202...02)
>>       K3 = E*_k(0x0303...03)
>>
>>3. Define F[0] = 0x00000000000000000000000000000000
>>
>>4. For each block M[i], where i = 1 ... n-1:
>>      XOR M[i] with F[i-1], then encrypt the result with Key K1,
>>yielding F[i].
>>      (that is, F[i] = E_K1( M[i] ^ F[i-1] )
>>
>>5. For block M[n]:
>>
>>      (a) If the blocksize of M[n] is b bits:
>>         XOR M[n] with F[n-1] and Key K2, then generate OFB mode output
>>with Key K2, yielding X.
>>         (that is, X = E*_K2( M[n] ^ F[n-1] )
>>
>>      (b) If the blocksize of M[n] is less than b bits:
>>          (i) Pad M[n] with a single "1" bit, followed by the number of "0"
>>bits (possibly none) required to increase M[n]'s blocksize to b bits.
>>          (ii) XOR M[n] with F[n-1] and Key K3, then generate OFB mode
>>output with Key K3, yielding X.
>>             (that is, X = E*_K3( M[n] ^ F[n-1] )
>>
>>6. Return the OFB output, with a zero starting block, of the key X, namely
>>E*_X(0x00...00)
>>    This step is identical to step 5 of Uri's proposal.
>>
>>
>>Similarities to Uri's proposal:
>>
>>In both cases, we run a MAC-like construction with S and N to generate a
>>key, and then run the key in OFB mode to generate the output.  However, I
>>replaced Uri's MAC-like construction with a generalization of XCBC-MAC.
>>
>>
>>Advantages of this proposal over Uri's:
>>
>>1. This reduces the number of times the implementation needs to run the AES
>>key scheduling to 4 times (only once if you compute based on the same S
>>value multiple times, and you precompute the key schedules for K1, K2, K3).
>>
>>2. If you use AES-128 as the block cipher, then steps 2 through 5 is
>>precisely the XCBC MAC found in the draft-ietf-ipsec-ciph-aes-xcbc-mac-03
>>(except we don't truncate the output to 96 bits, and assuming I didn't
>>introduce a typo somewhere)  This means that an implementation that already
>>implements XCBC can reuse that implementation here, rather than creating a
>>separate control structure.
>>
>>3. It also fixes the weaknesses:
>>     PRF(A, B) = PRF(A, B||0) (where 0 is a single 0 bit, and assuming that
>>appending the 0 bit didn't cause the PRF to encrypt another block).
>>     PRF(A || B, C) = PRF(A, B || C) (when the length of A >= k)
>>     These weaknesses might not have mattered in the IKE environment, but
>>we might as well clean them up anyway.
>>
>>
>>Disadvantages of this proposal (that I know about):
>>
>>1. I have yet to do any sort of formal security review.  The review for the
>>k=b case should be straightforward, the k>b case appears to be considerably
>>trickier.  Should we insist that k=b (especially given that it's not
>>obvious whether AES-256 gives you more security than AES-128 within this
>>construction)?
>>
>>2. For a fixed S, PRF(S, N) can take on only 2^{b} values.  Hence, a
>>particular S should be used no more than 2^{b/2} times.
>>
>>3. I did generalize XCBC to handle both the k>b case, and the case where
>>the length of S is greater than k -- do either of these modifications
>>invalidate the security proofs for XCBC?  I don't think so, but that should
>>be checked.  Or, is there a standard (i.e. already proven) way of
>>generalizing XCBC that we can take advantage of?
>>
>>
>>--
>>scott
>>
>>_______________________________________________
>>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


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



From mailnull@www1.ietf.org  Wed Mar 26 17:48:07 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA19409
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 17:48:07 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2QN96T11861
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 18:09:06 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QN96O11858
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 18:09:06 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA19388
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 17:47:35 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QN83O11799;
	Wed, 26 Mar 2003 18:08:03 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QN7eO11753
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 18:07:40 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA19367
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 17:46:10 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2QMNSD17493
	for cfrg@ietf.org; Wed, 26 Mar 2003 14:23:28 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 26 Mar 2003 22:23:28 GMT
Organization: University of California, Berkeley
Lines: 33
Distribution: isaac
Message-ID: <b5t990$h11$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <3E82289D.6040701@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048717408 17441 128.32.153.211 (26 Mar 2003 22:23:28 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 26 Mar 2003 22:23:28 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>1. If a Secure Hash function is build of AES block cipher,
>    will you accept it as Random Oracle (i.e. would you
>    extend to it your "mildly questionable" status you
>    grant SHA)?

If we have a proof that your F behaves like a random oracle
(or is good for IKE when only plain DH, but not DDH, holds),
assuming AES can be modelled as an ideal cipher, then my answer
would be: Yes.

This is all modulo my remarks about being more uncomfortable
about modelling AES as an ideal cipher than I am modelling
SHA1 as a random oracle.  But it seems to be the best we have
any hope of doing, so maybe we shouldn't put too much weight
on my discomfort.

>2. If for security proofs of AES-based crypto-hash, one
>    uses black-box assumption, would this be OK with you?
>    [Being PRP is insufficient, being ideal cipher is too
>    strong.]

What's the black-box assumption?  Is it different from the
ideal cipher model?  I'm not familiar with this distinction.

>3. [I lied: I had a third question :-] To randomize OFB
>    starting point I want to take two bytes of DH output
>    to use as offset counter. Any problem with that?

Depends what properties you want from it.  If DDH holds, then
those two bytes should be pseudorandom and computationally
independent of everything else.  If only plain DH holds, then
there are few guarantees one can make about those two bytes.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Wed Mar 26 18:28:39 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22303
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 18:28:39 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2QNndj14291
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 18:49:39 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QNncO14288
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 18:49:38 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22297
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 18:28:07 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QNmCO14259;
	Wed, 26 Mar 2003 18:48:12 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QNljO14238
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 18:47:45 -0500
Received: from hoemail1.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22262
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 18:26:14 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail1.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2QNSXb23519
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 18:28:33 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2QNSWH27398; Wed, 26 Mar 2003 18:28:32 -0500 (EST)
Cc: cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2QNSUP27383; Wed, 26 Mar 2003 18:28:30 -0500 (EST)
Message-ID: <3E823791.3080702@bell-labs.com>
Date: Wed, 26 Mar 2003 18:28:17 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Wagner <daw@mozart.cs.berkeley.edu>
Original-CC: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <3E82289D.6040701@bell-labs.com> <b5t990$h11$1@abraham.cs.berkeley.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David Wagner wrote:
> Uri Blumenthal  wrote:
> 
>>1. If a Secure Hash function is build of AES block cipher,
>>   will you accept it as Random Oracle (i.e. would you
>>   extend to it your "mildly questionable" status you
>>   grant SHA)?
> 
> 
> If we have a proof that your F behaves like a random oracle
> (or is good for IKE when only plain DH, but not DDH, holds),
> assuming AES can be modelled as an ideal cipher, then my answer
> would be: Yes.

Is there a proof that SHA-1 behaves like a random oracle?

I thought is is assumed about pretty much any secure hash with
provable collision resistance guarantees, especially when there
is a reason to believe it's also a PRF?

Ideal cipher assumption would be too strong - hopefully
black-box assumption is sufficient.

> This is all modulo my remarks about being more uncomfortable
> about modelling AES as an ideal cipher than I am modelling
> SHA1 as a random oracle.  But it seems to be the best we have
> any hope of doing, so maybe we shouldn't put too much weight
> on my discomfort.

(:-)


>>2. If for security proofs of AES-based crypto-hash, one
>>   uses black-box assumption, would this be OK with you?
>>   [Being PRP is insufficient, being ideal cipher is too
>>   strong.]
> 
> What's the black-box assumption?  Is it different from the
> ideal cipher model?  I'm not familiar with this distinction.

Black-box assumption is a weaker requirement than ideal cipher.
Here you treat your block cipher as a black box - you cannot
"pick inside" the cipher engine. You give key, input and
get output (encrypt and decrypt).

But unlike ideal cipher, you make no assumption about the key.
As I understand, in an "ideal cipher"


>>3. [I lied: I had a third question :-] To randomize OFB
>>   starting point I want to take two bytes of DH output
>>   to use as offset counter. Any problem with that?
> 
> Depends what properties you want from it.  If DDH holds, then
> those two bytes should be pseudorandom and computationally
> independent of everything else.  If only plain DH holds, then
> there are few guarantees one can make about those two bytes.

This is not for proof, just for practicality. To avoid
precomputation attack, I want to offset the starting
point of OFB. It would make sense to use something
that hasn't come through the "hashing engine" yet.
So I'd need some unknown, preferably unpredictable
and maybe somewhat random bytes. Two LSBytes from
g^ir seem like a good choice? Any other place...?

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



From mailnull@www1.ietf.org  Wed Mar 26 18:39:22 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22619
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 18:39:22 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2R00Mj14655
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 19:00:22 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R00MO14652
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 19:00:22 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22613
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 18:38:50 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QNx2O14601;
	Wed, 26 Mar 2003 18:59:02 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2QNwUO14572
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 18:58:30 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA22530
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 18:36:58 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2QNEHG18190
	for cfrg@ietf.org; Wed, 26 Mar 2003 15:14:17 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 26 Mar 2003 23:14:17 GMT
Organization: University of California, Berkeley
Lines: 29
Distribution: isaac
Message-ID: <b5tc89$hmd$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <3E82289D.6040701@bell-labs.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048720457 18125 128.32.153.211 (26 Mar 2003 23:14:17 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 26 Mar 2003 23:14:17 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>Is there a proof that SHA-1 behaves like a random oracle?

You're kidding, right?  No, there's no proof; it's not something
that can be proven.

This is pretty basic stuff.  Would it be helpful for me to refer
you back to the original Bellare and Rogaway paper on random oracles,
or to other work in the literature on the random oracle model?
It sounds like it might help to clear up confusion about things like,
"What is the random oracle model?  What does a proof in the random
oracle model look like?  What does it imply about the security of
a concrete construct?".  Those questions have been pretty well treated
in the cryptography literature, so I'm reluctant to write a lengthy
tutorial on the topic here.

If you already know all this, I apologize.


>Black-box assumption is a weaker requirement than ideal cipher.
>Here you treat your block cipher as a black box - you cannot
>"pick inside" the cipher engine. You give key, input and
>get output (encrypt and decrypt).
>
>But unlike ideal cipher, you make no assumption about the key.
>As I understand, in an "ideal cipher"

I understood each of those words, but I can't figure out what precisely
you meant by that paragraph.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Wed Mar 26 21:24:39 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA28589
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 21:24:39 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2R2jhh26693
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 21:45:43 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R2jhO26690
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 21:45:43 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA28564
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 21:24:07 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R2iKO26545;
	Wed, 26 Mar 2003 21:44:20 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R2hDO26484
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 21:43:13 -0500
Received: from ithilien.qualcomm.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA28461
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 21:21:37 -0500 (EST)
Received: from servo.qualcomm.com (servo.qualcomm.com [129.46.76.82])
	by ithilien.qualcomm.com (8.12.8/8.12.5/1.0) with ESMTP id h2R2NuX7007774;
	Wed, 26 Mar 2003 18:23:57 -0800 (PST)
Received: from GROSE.qualcomm.com (vpn-10-50-0-17.qualcomm.com [10.50.0.17])
	by servo.qualcomm.com (8.12.8/8.12.3/1.0) with ESMTP id h2R2Nnf0001639;
	Wed, 26 Mar 2003 18:23:52 -0800 (PST)
Message-Id: <5.1.0.14.2.20030327132222.021c8df0@203.30.171.11>
X-Sender: ggr2@203.30.171.11
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Thu, 27 Mar 2003 13:23:47 +1100
To: daw@mozart.cs.berkeley.edu (David Wagner)
From: Greg Rose <ggr@qualcomm.com>
Subject: Re: [Cfrg] AES-based PRF - comment please
Cc: cfrg@ietf.org
In-Reply-To: <b5tc89$hmd$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com>
 <3E82289D.6040701@bell-labs.com>
 <b5t990$h11$1@abraham.cs.berkeley.edu>
 <3E823791.3080702@bell-labs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

At 11:14 PM 3/26/2003 +0000, David Wagner wrote:
>Uri Blumenthal  wrote:
> >Is there a proof that SHA-1 behaves like a random oracle?
>
>You're kidding, right?  No, there's no proof; it's not something
>that can be proven.

Actually, wasn't there a paper at Crypto either last year or the one 
before, that I didn't understand, that proved that no simple algorithm 
*could* be a random oracle?

Anyway, SHA-1 might be good, but it pretty certainly isn't one.

Greg.

Greg Rose                                       INTERNET: ggr@qualcomm.com
Qualcomm Australia          VOICE:  +61-2-9817 4188   FAX: +61-2-9817 5199
Level 3, 230 Victoria Road,                http://people.qualcomm.com/ggr/
Gladesville NSW 2111    232B EC8F 44C6 C853 D68F  E107 E6BF CD2F 1081 A37C

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



From mailnull@www1.ietf.org  Wed Mar 26 22:15:53 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA00342
	for <cfrg-archive@odin.ietf.org>; Wed, 26 Mar 2003 22:15:53 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2R3avw29583
	for cfrg-archive@odin.ietf.org; Wed, 26 Mar 2003 22:36:57 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R3avO29580
	for <cfrg-web-archive@optimus.ietf.org>; Wed, 26 Mar 2003 22:36:57 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA00303
	for <cfrg-web-archive@ietf.org>; Wed, 26 Mar 2003 22:15:22 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R3Z6O29467;
	Wed, 26 Mar 2003 22:35:06 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2R3YtO29444
	for <cfrg@optimus.ietf.org>; Wed, 26 Mar 2003 22:34:55 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA00208
	for <cfrg@ietf.org>; Wed, 26 Mar 2003 22:13:19 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2R2obF20236
	for cfrg@ietf.org; Wed, 26 Mar 2003 18:50:37 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 27 Mar 2003 02:50:37 GMT
Organization: University of California, Berkeley
Lines: 76
Distribution: isaac
Message-ID: <b5tott$job$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com> <5.1.0.14.2.20030327132222.021c8df0@203.30.171.11>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048733437 20235 128.32.153.211 (27 Mar 2003 02:50:37 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 27 Mar 2003 02:50:37 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Greg Rose  wrote:
>Actually, wasn't there a paper at Crypto either last year or the one 
>before, that I didn't understand, that proved that no simple algorithm 
>*could* be a random oracle?

It doesn't make sense to say that SHA1 is a random oracle; they're just
two entirely different kinds of beasts.  If we're among friends, we
could talk informally about whether SHA1 "behaves like a random oracle",
but this terminology is arguably sloppy.  (I plead guilty.)

To convey what I'm really trying to get at when I write sentences like
this, maybe I'd better back up a little bit.

Aww, heck.  I was too lazy to write a tutorial on the random oracle
model, but I can see if I don't explain a little, my posts here won't
make any sense.  I suppose I might as well bite the bullet and write a
little summary.  :-)  So, here goes.

Let's do a thought experiment.  Suppose we take a protocol that uses
SHA1 somehow, idealize the protocol by replacing the hash function with
a random oracle, and prove that the resulting idealized version is secure
in the random oracle model.  What can we say about the original protocol?

As it happens, the answer is: absolutely nothing.  It's entirely possible
that the original protocol could be insecure when used with SHA1, despite
the proof of security in the random oracle model for the idealization.
There are examples of protocols that are insecure when used with SHA1 but
can be proven secure in the random oracle model.  Intuitively speaking,
this troubling scenario could happen if the original protocol "interacted
badly" with SHA1.

(Indeed, I believe it's possible that the original protocol would be
insecure *no matter what hash function you used*, which says that even
if SHA1 were as good as any hash function could ever be, the original
protocol might be insecure.  This is even more mysterious.)

So why bother with the random oracle model in the first place?  Ahh,
now we've got our finger on the source of the controversy.  Some people
might tell you that, because of the existence of such a counterexample,
the random oracle model has little value.  I prefer, instead, to think
that the random oracle model has great value, but it must be used with
caution -- we daren't confuse it with an ironclad guarantee of security.

What a proof of security in the random oracle model tells you is that
the protocol is secure against generic attacks; any successful attack
probably must somehow exploit something about the structure of SHA1.
When you consider how many protocols have turned out to be insecure
against generic attacks, that's an awfully useful thing to know, IMHO.

By the way, whenever you hear the word "proof" in the context of the
random oracle model, you should be aware that the word can be a little bit
deceiving.  Don't expect anything provable about your original protocol.
When you hear the phrase "proof of security in the random oracle", think
"an argument that it's plausible to believe that the protocol is secure".

Are proofs in reduction-based cryptography any better?  (By
reduction-based crypto, I mean the complexity-theoretic stuff that uses
concrete reductions, with no random oracles.)  I claim "yes", but I have
to be a little careful in justifying this answer.  It's true that when
you hear about a "proof of security" in the context of reduction-based
analysis, typically there is some computational assumption, like
that factoring is hard.  In some sense the word "proof" can still be
deceptive in the reduction-based setting, since there's still this
unproven assumption.  However, it is arguably a little less deceptive,
because at least we have a well-specified assumption.  In contrast, the
random oracle model is not an assumption.  It is a modelling process,
but there is no precise assumption we can point to that is either true
or false and that we can try to gain confidence in.

For more, read my article with Bruce in Cryptogram:
  http://www.counterpane.com/crypto-gram-0301.html#7
Then, read my letter, Phil Rogaway's letter (Sections 2.2,2.3), and John
Black's letter to NIST about RMAC:
  http://csrc.nist.gov/CryptoToolkit/modes/comments/
Now you know some of the background of the random oracle controversy.
I hope it helped.  Also, I hope I didn't make any mistakes!
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 08:00:43 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA26284
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 08:00:43 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RDM0S15292
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 08:22:00 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RDM0O15289
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 08:22:00 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA26265
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 08:00:11 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RDL5O15252;
	Thu, 27 Mar 2003 08:21:05 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RDIBO15112
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 08:18:11 -0500
Received: from cdc-info.cdc.informatik.tu-darmstadt.de (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA26141
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 07:56:22 -0500 (EST)
Received: from cdc-ws13.cdc.informatik.tu-darmstadt.de (cdc-ws13 [130.83.23.73])
	by cdc-info.cdc.informatik.tu-darmstadt.de (Postfix) with ESMTP id 347102CA2
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 13:58:44 +0100 (MET)
Received: (from moeller@localhost)
	by cdc-ws13.cdc.informatik.tu-darmstadt.de (8.11.6+Sun/8.11.6) id h2RCwhD12853
	for cfrg@ietf.org; Thu, 27 Mar 2003 13:58:43 +0100 (MET)
Date: Thu, 27 Mar 2003 13:58:43 +0100
From: Bodo Moeller <moeller@cdc.informatik.tu-darmstadt.de>
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
Message-ID: <20030327135842.B12834@cdc.informatik.tu-darmstadt.de>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com> <5.1.0.14.2.20030327132222.021c8df0@203.30.171.11> <b5tott$job$1@abraham.cs.berkeley.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <b5tott$job$1@abraham.cs.berkeley.edu>; from daw@mozart.cs.berkeley.edu on Thu, Mar 27, 2003 at 02:50:37AM +0000
Content-Transfer-Encoding: 8bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

On Thu, Mar 27, 2003 at 02:50:37AM +0000, David Wagner wrote:

> Let's do a thought experiment.  Suppose we take a protocol that uses
> SHA1 somehow, idealize the protocol by replacing the hash function with
> a random oracle, and prove that the resulting idealized version is secure
> in the random oracle model.  What can we say about the original protocol?
> 
> As it happens, the answer is: absolutely nothing.  It's entirely possible
> that the original protocol could be insecure when used with SHA1, despite
> the proof of security in the random oracle model for the idealization.
> There are examples of protocols that are insecure when used with SHA1 but
> can be proven secure in the random oracle model.  Intuitively speaking,
> this troubling scenario could happen if the original protocol "interacted
> badly" with SHA1.
> 
> (Indeed, I believe it's possible that the original protocol would be
> insecure *no matter what hash function you used*, which says that even
> if SHA1 were as good as any hash function could ever be, the original
> protocol might be insecure.  This is even more mysterious.)

Papers on this "mysterious" effect are the following:

@InProceedings{Canetti_et_al:1998,
  author = 	 {Canetti, Ran and Goldreich, Oded and Halevi, Shai},
  title = 	 {The Random Oracle Methodology, Revisited},
  booktitle = 	 {30th {ACM} Symposium on Theory of Computing ({STOC})},
  pages =	 {209--218},
  year =	 1998,
}

@Misc{Canetti_et_al:2000,
  author = 	 {Canetti, Ran and Goldreich, Oded and Halevi, Shai},
  title = 	 {The Random Oracle Methodology, Revisited},
  howpublished = {E-print cs.CR/0010019},
  year =	 2000,
  note =         {Available from \url{http://arXiv.org/abs/cs/0010019}}
}

@Misc{Goldwasser/Taumann:2003,
  author = 	 {Goldwasser, Shafi and Taumann, Yael},
  title = 	 {On the (In)security of the {F}iat-{S}hamir Paradigm},
  howpublished = {Cryptology ePrint Archive Report 2003/034},
  year =	 2003,
  note =         {Available from \url{http://eprint.iacr.org/}}
}

It should be noted that all such counterexamples make statements about
*asymptotic* security: they assume that a fixed description of the
hash function is used across all security parameters and exploit
anomalies in this setting.  But to me, the random oracle methodology
is something that you can resort to if you want to *avoid* asymptotic
security considerations.  Please read on:


> Are proofs in reduction-based cryptography any better?  (By
> reduction-based crypto, I mean the complexity-theoretic stuff that uses
> concrete reductions, with no random oracles.)  I claim "yes", but I have
> to be a little careful in justifying this answer.  It's true that when
> you hear about a "proof of security" in the context of reduction-based
> analysis, typically there is some computational assumption, like
> that factoring is hard.  In some sense the word "proof" can still be
> deceptive in the reduction-based setting, since there's still this
> unproven assumption.  However, it is arguably a little less deceptive,
> because at least we have a well-specified assumption.

One the other hand, such reduction-based proofs make only asymptotic
statements, since the underlying assumptions (such as intractability
of factoring) are asymptotic.  Roughly, the security result says that
for any given adversary, there is a security parameter such that the
cryptographic scheme is secure.  But in practice, we have to pick
some specific security parameter and want the system to be secure
against all adversaries.  Unfortunately, while factoring may be hard,
factoring 2048-bit integers (or integers of any other fixed size) is a
O(1)  problem, so proofs in the reduction-based approach don't really
tell us anything about deployable systems.

Of course, such proofs can still be considered valuable heuristic
results -- we hope that the concrete choice of the security parameter
will be large enough such that the asymptotic result has a close
correspondence to reality.

>                                                        In contrast, the
> random oracle model is not an assumption.  It is a modelling process,
> but there is no precise assumption we can point to that is either true
> or false and that we can try to gain confidence in.

Either methodology has its inherent problems.  Just as no specific
choice of a hash function can be a "random oracle", no specific choice
of a security parameter can be "asymptotic".  If we do not have
information-theoretic security, we cannot prove anything about the
security of deployable systems unless we cheat *some* way.  If we want
results that are not merely asymptotic, we can resort to random
oracles as an idealization of what is really going on; if we want
results that do not involve random oracles, we can resort to systems
with an unbounded security parameter as an idealization of what is
really going on.  In any case, what we do could be denounced as
playing shell games with quantifieres.  A more positive view is to
acknowledge that in both cases we end up relying on heuristical
considerations, and that we cannot get far if we are not willing to do
so.


-- 
Bodo Möller <moeller@cdc.informatik.tu-darmstadt.de>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 11:56:14 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA07657
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 11:56:14 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RHHZo01424
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 12:17:35 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHHZO01421
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 12:17:35 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA07618
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 11:55:42 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHDFO01135;
	Thu, 27 Mar 2003 12:13:15 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHCHO01050
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 12:12:17 -0500
Received: from mail.okiok.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA07453
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 11:50:25 -0500 (EST)
Received: from p1038mobile (58-12b-168-122.dial.mtl1.sprint-canada.net [149.99.168.122])
	by mail.okiok.com (Postfix) with ESMTP
	id 68CC6B4064; Thu, 27 Mar 2003 11:26:36 -0500 (EST)
Message-ID: <007e01c2f482$58d6e780$7aa86395@p1038mobile>
From: "Anton Stiglic" <astiglic@okiok.com>
To: "Bodo Moeller" <moeller@cdc.informatik.tu-darmstadt.de>, <cfrg@ietf.org>
Cc: "David Wagner" <daw@cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com> <5.1.0.14.2.20030327132222.021c8df0@203.30.171.11> <b5tott$job$1@abraham.cs.berkeley.edu> <20030327135842.B12834@cdc.informatik.tu-darmstadt.de>
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: Thu, 27 Mar 2003 12:00:14 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


----- Original Message -----
From: "Bodo Moeller" <moeller@cdc.informatik.tu-darmstadt.de>
> [...]
> On Thu, Mar 27, 2003 at 02:50:37AM +0000, David Wagner wrote:
> > [...]
> > Are proofs in reduction-based cryptography any better?  (By
> > reduction-based crypto, I mean the complexity-theoretic stuff that uses
> > concrete reductions, with no random oracles.)  I claim "yes", but I have
> > to be a little careful in justifying this answer.  It's true that when
> > you hear about a "proof of security" in the context of reduction-based
> > analysis, typically there is some computational assumption, like
> > that factoring is hard.  In some sense the word "proof" can still be
> > deceptive in the reduction-based setting, since there's still this
> > unproven assumption.  However, it is arguably a little less deceptive,
> > because at least we have a well-specified assumption.
>
> One the other hand, such reduction-based proofs make only asymptotic
> statements, since the underlying assumptions (such as intractability
> of factoring) are asymptotic.

I see two types of "reduction-based" cryptographic proofs.
In one case you use asymptotic analysis, in the other you use concrete
security analysis.  The example that David gave, with factoring, fits
in the asymptotic case, in which case I agree with Bodo that this is
no better than working in the random oracle model for example.
But I think (?) that David might have been thinking about the concrete
security analysis case, which usually provides for a better proof in my
point
of view.
Here I'm thinking about the concrete security proofs for HMAC,
CBC-MAC, etc., which assume very specific things about the underlying
primitives (for example that the compression function an iterated hash
function, or a block cipher, acts as a good finite input-length PRF).
For example, I prefer to only need to assume that the compression function
of SHA1 acts as a good good PRF, then to assume that SHA1 used in
some way acts as a random oracle.

It's true that at the end we are always assuming something, unless
we have some information-theoretic proof (unconditional security).
But you need to be careful here as well, even some proclaimed
"unconditionally secure" scheme can sometimes assume something
(for example, some unconditionally secure multiparty computation
schemes assume a secure channel and other stuff...).

--Anton
--Anton

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



From mailnull@www1.ietf.org  Thu Mar 27 12:00:14 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA07888
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 12:00:14 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RHLZU01647
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 12:21:35 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHLZO01644
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 12:21:35 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA07805
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 11:59:42 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHH2O01382;
	Thu, 27 Mar 2003 12:17:02 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHGVO01341
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 12:16:31 -0500
Received: from hoemail1.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA07594
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 11:54:39 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail1.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2RGuww12981
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 11:56:58 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2RGuvu27433; Thu, 27 Mar 2003 11:56:57 -0500 (EST)
Cc: cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2RGusS27409; Thu, 27 Mar 2003 11:56:54 -0500 (EST)
Message-ID: <3E832D47.8080909@bell-labs.com>
Date: Thu, 27 Mar 2003 11:56:39 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Wagner <daw@mozart.cs.berkeley.edu>
Original-CC: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <3E82289D.6040701@bell-labs.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David, I asked:

>>>> 1. If a Secure Hash function is build of AES block cipher,
>>>>   will you accept it as Random Oracle (i.e. would you
>>>>   extend to it your "mildly questionable" status you
>>>>   grant SHA)?

and you replied:

>>> If we have a proof that your F behaves like a random oracle
                  **********************************************

>>> (or is good for IKE when only plain DH, but not DDH, holds),
>>> assuming AES can be modelled as an ideal cipher, then my answer
>>> would be: Yes.

so I asked

>> Is there a proof that SHA-1 behaves like a random oracle?

and you say

 > No, there's no proof; it's not something that can be proven.
 > You're kidding, right?

So why do you want a proof that another secure hash (AES-based)
behaves like a random oracle?

As for kidding, I'm just trying to get "equal treatment" for SHA
and AES-based crypto hash - assuming that proofs are brought
regarding colision resistance and non-invertibility of
AES-based hash. [Note: AES key sxpansion design includes
resistance to attacks when the cipher is used as a compression
function of a hash.]


Regarding references to the original papers - I wouldn't
mind. I'd also gratefully accept a Postscript version of
any paper you think might be bneficial for me to read on
the subject (or PDF version :-). [Probably I know some
of what's in there, but certainly don't know all of
it, and would like to learn more.]



> What's the black-box assumption?  Is it different from the
> ideal cipher model?  I'm not familiar with this distinction.

As far as I know, black box model of block ciphers dates back to
Shannon [Communication Theory of Secrecy Systems, Bell Systems
Technical Journal, 28(4):656-715, 1949]...

In essence it means: treat the block cipher as a black box - you
know nothing of its internals (and have no access to them, so
you cannot mount an attack which is specific to the internal
structure of this cipher).

IMHO it differs from the ideal cipher model in the following:
ideal cipher assumes that if your N-bit key has only K bits
of randomness, your cipher is still K-bit secure. Black
box doesn't make this assumption.

Also, I was given an excellent paper (Black, Rogaway, Shrimpton)
that offers security proofs for various crypto hash constructs
based on AES. I will gladly share it with you if you'd like.

Regards,
Uri.

P.S. Thanks to all those who commented and is commenting on the
proposed construct. I'm utilizing the comments and am modifying
it to make it both better and secure.

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



From mailnull@www1.ietf.org  Thu Mar 27 12:35:38 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA09326
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 12:35:38 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RHv0D05081
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 12:57:00 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHv0O05078
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 12:57:00 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA09256
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 12:35:07 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHu7O05003;
	Thu, 27 Mar 2003 12:56:07 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RHrMO04856
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 12:53:22 -0500
Received: from igw2.watson.ibm.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08991
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 12:31:29 -0500 (EST)
Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57])
	by igw2.watson.ibm.com (8.11.6/8.11.4) with ESMTP id h2RHXoT225084
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 12:33:50 -0500
Received: from halevi.watson.ibm.com (halevi.watson.ibm.com [9.2.16.46])
	by sp1n293en1.watson.ibm.com (8.11.6/8.11.4) with ESMTP id h2RHXnl95732
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 12:33:50 -0500
Received: from localhost (localhost [[UNIX: localhost]])
	by halevi.watson.ibm.com (8.11.6/8.11.6/2001/12/13) id h2RHXoW22892
	for cfrg@ietf.org; Thu, 27 Mar 2003 12:33:50 -0500
Content-Type: text/plain;
  charset="iso-8859-1"
From: Shai Halevi <shaih@watson.ibm.com>
Organization: IBM
To: cfrg@ietf.org
Date: Thu, 27 Mar 2003 12:33:49 -0500
User-Agent: KMail/1.4.1
References: <20030327170005.31387.89137.Mailman@www1.ietf.org>
In-Reply-To: <20030327170005.31387.89137.Mailman@www1.ietf.org>
MIME-Version: 1.0
Message-Id: <200303271233.49698.shaih@watson.ibm.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by www1.ietf.org id h2RHrMO04857
Subject: [Cfrg] reductions vs. random-oracles
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

On Thursday 27 March 2003 13:58:43 +0100, Bodo Moeller wrote:
> [...]
> It should be noted that all such counterexamples make statements about
> *asymptotic* security: they assume that a fixed description of the
> hash function is used across all security parameters and exploit
> anomalies in this setting.  

That's just not true. These examples have nothing to do with "asymptotic" 
vs. "concrete" security. 

> But to me, the random oracle methodology
> is something that you can resort to if you want to *avoid* asymptotic
> security considerations.  Please read on: 
> [...]
> One the other hand, such reduction-based proofs make only asymptotic
> statements, since the underlying assumptions (such as intractability
> of factoring) are asymptotic.  

That's not true either. The reduction typically relates the complexity of 
breaking your scheme to the complexity of solving the underlying 
problem. And the underlying assumptions can be concrete if you want it 
to be (i.e., nothing stops you from assuming that factoring a 1024-bit 
integer takes at least 2^xxx computational steps and 2^yyy space, or 
whatever). 

> [...]
> Either methodology has its inherent problems.  [...] 
> A more positive view is to
> acknowledge that in both cases we end up relying on heuristical
> considerations, and that we cannot get far if we are not willing to do
> so.

Sigh. I guess that this is already in the realm of philosophy, but let me 
try to answer it anyway. 

Security reductions are just that: they reduce your belief in the 
security of your cryptosystem, to the belief that a well-specified 
problem (with sell-specified parameters) cannot be solved using 
"reasonable resources". There are no heuristics involved here. (Of 
course, you can always argue that the belief in the infeasability of 
solving the problem is only a heuristic.)  

On the other hand, proofs (or reductions) in the random oracle model 
involve the heuristic assumption that the attacker only uses the hash 
function as a "black box" (and then some assumptions on top of that). 
This is an exceedingly successful heuristic, however. 

Regards, 

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



From mailnull@www1.ietf.org  Thu Mar 27 12:49:44 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA09928
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 12:49:44 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RIB6W06665
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 13:11:06 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIB6O06662
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 13:11:06 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA09893
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 12:49:12 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIA4O06549;
	Thu, 27 Mar 2003 13:10:04 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RI9CO06480
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 13:09:12 -0500
Received: from cdc-info.cdc.informatik.tu-darmstadt.de (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA09669
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 12:47:18 -0500 (EST)
Received: from cdc-ws13.cdc.informatik.tu-darmstadt.de (cdc-ws13 [130.83.23.73])
	by cdc-info.cdc.informatik.tu-darmstadt.de (Postfix) with ESMTP
	id 4A3D92C8F; Thu, 27 Mar 2003 18:49:39 +0100 (MET)
Received: (from moeller@localhost)
	by cdc-ws13.cdc.informatik.tu-darmstadt.de (8.11.6+Sun/8.11.6) id h2RHnbQ14502;
	Thu, 27 Mar 2003 18:49:37 +0100 (MET)
Date: Thu, 27 Mar 2003 18:49:37 +0100
From: Bodo Moeller <moeller@cdc.informatik.tu-darmstadt.de>
To: Anton Stiglic <astiglic@okiok.com>
Cc: cfrg@ietf.org, David Wagner <daw@cs.berkeley.edu>
Subject: Re: [Cfrg] AES-based PRF - comment please
Message-ID: <20030327184937.A13483@cdc.informatik.tu-darmstadt.de>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com> <5.1.0.14.2.20030327132222.021c8df0@203.30.171.11> <b5tott$job$1@abraham.cs.berkeley.edu> <20030327135842.B12834@cdc.informatik.tu-darmstadt.de> <007e01c2f482$58d6e780$7aa86395@p1038mobile>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <007e01c2f482$58d6e780$7aa86395@p1038mobile>; from astiglic@okiok.com on Thu, Mar 27, 2003 at 12:00:14PM -0500
Content-Transfer-Encoding: 8bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

On Thu, Mar 27, 2003 at 12:00:14PM -0500, Anton Stiglic wrote:
> From: "Bodo Moeller" <moeller@cdc.informatik.tu-darmstadt.de>
>> On Thu, Mar 27, 2003 at 02:50:37AM +0000, David Wagner wrote:

>>> Are proofs in reduction-based cryptography any better?  (By
>>> reduction-based crypto, I mean the complexity-theoretic stuff that uses
>>> concrete reductions, with no random oracles.)  I claim "yes", but I have
>>> to be a little careful in justifying this answer.  It's true that when
>>> you hear about a "proof of security" in the context of reduction-based
>>> analysis, typically there is some computational assumption, like
>>> that factoring is hard.  In some sense the word "proof" can still be
>>> deceptive in the reduction-based setting, since there's still this
>>> unproven assumption.  However, it is arguably a little less deceptive,
>>> because at least we have a well-specified assumption.

>> One the other hand, such reduction-based proofs make only asymptotic
>> statements, since the underlying assumptions (such as intractability
>> of factoring) are asymptotic.

> I see two types of "reduction-based" cryptographic proofs.
> In one case you use asymptotic analysis, in the other you use concrete
> security analysis.
[...]
> Here I'm thinking about the concrete security proofs for HMAC,
> CBC-MAC, etc., which assume very specific things about the underlying
> primitives (for example that the compression function an iterated hash
> function, or a block cipher, acts as a good finite input-length PRF).

Good that you mention this.  This reduction-based concrete-security
approach is a style of proof that I prefer, but I don't quite agree
that in such proofs you assume very specific things about the
underlying primitives in the way that asymptotic analysis does.
Saying that a function "acts as a good PRF" rather makes assumptions
about the adversary -- namely that the adversary cannot well
distinguish the function from a random one.

To justify such assumptions (after all, what we really want is a
security result that applies to all adversaries that one could
encounter), one might sometimes use asymptotic security
considerations, or a random oracle assumption.  The high-level view of
the reduction-based concrete-security approach keeps the problems of
these methodologies out of view, but does not really avoid them.


> It's true that at the end we are always assuming something, unless
> we have some information-theoretic proof (unconditional security).

Even information-theoretic proofs such as the one for the Vernam
encryption scheme do not really apply to deployed systems.  They will
typically assume that some key  K  is perfectly random, whereas in
actual implementations, there will usually be some bias.  However
miniscule it may be, this means that ciphertexts will reveal at least
a tiny amount of information on the corresponding plaintexts.
Typically the bias will be small enough so that it does not really
matter at all, and no-one will know the details about the bias that
would be necessary to exploit it; but we should keep in mind that
perfect information-theoretical security remains a mathematical utopia
an epsilon away.


-- 
Bodo Möller <moeller@cdc.informatik.tu-darmstadt.de>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 13:34:32 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11555
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 13:34:31 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RIttr09449
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 13:55:55 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIttO09446
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 13:55:55 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11482
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 13:34:00 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIsDO09359;
	Thu, 27 Mar 2003 13:54:13 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIrYO09331
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 13:53:34 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11368
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 13:31:39 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2RI8wJ30195
	for cfrg@ietf.org; Thu, 27 Mar 2003 10:08:58 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 27 Mar 2003 18:08:58 GMT
Organization: University of California, Berkeley
Lines: 46
Distribution: isaac
Message-ID: <b5venq$t9m$2@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <20030327135842.B12834@cdc.informatik.tu-darmstadt.de> <007e01c2f482$58d6e780$7aa86395@p1038mobile> <20030327184937.A13483@cdc.informatik.tu-darmstadt.de>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048788538 30006 128.32.153.211 (27 Mar 2003 18:08:58 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 27 Mar 2003 18:08:58 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Bodo Moeller  wrote:
>Saying that a function "acts as a good PRF" rather makes assumptions
>about the adversary -- namely that the adversary cannot well
>distinguish the function from a random one.

Hmm.  Well, I guess that's not how I interpret such statements.  When I
say "AES-XCBC-MAC makes a good PRF", I really mean that there is *no*
attack.  This is different from assuming that if there is an attack, my
specific enemies can't find it.  Thus, saying "AES-XCBC-MAC is a good
PRF" is (to me) not making assumptions about my adversary's state of
knowledge; for me, it is making assumptions about an inherent property
of AES-XCBC-MAC.  Those assumptions might be either true or false,
but at least they are specific.  That's one viewpoint, anyway.

It is true that anytime I use computational cryptosystems (rather
than information-theoretic cryptosystem), I will have to make some
assumptions about the resources available to my adversary.  For instance,
I might assume that my adversary will not spend more than $1 billion to
break my system.  Fortunately, I believe these assumptions can be made
very plausible.  For instance, if we use modern 128-bit block ciphers,
we end up with assumptions like that the adversary can't do 2^100 steps
of computation -- a very believable assumption.

>Even information-theoretic proofs such as the one for the Vernam
>encryption scheme do not really apply to deployed systems.  They will
>typically assume that some key  K  is perfectly random, whereas in
>actual implementations, there will usually be some bias.

Yes, it's true.  Good point.

But I guess the partial good news is that this is a different sort of
assumption.  It is an assumption that our mathematical model faithfully
models the real world.  That has a slightly different character from
the assumption that AES is a PRP with such-and-such parameters or that
factoring is this hard for 1024-bit RSA composites.  Anytime you use
mathematics, you have to check whether your mathematical model is accurate
-- that's unavoidable -- but the complexity-theoretic assumptions are
something else.

In short, computational-theoretic cryptosystems have to make two
assumptions (the complexity-theoretic assumption *and* the modelling
assumption), while information-theoretic cryptosystems have to make one
assumption (the modelling assumption).  This does seem like a potential
advantage for information-theoretic cryptography, even if "proofs of
information-theoretic security" aren't an absolutely iron-clad guarantee
of security for your deployed cryptosystem.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 13:34:44 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11573
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 13:34:44 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RIu8Z09470
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 13:56:08 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIu7O09467
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 13:56:07 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11507
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 13:34:13 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RImAO09030;
	Thu, 27 Mar 2003 13:48:10 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RIhXO08777
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 13:43:33 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA10888
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 13:21:39 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2RHwvQ30035
	for cfrg@ietf.org; Thu, 27 Mar 2003 09:58:57 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 27 Mar 2003 17:58:57 GMT
Organization: University of California, Berkeley
Lines: 12
Distribution: isaac
Message-ID: <b5ve51$t9m$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <5.1.0.14.2.20030327132222.021c8df0@203.30.171.11> <b5tott$job$1@abraham.cs.berkeley.edu> <20030327135842.B12834@cdc.informatik.tu-darmstadt.de>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048787937 30006 128.32.153.211 (27 Mar 2003 17:58:57 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 27 Mar 2003 17:58:57 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Bodo Moeller  wrote:
>One the other hand, such reduction-based proofs make only asymptotic
>statements, since the underlying assumptions (such as intractability
>of factoring) are asymptotic.

I wasn't trying to distinguish between asymptotic vs. not.  However,
I'd count both "concrete security" results and "asymptotic" results
within the category of reduction-based proofs.  I certain agree that
concrete security results tend to be much more useful in practice
than asymptotic results.  So, maybe I should amend my statement to
say that reduction-based concrete security is my preferred paradigm,
when applicable.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 14:23:49 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA14016
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 14:23:49 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RJjD813650
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 14:45:13 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RJjDO13647
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 14:45:13 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA14008
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 14:23:17 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RJgLO13466;
	Thu, 27 Mar 2003 14:42:21 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RJdEO13248
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 14:39:14 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA13686
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 14:17:17 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2RIsat30725
	for cfrg@ietf.org; Thu, 27 Mar 2003 10:54:36 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 27 Mar 2003 18:54:36 GMT
Organization: University of California, Berkeley
Lines: 43
Distribution: isaac
Message-ID: <b5vhdc$trm$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com> <3E832D47.8080909@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048791276 30582 128.32.153.211 (27 Mar 2003 18:54:36 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 27 Mar 2003 18:54:36 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>David Wagner wrote:
>>>> If we have a proof that your F behaves like a random oracle,
>>>> [then I'll accept the claim that it behaves as a random oracle]
[and later]
> > No, there's no proof [that SHA-1 behaves like a random oracle]
>
>So why do you want a proof that another secure hash (AES-based)
>behaves like a random oracle?
>[...] I'm just trying to get "equal treatment" for SHA
>and AES-based crypto hash - [...]

Yes, it sounds horribly unfair, doesn't it?  But it's not.

After years of scrutiny, noone has found any troubling anomalies
in SHA.  This gives us some reason to believe that SHA1 `behaves
like a random oracle'.  So I'd be willing to accept this ``assumption''.

But we can't say the same thing about, say, 3DES-XCBC-MAC.
We don't have years of cryptanalysis on 3DES-XCBC-MAC.  There
is corresponding argument we can make to justify such an ``assumption''
about 3DES-XCBC-MAC.


P.S. When I say that `function F behaves like a random oracle',
strictly speaking, I am being awfully sloppy with words.  What I
mean by this turn of expression is something like the following:
if you give me a proof of security for IKE in the random oracle model
when IKE's hash was replaced by a random oracle, then I'll be willing
to believe that this is evidence for the security of IKE in real life
when IKE's hash is instantiated by F.

Note that I don't take anything on blind faith.  To justify the
latter belief about IKE, I want to have some evidence that F behaves,
in some intuitive sense, "like a random function" as much as possible.
Thus, SHA1 would fit the bill, because cryptanalysts have tried
really hard to find any anomaly that indicates it is not behaving
like a random function, and they've all failed.  However, 3DES-XCBC-MAC
would not fit the bill, because we can't make such a statement.  If
we wanted to use 3DES-XCBC-MAC as our F, we'd better have some other
way to justify our faith in it, and the natural way is to ask for a
proof that 3DES-XCBC-MAC "behaves like a random oracle" under some
appropriate model or some plausible assumptions.
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 15:38:40 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18332
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 15:38:40 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RL06r19738
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 16:00:06 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RL06O19735
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 16:00:06 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18319
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 15:38:04 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RKvsO19555;
	Thu, 27 Mar 2003 15:57:54 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RKsCO19280
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 15:54:12 -0500
Received: from hoemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18197
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 15:32:14 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by hoemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2RKYX713931
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 15:34:34 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2RKYXj13590; Thu, 27 Mar 2003 15:34:33 -0500 (EST)
Cc: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2RKYUS13579; Thu, 27 Mar 2003 15:34:30 -0500 (EST)
Message-ID: <3E836046.4040600@bell-labs.com>
Date: Thu, 27 Mar 2003 15:34:14 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Wagner <daw@mozart.cs.berkeley.edu>
Original-CC: "Crypto Forum Research Group (CFRG)" <cfrg@ietf.org>
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com> <3E832D47.8080909@bell-labs.com> <b5vhdc$trm$1@abraham.cs.berkeley.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David Wagner wrote:
>>>No, there's no proof [that SHA-1 behaves like a random oracle]

Actually, I'd like the full quote here:

"You're kidding, right?  No, there's no proof; it's
  not something that can be proven."

So asking for a *proof* that something behaves like a random
oracle (as you do below) does sound "horribly unfair". Because
in essence you're saying that you're not going to accept AES
no matter what, since it hasn't been under scrutiny for as
many years as SHA-1 has been.

> After years of scrutiny, noone has found any troubling anomalies
> in SHA.  This gives us some reason to believe that SHA1 `behaves
> like a random oracle'.  So I'd be willing to accept this ``assumption''.

OK. That part I understand and accept.

> But we can't say the same thing about, say, 3DES-XCBC-MAC.
> We don't have years of cryptanalysis on 3DES-XCBC-MAC.  There
> is corresponding argument we can make to justify such an ``assumption''
> about 3DES-XCBC-MAC.

A reasonable (to me) justification (for the sake of the argument and
for this example) would be:

If both

(a) there's no known attack on the underlying primitive (3DES), and
(b) XCBC-MAC is not vulnerable to generic attack (when the underlying
     primitive is modelled as black box cipher [or stronger - as ideal
     cipher],

then one can assume that 3DES-XCBC-MAC "behaves like a random oracle".

If at least one of the above fails - then of course the conclusion
doesn't hold.

So for 3DES-XCBC-MAC (where 3DES, if memory serves, falls a victim
to related-key attack), the conclusion doesn't hold. For AES though,
which withstand this and other attacks, the conclusion may hold.


> P.S. When I say that `function F behaves like a random oracle',
> strictly speaking, I am being awfully sloppy with words.  What I
> mean by this turn of expression is something like the following:
> if you give me a proof of security for IKE in the random oracle model
> when IKE's hash was replaced by a random oracle, then I'll be willing
> to believe that this is evidence for the security of IKE in real life
> when IKE's hash is instantiated by F.

Sure. I remember your "either random oracle and DH, or PRF and DDH".

> Note that I don't take anything on blind faith.  To justify the
> latter belief about IKE, I want to have some evidence that F behaves,
> in some intuitive sense, "like a random function" as much as possible.

Yes, this is understandable. And if (a) the construct can be proven
under reasonable assumptions - such as black box cipher model, and
(b) the cipher itself shows resistance to all known attacks - I'd
say it's a reasonable evidence.


> Thus, SHA1 would fit the bill, because cryptanalysts have tried
> really hard to find any anomaly that indicates it is not behaving
> like a random function, and they've all failed.  However, 3DES-XCBC-MAC
> would not fit the bill, because we can't make such a statement. 

However, in AES cryptanalysis have been trying really hard to find
any anomaly, and couldn't so far. (As far as I know, the best
result - Related Key Attack - didn't progress beyond 9th
round.)

 > If we wanted to use 3DES-XCBC-MAC as our F, we'd better have some other
> way to justify our faith in it, and the natural way is to ask for a
> proof that 3DES-XCBC-MAC "behaves like a random oracle" under some
> appropriate model or some plausible assumptions.

How should I correlate the last statement with your previous
"it's not something that can be proven", and with the paper
mentioned by Greg that *proves* that there can be no such
proof?

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



From mailnull@www1.ietf.org  Thu Mar 27 15:47:14 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18528
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 15:47:14 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RL8fB20992
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 16:08:41 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RL8fO20989
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 16:08:41 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18515
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 15:46:43 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RL74O20171;
	Thu, 27 Mar 2003 16:07:04 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RL6OO20080
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 16:06:24 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18464
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 15:44:26 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2RKLjr31856
	for cfrg@ietf.org; Thu, 27 Mar 2003 12:21:45 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 27 Mar 2003 20:21:44 GMT
Organization: University of California, Berkeley
Lines: 66
Distribution: isaac
Message-ID: <b5vmgo$v16$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <3E832D47.8080909@bell-labs.com> <b5vhdc$trm$1@abraham.cs.berkeley.edu> <3E836046.4040600@bell-labs.com>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048796504 31782 128.32.153.211 (27 Mar 2003 20:21:44 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 27 Mar 2003 20:21:44 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Uri Blumenthal  wrote:
>David Wagner wrote:
>> But we can't say the same thing about, say, 3DES-XCBC-MAC.
>> We don't have years of cryptanalysis on 3DES-XCBC-MAC.  There
>> is [no] corresponding argument we can make to justify such an ``assumption''
>> about 3DES-XCBC-MAC.
>
>A reasonable (to me) justification (for the sake of the argument and
>for this example) would be:
>
>If both
>
>(a) there's no known attack on the underlying primitive (3DES), and
>(b) XCBC-MAC is not vulnerable to generic attack (when the underlying
>     primitive is modelled as black box cipher [or stronger - as ideal
>     cipher],
>
>then one can assume that 3DES-XCBC-MAC "behaves like a random oracle".
>
>If at least one of the above fails - then of course the conclusion
>doesn't hold.


Yes, I agree.

(Well, in (a), we must be more precise about what we mean by
"attack".  In this case, it's not enough that 3DES be secure as
a PRP; it must `behave like an ideal cipher'.)


>So for 3DES-XCBC-MAC (where 3DES, if memory serves, falls a victim
>to related-key attack), the conclusion doesn't hold.


Right.  3DES doesn't `behave like an ideal cipher'.
(That's one of the reasons why I picked this example.


>For AES though,
>which withstand this and other attacks, the conclusion may hold.


Right.

If we're willing to assume (a) for AES, then all that remains
is to prove (b) for AES.  Do you see why I asked for proof?


>However, in AES cryptanalysis have been trying really hard to find
>any anomaly, and couldn't so far. (As far as I know, the best
>result - Related Key Attack - didn't progress beyond 9th
>round.)


I believe most cryptanalysis focus on whether AES is a PRP.  I think the
question of whether AES `behaves like an ideal cipher' has gotten less
scrutiny.  And when AES has been scrutinized against related-key attacks,
related-key attacks have been found to be slightly more powerful than
non-related-key attacks (for instance, in our FSE paper, related-key
attacks penetrate one round further than non-related-key attacks).
That's why I'm mildly skeptical about the latter assumption.

But I agree.  Given the need for an AES-based cryptosystem, I can see
why we'd be willing to live with a lower degree of confidence in the
"assumption" that AES `behaves like an ideal cipher'.  It seems plausible
to believe this "assumption".
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 16:46:26 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA20864
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 16:46:26 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2RM7su26050
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 17:07:54 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RM7sO26039
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 17:07:54 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA20665
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 16:43:42 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RM4DO25114;
	Thu, 27 Mar 2003 17:04:13 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RM3gO25063
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 17:03:42 -0500
Received: from auemail2.firewall.lucent.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA20497
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 16:41:42 -0500 (EST)
Received: from nwmail.wh.lucent.com (h135-5-40-100.lucent.com [135.5.40.100])
	by auemail2.firewall.lucent.com (Switch-2.2.5/Switch-2.2.0) with ESMTP id h2RLi4C06606
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 16:44:04 -0500 (EST)
Received: by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2RLi3n08688; Thu, 27 Mar 2003 16:44:03 -0500 (EST)
Cc: cfrg@ietf.org
Received: from bell-labs.com by nwmail.wh.lucent.com (8.11.6+Sun/EMS-1.5 sol2)
	id h2RLi0S08621; Thu, 27 Mar 2003 16:44:00 -0500 (EST)
Message-ID: <3E837090.6020901@bell-labs.com>
Date: Thu, 27 Mar 2003 16:43:44 -0500
From: Uri Blumenthal <uri@bell-labs.com>
Organization: Lucent Tehcnologies / Bell Labs
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en, zh-cn, ru, de, he
MIME-Version: 1.0
To: David Wagner <daw@mozart.cs.berkeley.edu>
Original-CC: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <3E832D47.8080909@bell-labs.com> <b5vhdc$trm$1@abraham.cs.berkeley.edu> <3E836046.4040600@bell-labs.com> <b5vmgo$v16$1@abraham.cs.berkeley.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

David Wagner wrote:
> (Well, in (a), we must be more precise about what we mean by
> "attack".  In this case, it's not enough that 3DES be secure as
> a PRP; it must `behave like an ideal cipher'.)

Yes. PRP doesn't take into account key schedule weaknesses. Right?


>>So for 3DES-XCBC-MAC (where 3DES, if memory serves, falls a victim
>>to related-key attack), the conclusion doesn't hold. 
> 
> Right.  3DES doesn't `behave like an ideal cipher'.
> (That's one of the reasons why I picked this example.

:-) I know.

>> For AES though, which withstand this and other attacks,
 >> the conclusion may hold.
> 
> Right.
> 
> If we're willing to assume (a) for AES, then all that remains
> is to prove (b) for AES.  Do you see why I asked for proof?

Sure. But only now I'm getting the understanding of exactly *what*
you want to see proven.


>>However, in AES cryptanalysis have been trying really hard to find
>>any anomaly, and couldn't so far. (As far as I know, the best
>>result - Related Key Attack - didn't progress beyond 9th
>>round.) 
> 
> I believe most cryptanalysis focus on whether AES is a PRP.  I think the
> question of whether AES `behaves like an ideal cipher' has gotten less
> scrutiny. 

True. Though the designers of AES explicitly mentioned that their
key expansion was created with Related Key Attack in mind.

 > And when AES has been scrutinized against related-key attacks,
> related-key attacks have been found to be slightly more powerful than
> non-related-key attacks (for instance, in our FSE paper, related-key
> attacks penetrate one round further than non-related-key attacks).

Yes, I remember this paper - you were one of the authors.
But even this attack (which was the best of the existing
ones) couldn't penetrate the whole cipher, right? So the
cipher shows tight but secure design (without a lot of
margin, I admit)?

> That's why I'm mildly skeptical about the latter assumption.

I understand.

> But I agree.  Given the need for an AES-based cryptosystem, I can see
> why we'd be willing to live with a lower degree of confidence in the
> "assumption" that AES `behaves like an ideal cipher'.  It seems
 > plausible to believe this "assumption".

And I'm putting together a better construct - the one that has
proofs attached to it (with AES modelled as black box, and
obtaining collision resistance guarantees and non-invertibility
guarantees - the last one because block cipher itself unlike
hash may be inverted, so we need to ensure the created hash
construct can't be inverted).

Thanks!

Regards,
Uri.

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



From mailnull@www1.ietf.org  Thu Mar 27 19:23:05 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA28045
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 19:23:05 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2S0iZh05260
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 19:44:35 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2S0iZO05257
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 19:44:35 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA28013
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 19:22:33 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2S0hIO05207;
	Thu, 27 Mar 2003 19:43:18 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2S0g3O05170
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 19:42:03 -0500
Received: from mailout.zetnet.co.uk (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA27950
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 19:20:01 -0500 (EST)
Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk)
	by mailout.zetnet.co.uk with esmtp (Exim 3.36 #1 (Debian))
	id 18yhdX-000719-00
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 00:22:23 +0000
Received: from zetnet.co.uk (bts-0940.dialup.zetnet.co.uk [194.247.51.172])
	by zetnet.co.uk (8.12.3/8.12.3/Debian -4.sec) with ESMTP id h2S0MK8P022034
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 00:22:21 GMT
Message-ID: <3E8434AA.C1B4AD8A@zetnet.co.uk>
Date: Fri, 28 Mar 2003 11:40:26 +0000
From: David Hopwood <david.hopwood@zetnet.co.uk>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en-GB,en,fr-FR,fr,de-DE,de,ru
MIME-Version: 1.0
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
References: <200303240545.AAA37022@ornavella.watson.ibm.com> <4.3.2.7.2.20030325112101.01ae0518@mira-sjcm-3.cisco.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----

Scott Fluhrer wrote:
> Here is a counter-proposal for an AES-based PRF:
[...]
> 1. Assign:
>      K = The first k bits of S.
>      K2 = The remaining bits of S
>      M = Length(K2) || K2 || N
>         where Length(K2) is the length of K2 in bits, expressed as a 32 bit
> quantity in Network order.
>         M will be looked upon as a concatenation of n blocks, M[1], ...,
> M[n], where M[1],...,M[n-1] are b bits long, and M[n] is between 1 and b
> bits long.
> 
> 2 Derive 3 k-bit keys (K1, K2 and K3) from the key K, as follows:
>        K1 = E*_k(0x0101...01)
>        K2 = E*_k(0x0202...02)
>        K3 = E*_k(0x0303...03)

[ITYM  E*_K(...)]

If the entropy of S is not uniformly distributed, then any provable security
properties in the standard model are lost. In the extreme case, consider what
happens if K is known or chosen (which can possible even if S has high entropy
overall); then K1..3 are also known. OTOH, if we analyse E as an ideal cipher
then this seems to still be OK. I'm not sure to what extent it is possible to
reduce reliance on the ideal cipher model for a block-cipher-based PRF, while
allowing keys that are not entirely random.

(Note that many protocols do provide key inputs that are not entirely random to
things that they call "PRFs". David Wagner described the situation for IKE; I'd
just like to point out that in that case the key is actually an *encoding* of
g^xy, with some zero high-order bits.)

[...]
> 6. Return the OFB output, with a zero starting block, of the key X, namely
> E*_X(0x00...00)
>     This step is identical to step 5 of Uri's proposal.

If E*_k(X) used CTR mode with starting nonce X, then computing large outputs
would be parallelisable and random-access. This shouldn't affect security, and
steps 2..5 are still a generalisation of XCBC-MAC (I think; this should be
checked).

Either the order of bits within bytes should be specified (big-endian), or
S and N should be restricted to byte strings. I would recommend the latter.

- -- 
David Hopwood <david.hopwood@zetnet.co.uk>

Home page & PGP public key: http://www.users.zetnet.co.uk/hopwood/
RSA 2048-bit; fingerprint 71 8E A6 23 0E D3 4C E5  0F 69 8C D4 FA 66 15 01
Nothing in this message is intended to be legally binding. If I revoke a
public key but refuse to specify why, it is because the private key has been
seized under the Regulation of Investigatory Powers Act; see www.fipr.org/rip


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBPoBYIDkCAxeYt5gVAQG6KggAu9R2R9Kcm9rVXU+yPT/JmmqXzEmv6VUI
uu+OoaMVHxAbNBO/gGmuQx0Bb8Hnp7utKwy8nJ20bLW4F0IFsYixStyiVEGkH1bn
6V/+ATMHyWQVMnB75a12eSN8WNa6Y2RzE7YZpmfArTcHfXP0hY92n4ip47y87hp7
yFwEGP02jLr8seHMttWOPhQFtgnPOXOOv9cQaJhnanYTBdfDJfIeCMHinQYcLKLu
aRMIUyk7S59wW7SqFGKSeVZRkEasgACj+1XJfDjvFsm8bk7U+mEHbmUM8rm5DiSL
lzcXW/Q7WBDaYBc8mjMf9kGkSpoT0JpX78aP8Vd2BV54V4UoAPH47g==
=w51s
-----END PGP SIGNATURE-----
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Thu Mar 27 19:35:52 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA28583
	for <cfrg-archive@odin.ietf.org>; Thu, 27 Mar 2003 19:35:52 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2S0vNU06096
	for cfrg-archive@odin.ietf.org; Thu, 27 Mar 2003 19:57:23 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2S0vMO06091
	for <cfrg-web-archive@optimus.ietf.org>; Thu, 27 Mar 2003 19:57:22 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA28568
	for <cfrg-web-archive@ietf.org>; Thu, 27 Mar 2003 19:35:20 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2S0u8O05971;
	Thu, 27 Mar 2003 19:56:08 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2S0t5O05871
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 19:55:05 -0500
Received: from syd-msg-core-1.cisco.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA28495
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 19:33:02 -0500 (EST)
Received: from sfluhrer-w2k.cisco.com (localhost [127.0.0.1])
	by syd-msg-core-1.cisco.com (8.12.2/8.12.6) with ESMTP id h2S0ZFIQ025417;
	Fri, 28 Mar 2003 11:35:17 +1100 (EST)
Message-Id: <4.3.2.7.2.20030327163247.01b3e558@mira-sjcm-3.cisco.com>
X-Sender: sfluhrer@mira-sjcm-3.cisco.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Thu, 27 Mar 2003 16:35:17 -0800
To: David Hopwood <david.hopwood@zetnet.co.uk>
From: Scott Fluhrer <sfluhrer@cisco.com>
Subject: Re: [Cfrg] AES-based PRF - comment please
Cc: cfrg@ietf.org
In-Reply-To: <3E8434AA.C1B4AD8A@zetnet.co.uk>
References: <200303240545.AAA37022@ornavella.watson.ibm.com>
 <4.3.2.7.2.20030325112101.01ae0518@mira-sjcm-3.cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

At 03:40 AM 3/28/2003, David Hopwood wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>
>Scott Fluhrer wrote:
> > Here is a counter-proposal for an AES-based PRF:
>[...]
> > 1. Assign:
> >      K = The first k bits of S.
> >      K2 = The remaining bits of S
> >      M = Length(K2) || K2 || N
> >         where Length(K2) is the length of K2 in bits, expressed as a 32 bit
> > quantity in Network order.
> >         M will be looked upon as a concatenation of n blocks, M[1], ...,
> > M[n], where M[1],...,M[n-1] are b bits long, and M[n] is between 1 and b
> > bits long.
> >
> > 2 Derive 3 k-bit keys (K1, K2 and K3) from the key K, as follows:
> >        K1 = E*_k(0x0101...01)
> >        K2 = E*_k(0x0202...02)
> >        K3 = E*_k(0x0303...03)
>
>[ITYM  E*_K(...)]
>
>If the entropy of S is not uniformly distributed, then any provable security
>properties in the standard model are lost.

Yes, I realized that after I posted it (and David Wagner also essentially 
made the same point).

>In the extreme case, consider what
>happens if K is known or chosen (which can possible even if S has high entropy
>overall); then K1..3 are also known. OTOH, if we analyse E as an ideal cipher
>then this seems to still be OK. I'm not sure to what extent it is possible to
>reduce reliance on the ideal cipher model for a block-cipher-based PRF, while
>allowing keys that are not entirely random.
>
>(Note that many protocols do provide key inputs that are not entirely 
>random to
>things that they call "PRFs". David Wagner described the situation for 
>IKE; I'd
>just like to point out that in that case the key is actually an *encoding* of
>g^xy, with some zero high-order bits.)
>
>[...]
> > 6. Return the OFB output, with a zero starting block, of the key X, namely
> > E*_X(0x00...00)
> >     This step is identical to step 5 of Uri's proposal.
>
>If E*_k(X) used CTR mode with starting nonce X, then computing large outputs
>would be parallelisable and random-access. This shouldn't affect security, and
>steps 2..5 are still a generalisation of XCBC-MAC (I think; this should be
>checked).
>
>Either the order of bits within bytes should be specified (big-endian), or
>S and N should be restricted to byte strings. I would recommend the latter.
>
>- --
>David Hopwood <david.hopwood@zetnet.co.uk>
>
>Home page & PGP public key: http://www.users.zetnet.co.uk/hopwood/
>RSA 2048-bit; fingerprint 71 8E A6 23 0E D3 4C E5  0F 69 8C D4 FA 66 15 01
>Nothing in this message is intended to be legally binding. If I revoke a
>public key but refuse to specify why, it is because the private key has been
>seized under the Regulation of Investigatory Powers Act; see www.fipr.org/rip
>
>
>-----BEGIN PGP SIGNATURE-----
>Version: 2.6.3i
>Charset: noconv
>
>iQEVAwUBPoBYIDkCAxeYt5gVAQG6KggAu9R2R9Kcm9rVXU+yPT/JmmqXzEmv6VUI
>uu+OoaMVHxAbNBO/gGmuQx0Bb8Hnp7utKwy8nJ20bLW4F0IFsYixStyiVEGkH1bn
>6V/+ATMHyWQVMnB75a12eSN8WNa6Y2RzE7YZpmfArTcHfXP0hY92n4ip47y87hp7
>yFwEGP02jLr8seHMttWOPhQFtgnPOXOOv9cQaJhnanYTBdfDJfIeCMHinQYcLKLu
>aRMIUyk7S59wW7SqFGKSeVZRkEasgACj+1XJfDjvFsm8bk7U+mEHbmUM8rm5DiSL
>lzcXW/Q7WBDaYBc8mjMf9kGkSpoT0JpX78aP8Vd2BV54V4UoAPH47g==
>=w51s
>-----END PGP SIGNATURE-----
>_______________________________________________
>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 mailnull@www1.ietf.org  Fri Mar 28 10:34:09 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA03889
	for <cfrg-archive@odin.ietf.org>; Fri, 28 Mar 2003 10:34:09 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2SFtxB13796
	for cfrg-archive@odin.ietf.org; Fri, 28 Mar 2003 10:55:59 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SFtwO13793
	for <cfrg-web-archive@optimus.ietf.org>; Fri, 28 Mar 2003 10:55:58 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA03864
	for <cfrg-web-archive@ietf.org>; Fri, 28 Mar 2003 10:33:38 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SFpOO13531;
	Fri, 28 Mar 2003 10:51:24 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2RKpZO19107
	for <cfrg@optimus.ietf.org>; Thu, 27 Mar 2003 15:51:35 -0500
Received: from TheWorld.com (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18029
	for <cfrg@ietf.org>; Thu, 27 Mar 2003 15:29:37 -0500 (EST)
Received: from [67.242.205.162] (1Cust229.tnt24.bos2.da.uu.net [67.242.205.229])
	by TheWorld.com (8.12.8/8.12.8) with ESMTP id h2RKVvTZ016235;
	Thu, 27 Mar 2003 15:31:57 -0500
Mime-Version: 1.0
X-Sender: dtd@pop.theworld.com
Message-Id: <a05100392baa90b56a8cc@[67.242.205.162]>
In-Reply-To: <b5vhdc$trm$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com>
 <b5t990$h11$1@abraham.cs.berkeley.edu> <3E823791.3080702@bell-labs.com>
 <3E832D47.8080909@bell-labs.com> <b5vhdc$trm$1@abraham.cs.berkeley.edu>
Date: Thu, 27 Mar 2003 15:31:53 -0500
To: daw@mozart.cs.berkeley.edu (David Wagner)
From: Don Davis <don@mit.edu>
Subject: Re: [Cfrg] AES-based PRF - comment please
Cc: cfrg@ietf.org
Content-Type: text/plain; charset="us-ascii"
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

David Wagner wrote:
>>> No, there's no proof [that SHA-1 behaves like a random oracle]
> After years of scrutiny, noone has found any troubling anomalies
> in SHA.  ... SHA1 would fit the bill, because cryptanalysts have
> tried really hard to find any anomaly that indicates it is not
> behaving like a random function, and they've all failed.  

unfortunately, SHA1 probably hasn't gotten all of the
scrutiny its predecessors got, but for an interesting
reason.

in '96, Bart Preneel mentioned an interesting tidbit about
SHA1's prospects for survival.  Even though SHA is closely
related to MD5, Dobbertin was not _allowed_ to extend his
MD5 attack to SHA, because Dobbertin works for the German
government's Security Service, and so is forbidden by law
to undermine US federal crypto standards.  Since Dobbertin
is by far the strongest worker in the field of hash-function
inversions (RIPE-MD, MD4, MD5), SHA1 probably won't suffer
MD5's fate, even if SHA1 deserves to die.

has someone else has come along to fill dobbertin's shoes?

finally, i'll mention that before SHA1 came along, a hash
function's lifetime (spec to crack) was about 6 years.

					- don davis, boston









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



From mailnull@www1.ietf.org  Fri Mar 28 12:13:31 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08488
	for <cfrg-archive@odin.ietf.org>; Fri, 28 Mar 2003 12:13:31 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2SHZNV22945
	for cfrg-archive@odin.ietf.org; Fri, 28 Mar 2003 12:35:23 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SHZNO22942
	for <cfrg-web-archive@optimus.ietf.org>; Fri, 28 Mar 2003 12:35:23 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08466
	for <cfrg-web-archive@ietf.org>; Fri, 28 Mar 2003 12:12:59 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SHXOO22790;
	Fri, 28 Mar 2003 12:33:24 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SHWpO22744
	for <cfrg@optimus.ietf.org>; Fri, 28 Mar 2003 12:32:51 -0500
Received: from cdc-info.cdc.informatik.tu-darmstadt.de (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08379
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 12:10:08 -0500 (EST)
Received: from cdc-ws13.cdc.informatik.tu-darmstadt.de (cdc-ws13 [130.83.23.73])
	by cdc-info.cdc.informatik.tu-darmstadt.de (Postfix) with ESMTP id 7ED772CAA
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 18:12:31 +0100 (MET)
Received: (from moeller@localhost)
	by cdc-ws13.cdc.informatik.tu-darmstadt.de (8.11.6+Sun/8.11.6) id h2SHCUL17130
	for cfrg@ietf.org; Fri, 28 Mar 2003 18:12:30 +0100 (MET)
Date: Fri, 28 Mar 2003 18:12:30 +0100
From: Bodo Moeller <moeller@cdc.informatik.tu-darmstadt.de>
To: cfrg@ietf.org
Subject: Re: [Cfrg] reductions vs. random-oracles
Message-ID: <20030328181230.B17015@cdc.informatik.tu-darmstadt.de>
References: <20030327170005.31387.89137.Mailman@www1.ietf.org> <200303271233.49698.shaih@watson.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <200303271233.49698.shaih@watson.ibm.com>; from shaih@watson.ibm.com on Thu, Mar 27, 2003 at 12:33:49PM -0500
Content-Transfer-Encoding: 8bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

On Thu, Mar 27, 2003 at 12:33:49PM -0500, Shai Halevi wrote:
> On Thursday 27 March 2003 13:58:43 +0100, Bodo Moeller wrote:

>> It should be noted that all such counterexamples make statements about
>> *asymptotic* security: they assume that a fixed description of the
>> hash function is used across all security parameters and exploit
>> anomalies in this setting.  

> That's just not true. These examples have nothing to do with "asymptotic" 
> vs. "concrete" security. 

The asymptotic aspect in your paper lies in enumerating "efficiently
computable" function ensembles.  Sloppily said, the examples assume
that function descriptions  <i, s>  are shorter than the complete
function table of a random oracle: polynomial size compared with
exponential size.  This certainly makes a lot of sense, but it's
inherently asymptotic.


>>> [...]                                              It's true that when
>>> you hear about a "proof of security" in the context of reduction-based
>>> analysis, typically there is some computational assumption, like
>>> that factoring is hard.  [...]

>> One the other hand, such reduction-based proofs make only asymptotic
>> statements, since the underlying assumptions (such as intractability
>> of factoring) are asymptotic.  

> That's not true either. The reduction typically relates the complexity of 
> breaking your scheme to the complexity of solving the underlying 
> problem. And the underlying assumptions can be concrete if you want it 
> to be

Right, sorry, I was being led astray by the example that was given in
the message that I was commenting on: "Factoring is hard" is an
oversimplified short form of an assumption that translates into an
asymptotic statement.  (Factoring random integers is not hard -- quite
a lot of them are notoriosly easy to factor because they are prime --,
so a statement such as "factoring integers of the form  p*q  with
p, q  prime is hard" would be closer to the actual assumption.  Of
course we'd also have to say something on the distributions of  p
and  q.)

I had wrongly assumed that the above quote was about asymptotics.  The
hardness of factoring could also be expressed in terms of concrete
security, but I have not seen anyone do this so far.  Actually I used
the words "*such* reduction-based proofs" precisely because not *all*
reduction-based proofs use asymptotics ... see my comment to Anton's
follow-up.  David has pointed out that "reduction-based concrete
security is [his] preferred paradigm, when applicable", and I hope
that my reply to Anton's message has already made it clear that I
agree.

>       (i.e., nothing stops you from assuming that factoring a 1024-bit 
> integer takes at least 2^xxx computational steps and 2^yyy space, or 
> whatever).

Yes, something like this is possible (although not literally like this:
even if we restrict to composite integers  p*q  with  p, q  prime,
an assumption of this form does not work; but we can make assumptions
on upper bounds on the success probability that an adversary can have
for factoring such 1024-bit composites).  (As an aside -- recently I
was looking for a quantitative version of the assumption on the
hardness of factoring expressed in this style, but did not find
anything.  If someone knows appropriate citations, I'd by very
interested in seeing these.)


> Security reductions are just that: they reduce your belief in the 
> security of your cryptosystem, to the belief that a well-specified 
> problem (with sell-specified parameters) cannot be solved using 
> "reasonable resources". There are no heuristics involved here. (Of 
> course, you can always argue that the belief in the infeasability of 
> solving the problem is only a heuristic.)  

Exactly; and the machine model that we need for defining
"infeasability" non-asymptotically is not really well-specified, so
there are actually multiple heuristical aspects involved here.  For
example, we usually silently assume that the machine model does not
include an atomic instruction that directly inverts SHA-1.
(Asymptotic analysis does not have to worry too much about such
gadgets, inverting SHA-1 is just an  O(1)  problem anyway ...)


-- 
Bodo Möller <moeller@cdc.informatik.tu-darmstadt.de>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Fri Mar 28 12:16:59 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08702
	for <cfrg-archive@odin.ietf.org>; Fri, 28 Mar 2003 12:16:59 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2SHcpV23912
	for cfrg-archive@odin.ietf.org; Fri, 28 Mar 2003 12:38:51 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SHcpO23909
	for <cfrg-web-archive@optimus.ietf.org>; Fri, 28 Mar 2003 12:38:51 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08691
	for <cfrg-web-archive@ietf.org>; Fri, 28 Mar 2003 12:16:27 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SHc2O23872;
	Fri, 28 Mar 2003 12:38:02 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SHbuO23843
	for <cfrg@optimus.ietf.org>; Fri, 28 Mar 2003 12:37:56 -0500
Received: from cdc-info.cdc.informatik.tu-darmstadt.de (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA08631
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 12:15:32 -0500 (EST)
Received: from cdc-ws13.cdc.informatik.tu-darmstadt.de (cdc-ws13 [130.83.23.73])
	by cdc-info.cdc.informatik.tu-darmstadt.de (Postfix) with ESMTP id E24272CAA
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 18:17:54 +0100 (MET)
Received: (from moeller@localhost)
	by cdc-ws13.cdc.informatik.tu-darmstadt.de (8.11.6+Sun/8.11.6) id h2SHHr517142
	for cfrg@ietf.org; Fri, 28 Mar 2003 18:17:53 +0100 (MET)
Date: Fri, 28 Mar 2003 18:17:53 +0100
From: Bodo Moeller <moeller@cdc.informatik.tu-darmstadt.de>
To: cfrg@ietf.org
Subject: Re: [Cfrg] AES-based PRF - comment please
Message-ID: <20030328181753.C17015@cdc.informatik.tu-darmstadt.de>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <20030327135842.B12834@cdc.informatik.tu-darmstadt.de> <007e01c2f482$58d6e780$7aa86395@p1038mobile> <20030327184937.A13483@cdc.informatik.tu-darmstadt.de> <b5venq$t9m$2@abraham.cs.berkeley.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <b5venq$t9m$2@abraham.cs.berkeley.edu>; from daw@mozart.cs.berkeley.edu on Thu, Mar 27, 2003 at 06:08:58PM +0000
Content-Transfer-Encoding: 8bit
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

On Thu, Mar 27, 2003 at 06:08:58PM +0000, David Wagner wrote:
> Bodo Moeller  wrote:

>> Saying that a function "acts as a good PRF" rather makes assumptions
>> about the adversary -- namely that the adversary cannot well
>> distinguish the function from a random one.

> Hmm.  Well, I guess that's not how I interpret such statements.  When I
> say "AES-XCBC-MAC makes a good PRF", I really mean that there is *no*
> attack.  This is different from assuming that if there is an attack, my
> specific enemies can't find it.  Thus, saying "AES-XCBC-MAC is a good
> PRF" is (to me) not making assumptions about my adversary's state of
> knowledge; for me, it is making assumptions about an inherent property
> of AES-XCBC-MAC.  Those assumptions might be either true or false,
> but at least they are specific.  That's one viewpoint, anyway.

I think in the end we mean the same thing.  My point is that such
statements cannot express "very specific things" about the underlying
primitives as long as the machine model that adversaries are assumed
to run in is left unspecified.  (There are well-known natural
equivalences between different machine models, but these equivalences
again are only asymptotic, there is no canonical class of equivalent
models if you don't go into asymptotics.)

The intended meaning of a statement such as "AES-XCBC-MAC is a good
PRF" is that none of the adversaries to be considered can attack
it with more than certain success prospects.  So what are the
adversaries to be considered?  The intention is something like this:

> It is true that anytime I use computational cryptosystems (rather
> than information-theoretic cryptosystem), I will have to make some
> assumptions about the resources available to my adversary.  For instance,
> I might assume that my adversary will not spend more than $1 billion to
> break my system.  Fortunately, I believe these assumptions can be made
> very plausible.  For instance, if we use modern 128-bit block ciphers,
> we end up with assumptions like that the adversary can't do 2^100 steps
> of computation -- a very believable assumption.

But the formal details are left open (one "step of computation" in
some machine formalization might require many many steps in another
one).  So, if you look at what formal assumptions are conveyed by a
statement like "AES-XCBC-MAC is a good PRF", you have assumptions
about what adversaries cannot achieve, but nothing specific about
AES-XCBC-MAC taken for itself.

In principle you could fill the void and define a specific machine
model for the adversary.  Then, with respect to this particular model
(and some quantitive bounds saying when a PRF can be considered
"good"), the statement "AES-XCBC-MAC is a good PRF" would be a
specific statement that is either true or false.  But the statement is
not inherently true or false -- for some models, it will be true, for
others it will be false (and certainly one may hope that the models in
which it is false are contrived while for realistic ones it is true).


>> Even information-theoretic proofs such as the one for the Vernam
>> encryption scheme do not really apply to deployed systems.  They will
>> typically assume that some key  K  is perfectly random, whereas in
>> actual implementations, there will usually be some bias.

> Yes, it's true.  Good point.
> 
> But I guess the partial good news is that this is a different sort of
> assumption.  It is an assumption that our mathematical model faithfully
> models the real world.  That has a slightly different character from
> the assumption that AES is a PRP with such-and-such parameters [...]

Absolutely.  I had not intended to imply that there is a direct
connection between these concerns about information-theoretic security
and the concerns about computational security.  I just had wanted to
comment, as a side note, on the remark that "we are always assuming
something, unless we have some information-theoretic proof" -- in
fact, even if we have an information-theoretic security proof, we have
to assume something.  While it is a different kind of something, it is
still something.


-- 
Bodo Möller <moeller@cdc.informatik.tu-darmstadt.de>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



From mailnull@www1.ietf.org  Fri Mar 28 13:45:59 2003
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged))
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11671
	for <cfrg-archive@odin.ietf.org>; Fri, 28 Mar 2003 13:45:59 -0500 (EST)
Received: (from mailnull@localhost)
	by www1.ietf.org (8.11.6/8.11.6) id h2SJ7pQ30471
	for cfrg-archive@odin.ietf.org; Fri, 28 Mar 2003 14:07:51 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SJ7pO30468
	for <cfrg-web-archive@optimus.ietf.org>; Fri, 28 Mar 2003 14:07:51 -0500
Received: from www1.ietf.org (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11647
	for <cfrg-web-archive@ietf.org>; Fri, 28 Mar 2003 13:45:28 -0500 (EST)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SJ5uO29633;
	Fri, 28 Mar 2003 14:05:56 -0500
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by www1.ietf.org (8.11.6/8.11.6) with ESMTP id h2SJ4NO29544
	for <cfrg@optimus.ietf.org>; Fri, 28 Mar 2003 14:04:23 -0500
Received: from mx2.cypherpunks.ca (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11448
	for <cfrg@ietf.org>; Fri, 28 Mar 2003 13:41:53 -0500 (EST)
X-Envelope-To: cfrg@ietf.org
Received: (from news@localhost)
	by mx2.cypherpunks.ca (8.11.0/8.11.0) id h2SIJAr13514
	for cfrg@ietf.org; Fri, 28 Mar 2003 10:19:10 -0800
To: cfrg@ietf.org
Path: not-for-mail
From: daw@mozart.cs.berkeley.edu (David Wagner)
Newsgroups: isaac.lists.ietf-cfrg
Subject: Re: [Cfrg] AES-based PRF - comment please
Date: 28 Mar 2003 18:19:10 GMT
Organization: University of California, Berkeley
Lines: 20
Distribution: isaac
Message-ID: <b623mu$d4r$1@abraham.cs.berkeley.edu>
References: <FPELKLHKCBJLMMMNOGDFKEGPFPAA.mcgrew@cisco.com> <20030327184937.A13483@cdc.informatik.tu-darmstadt.de> <b5venq$t9m$2@abraham.cs.berkeley.edu> <20030328181753.C17015@cdc.informatik.tu-darmstadt.de>
NNTP-Posting-Host: mozart.cs.berkeley.edu
X-Trace: abraham.cs.berkeley.edu 1048875550 13467 128.32.153.211 (28 Mar 2003 18:19:10 GMT)
X-Complaints-To: news@abraham.cs.berkeley.edu
NNTP-Posting-Date: 28 Mar 2003 18:19:10 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: daw@mozart.cs.berkeley.edu (David Wagner)
Sender: cfrg-admin@ietf.org
Errors-To: cfrg-admin@ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
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>

Bodo Moeller  wrote:
>On Thu, Mar 27, 2003 at 06:08:58PM +0000, David Wagner wrote:
>> Bodo Moeller  wrote:
>>> Saying that a function "acts as a good PRF" rather makes assumptions
>>> about the adversary -- namely that the adversary cannot well
>>> distinguish the function from a random one.
>
>> Hmm.  Well, I guess that's not how I interpret such statements.  When I
>> say "AES-XCBC-MAC makes a good PRF", I really mean that there is *no*
>> attack.
>
>I think in the end we mean the same thing.  My point is that such
>statements cannot express "very specific things" about the underlying
>primitives as long as the machine model that adversaries are assumed
>to run in is left unspecified.

Oh.  see what you mean.  You're right.  I overlooked this.
Thanks for correcting me.

Darn, interpreting these theoretical results is so tricky...
_______________________________________________
Cfrg mailing list
Cfrg@ietf.org
https://www1.ietf.org/mailman/listinfo/cfrg



