From cfrg-bounces@ietf.org Mon Aug 06 10:00:05 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1II37e-0004Ue-VW; Mon, 06 Aug 2007 09:59:50 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1II37d-0004UZ-KP
	for cfrg@ietf.org; Mon, 06 Aug 2007 09:59:49 -0400
Received: from sj-iport-6.cisco.com ([171.71.176.117])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1II37c-00077m-2r
	for cfrg@ietf.org; Mon, 06 Aug 2007 09:59:49 -0400
Received: from sj-dkim-3.cisco.com ([171.71.179.195])
	by sj-iport-6.cisco.com with ESMTP; 06 Aug 2007 06:59:47 -0700
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ao8CAMfFtkarR7PD/2dsb2JhbAA
X-IronPort-AV: i="4.19,224,1183359600"; 
	d="scan'208"; a="195103314:sNHT45704871"
Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237])
	by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id l76Dx6hE005236
	for <cfrg@ietf.org>; Mon, 6 Aug 2007 06:59:47 -0700
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com
	[128.107.191.100])
	by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l76Dl6FA021223
	for <cfrg@ietf.org>; Mon, 6 Aug 2007 13:55:44 GMT
Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by
	xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 6 Aug 2007 06:52:57 -0700
Received: from [10.32.254.212] ([10.32.254.212]) by xfe-sjc-212.amer.cisco.com
	with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 6 Aug 2007 06:52:57 -0700
Mime-Version: 1.0 (Apple Message framework v752.2)
References: <BAY117-F18D332E3E76551F9675B3593EB0@phx.gbl>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <D583F963-06AE-4C2C-BE33-D3DC79DAABCC@cisco.com>
Content-Transfer-Encoding: 7bit
From: David McGrew <mcgrew@cisco.com>
Date: Mon, 6 Aug 2007 06:52:59 -0700
To: cfrg@ietf.org
X-Mailer: Apple Mail (2.752.2)
X-OriginalArrivalTime: 06 Aug 2007 13:52:57.0481 (UTC)
	FILETIME=[183A2790:01C7D831]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1433; t=1186408787;
	x=1187272787; c=relaxed/simple; s=sjdkim3002;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=mcgrew@cisco.com;
	z=From:=20David=20McGrew=20<mcgrew@cisco.com>
	|Subject:=20Fwd=3A=20[saag]=20Security=20review=20of=20RADIUS=20crypto-ag
	ility=20proposals? |Sender:=20;
	bh=VCNak8xqt8/fzndwA1Oqk90fyy7Y81pwO+v8eOfDT6M=;
	b=bwSLrjrtxC4mJwXIlKKMBjlxZ4OuNNNuVg5GfD+zuPfpnhz9vUBLbNH5ASwVfUNl8sCYRNn8
	ziUNtXYt+JpYgeBa803DTbIl2oOLaJ4fJ2YTbiv4H0rIY5RXJMgxGMhI;
Authentication-Results: sj-dkim-3; header.From=mcgrew@cisco.com; dkim=pass (
	sig from cisco.com/sjdkim3002 verified; ); 
X-Spam-Score: -4.0 (----)
X-Scan-Signature: 8b30eb7682a596edff707698f4a80f7d
Subject: [Cfrg] Fwd: [saag] Security review of RADIUS crypto-agility
	proposals?
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

FYI - reviews are solicited on some drafts that define the use of  
crypto within the RADIUS protocol, see the "crypto-agility" drafts  
below.

Begin forwarded message:

> From: "Bernard Aboba" <bernard_aboba@hotmail.com>
> Date: August 4, 2007 12:52:46 PM PDT
> To: saag@mit.edu
> Subject: [saag] Security review of RADIUS crypto-agility proposals?
>
> The RADEXT WG is debating the merits of several proposals for RADIUS
> crypto-agility.  Since the selection process will substantially  
> impact the
> future of RADIUS, we are looking to solicit reviews of one or more  
> of the
> proposals:
>
> RADIUS over DTLS:
> http://www.ietf.org/internet-drafts/draft-dekok-radext-dtls-00.txt
> RADIUS over TCP/TLS:
> http://www.ietf.org/internet-drafts/draft-winter-radsec-00.txt
> RADIUS Crypto-agility:
> http://www.ietf.org/internet-drafts/draft-zorn-radius-keywrap-13.txt
> http://www.ietf.org/internet-drafts/draft-zorn-radius-encattr-06.txt
> HOKEY key distribution:
> http://www.ietf.org/internet-drafts/draft-gaonkar-radext-erp- 
> attrs-00.txt
>
> The selection process is summarized here:
> http://ops.ietf.org/lists/radiusext/2007/msg00048.html
> The protocol requirements are available here:
> http://ops.ietf.org/lists/radiusext/2007/msg00053.html
>
>
> _______________________________________________
> saag mailing list
> saag@mit.edu
> http://mailman.mit.edu/mailman/listinfo/saag

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



From cfrg-bounces@ietf.org Mon Aug 06 12:23:19 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1II5MQ-0003J8-Hq; Mon, 06 Aug 2007 12:23:14 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1II5MO-0003AN-Vi
	for cfrg@ietf.org; Mon, 06 Aug 2007 12:23:12 -0400
Received: from sj-iport-6.cisco.com ([171.71.176.117])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1II5MO-0001tW-FX
	for cfrg@ietf.org; Mon, 06 Aug 2007 12:23:12 -0400
Received: from sj-dkim-3.cisco.com ([171.71.179.195])
	by sj-iport-6.cisco.com with ESMTP; 06 Aug 2007 09:23:02 -0700
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ao8CAP7ntkarR7PD/2dsb2JhbAA
X-IronPort-AV: i="4.19,225,1183359600"; 
	d="scan'208"; a="195173975:sNHT6092697528"
Received: from sj-core-4.cisco.com (sj-core-4.cisco.com [171.68.223.138])
	by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id l76GN2gb019796; 
	Mon, 6 Aug 2007 09:23:02 -0700
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com
	[128.107.191.100])
	by sj-core-4.cisco.com (8.12.10/8.12.6) with ESMTP id l76GMuHn001670;
	Mon, 6 Aug 2007 16:23:02 GMT
Received: from xmb-sjc-215.amer.cisco.com ([171.70.151.169]) by
	xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 6 Aug 2007 09:22:56 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Cfrg] Fwd: [saag] Security review of RADIUS
	crypto-agilityproposals?
Date: Mon, 6 Aug 2007 09:22:56 -0700
Message-ID: <4C0FAAC489C8B74F96BEAD85EAEB262504BC895D@xmb-sjc-215.amer.cisco.com>
In-Reply-To: <D583F963-06AE-4C2C-BE33-D3DC79DAABCC@cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Cfrg] Fwd: [saag] Security review of RADIUS
	crypto-agilityproposals?
Thread-Index: AcfYMiWSPZZT0EWIR1S8j4XAOUZC9QAE2QBA
References: <BAY117-F18D332E3E76551F9675B3593EB0@phx.gbl>
	<D583F963-06AE-4C2C-BE33-D3DC79DAABCC@cisco.com>
From: "Glen Zorn \(gwz\)" <gwz@cisco.com>
To: "David McGrew \(mcgrew\)" <mcgrew@cisco.com>
X-OriginalArrivalTime: 06 Aug 2007 16:22:56.0425 (UTC)
	FILETIME=[0C040990:01C7D846]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1851; t=1186417382;
	x=1187281382; c=relaxed/simple; s=sjdkim3002;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=gwz@cisco.com;
	z=From:=20=22Glen=20Zorn=20\(gwz\)=22=20<gwz@cisco.com>
	|Subject:=20RE=3A=20[Cfrg]=20Fwd=3A=20[saag]=20Security=20review=20of=20R
	ADIUS=20crypto-agilityproposals? |Sender:=20;
	bh=ipdBFdoSVok/uhAAs+Mk5Ds+01dPwmJoIwOF9ppJBm0=;
	b=Jyx6DcDds3gpWVcEE8TGR8YXI8pQaSWhxxMUL+eGnXWNYbPGaIvBuAC4zpJTKWrqIBz3GsGN
	wJNBfH2d1Jmjkr1oY16wthkNfBj5VEjI5njjWlpIVZNAE7huz5TIXUlU;
Authentication-Results: sj-dkim-3; header.From=gwz@cisco.com; dkim=pass (sig
	from cisco.com/sjdkim3002 verified; ); 
X-Spam-Score: -4.0 (----)
X-Scan-Signature: 50a516d93fd399dc60588708fd9a3002
Cc: cfrg@ietf.org, "Glen Zorn \(gwz\)" <gwz@cisco.com>,
	radext-chairs@tools.ietf.org
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

David McGrew (mcgrew) <> allegedly scribbled on Monday, August 06, 2007
6:53 AM:

> FYI - reviews are solicited on some drafts that define the use of
> crypto within the RADIUS protocol, see the "crypto-agility" drafts
> below. =20
>=20
> Begin forwarded message:
>=20
>> From: "Bernard Aboba" <bernard_aboba@hotmail.com>
>> Date: August 4, 2007 12:52:46 PM PDT
>> To: saag@mit.edu
>> Subject: [saag] Security review of RADIUS crypto-agility proposals?
>>=20
>> The RADEXT WG is debating the merits of several proposals for RADIUS
>> crypto-agility.  Since the selection process will substantially
>> impact the future of RADIUS, we are looking to solicit reviews of
>> one or more of the proposals:

Just to clarify, AFAIK neither draft-winter nor draft-gaonkar are
actually candidates as a crypto-agility solution for RADIUS.

>>=20
>> RADIUS over DTLS:
>> http://www.ietf.org/internet-drafts/draft-dekok-radext-dtls-00.txt
>> RADIUS over TCP/TLS:
>> http://www.ietf.org/internet-drafts/draft-winter-radsec-00.txt=20
>> RADIUS Crypto-agility:
>> http://www.ietf.org/internet-drafts/draft-zorn-radius-keywrap-13.txt
>> http://www.ietf.org/internet-drafts/draft-zorn-radius-encattr-06.txt
>> HOKEY key distribution:
>> http://www.ietf.org/internet-drafts/draft-gaonkar-radext-erp-
>> attrs-00.txt =20
>>=20
>> The selection process is summarized here:
>> http://ops.ietf.org/lists/radiusext/2007/msg00048.html
>> The protocol requirements are available here:
>> http://ops.ietf.org/lists/radiusext/2007/msg00053.html
>>=20
>>=20
>> _______________________________________________
>> saag mailing list
>> saag@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/saag
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@ietf.org
> https://www1.ietf.org/mailman/listinfo/cfrg

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



From cfrg-bounces@ietf.org Fri Aug 10 17:32:59 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1IJc4a-0001kS-Qd; Fri, 10 Aug 2007 17:31:08 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1IJc4V-0001in-If
	for cfrg@ietf.org; Fri, 10 Aug 2007 17:31:03 -0400
Received: from colo.trepanning.net ([69.55.226.174] helo=mail1.trepanning.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IJc4U-0008Ja-70
	for cfrg@ietf.org; Fri, 10 Aug 2007 17:31:03 -0400
Received: from www.trepanning.net (localhost [127.0.0.1])
	by mail1.trepanning.net (Postfix) with ESMTP id A36A71FA608B;
	Fri, 10 Aug 2007 14:31:01 -0700 (PDT)
Received: from 65.105.205.133
	(SquirrelMail authenticated user dharkins@lounge.org)
	by www.trepanning.net with HTTP;
	Fri, 10 Aug 2007 14:31:01 -0700 (PDT)
Message-ID: <5824.65.105.205.133.1186781461.squirrel@www.trepanning.net>
Date: Fri, 10 Aug 2007 14:31:01 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: mcgrew@cisco.com
User-Agent: SquirrelMail/1.4.8
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3 (Normal)
Importance: Normal
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Scan-Signature: 0ddefe323dd869ab027dbfff7eff0465
Cc: cfrg@ietf.org
Subject: [Cfrg] draft-mcgrew-auth-enc-03.txt
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org


  Hi David,

  I have a couple questions about draft-mcgrew-auth-enc-03.txt.

  Section 4 states requirements for AEAD algorithms with respect to the
lengths of various inputs-- maximum amount of plaintext is P_MAX, maximum
amount of additional authenticated data is A_MAX, etc. Are these to be
treated as logical limits imposed by the particular mode (for instance
fixing q to 3 for CCM imposes a P_MAX limit that would not be so low
if q was greater) or are they to be treated as "safe" limits?

  If the latter then what is the guidance that this limit should provide?
Is it a soft limit under which one should be fine but the proven security
guarentee falls off after you reach the limit or is it a hard limit that
the cipher becomes too unsafe to use after you reach the limit? How shoul=
d
another AEAD algorithm that wishes to have a number assigned out of the
registry define these maximums? SIV's counter is 128 bits, if it was
incremented mod 2^128 P_MAX logically would be 2^128 but SIV's security
guarantee falls off after 2^64 so should P_MAX be less?

  On a related note, for CCM the I-D defines P_MAX as 2^24-1 octets and
A_MAX as 2^64-1 octets. Theorem 1 in the Jonsson paper referenced as [J02=
]
in the draft gives a security proof of CCM and states that the adversaria=
l
advantage, with a tag length of 128 bits and a cipher block size of 128
bits is a function of:

   (qf * 2^-128) + (lE + lF)^2 * 2^-128

where qf is the number of forgery queries, lE is total number of
applications of the block cipher in queries to the encryption oracle and
lF is the total number of applications of the block cipher for queries
to the forgery oracle.

  P_MAX plaintext is 2^22-1 applications of the block cipher and A_MAX
additional authenticated data is 2^62-1 applications of the block cipher.
That seems like it is quite far past the "safe" point. Or what am I
missing?

  thanks,

  Dan.






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



From cfrg-bounces@ietf.org Wed Aug 15 05:31:48 2007
Return-path: <cfrg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1ILFCR-0000M2-Kh; Wed, 15 Aug 2007 05:29:59 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1ILFCQ-0000Lx-PB
	for cfrg@ietf.org; Wed, 15 Aug 2007 05:29:58 -0400
Received: from smtp.cs.ucdavis.edu ([169.237.4.8])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ILFCP-0007wT-7s
	for cfrg@ietf.org; Wed, 15 Aug 2007 05:29:58 -0400
X-ASG-Debug-ID: 1187170190-123400000000-gZ1F82
X-ASG-Debug-ID: 1187170190-123400000000-gZ1F82
X-Barracuda-URL: http://169.237.4.8:8000/cgi-bin/mark.cgi
X-Barracuda-Connect: ocb.cs.ucdavis.edu[169.237.6.151]
X-Barracuda-Start-Time: 1187170190
Received: from ocb.cs.ucdavis.edu (ocb.cs.ucdavis.edu [169.237.6.151])
	by smtp.cs.ucdavis.edu (Spam Firewall) with ESMTP
	id EE22E2F6A3; Wed, 15 Aug 2007 02:29:50 -0700 (PDT)
Received: from localhost (ocb.cs.ucdavis.edu [169.237.6.151])
	by ocb.cs.ucdavis.edu (8.12.8/8.12.8) with ESMTP id l7F9SbAm006365;
	Wed, 15 Aug 2007 02:28:40 -0700
Date: Wed, 15 Aug 2007 16:29:50 +0700 (SE Asia Standard Time)
From: Phillip Rogaway <rogaway@cs.ucdavis.edu>
To: "David A.McGrew" <david.a.mcgrew@mindspring.com>
X-ASG-Orig-Subj: comments on draft-mcgrew-auth-enc-03.txt
Message-ID: <Pine.WNT.4.64.0708151623170.4240@rogawaypan>
X-X-Sender: rogaway@rogawaypan
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at cs.ucdavis.edu
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
	QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests=
X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.25592
	Rule breakdown below
	pts rule name              description
	---- ----------------------
	--------------------------------------------------
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4b7d60495f1a7f2e853e8cbae7e6dbfc
Cc: cfrg@ietf.org
Subject: [Cfrg] comments on draft-mcgrew-auth-enc-03.txt
X-BeenThere: cfrg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:cfrg@ietf.org>
List-Help: <mailto:cfrg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cfrg>,
	<mailto:cfrg-request@ietf.org?subject=subscribe>
Errors-To: cfrg-bounces@ietf.org

Hi David,

  In an earlier email (6 Oct 2006) (cc'ed to the cfrg) I passed on some
  comments on draft-mcgrew-auth-enc-00.txt.  I've just taken a look at
  latest incantation, draft-mcgrew-auth-enc-03.txt (July 6, 2007), so
  thought to pass on some fresh comments.

  Since my comments are critical, I think I should say up front that
  I think the draft is greatly improved since the -00 version that I
  reviewed last year, and, also, that I think that an RFC along these
  lines might be valuable.


  1. Nonces and the specific AEAD goals you intend

  Your ID says that "Each nonce provided to distinct invocations
  of the Authenticated Encryption operation MUST be distinct,
  for any particular value of the key."  This statement stands in
  direct contradiction to your later statement that "The number of
  octets in the nonce MAY be zero".  (This latter statement is
  itself ambiguous, either asserting that a _given_ nonce may have
  zero bytes (N_MIN = 0), or that all nonces will (N_MAX = 0).)

  The requirement that a nonce never repeats precludes the possibility
  of an appropriately-long user-supplied random value. Say this explicitly
  if you really mean it.  But I myself would find this an odd choice; to me,
  a random nonce isn't just a _reasonable_ thing for the user to be able
  to supply, it's a _canonical_ thing to supply!  If you mean to
  prohibit the user from providing random nonces, I can only assume this
  is rooted in experience that this is something so easily messed up
  that users of a cryptographic interface must NOT be allowed to do it....

  In general, though, I find entire story on nonces, and how they relate
  to the cryptographic goal one is aiming for, to be kind of muddy.
  Eg., we are told that a probabilistic encryption scheme may use a
  zero-length nonce, but you don't say that a probabilistic scheme MUST
  use a zero-length nonce, nor do hint at what would be the intended
  cryptographic semantics when you have a nonce _and_ internal coins.
  We are not told that _only_ a probabilistic scheme may use a
  zero-length nonce and I cannot actually tell if you intend
  deterministic AE (key-wrap) to be in scope or not.  You make clear
  that a counter may be used as a nonce, but it's unclear if it may
  be used (instead of coins) internally to an encryption mechanism
  (perhaps creating the odd asymmetry that counters may be shipped in or
  generated internally, but random coins MUST be generated internally).
  Must an (internal) counter-based scheme have N_MAX=0 and, if not, what
  is the meaning of supplying a nonce when there is also internal
  state. And so forth ....

  Perhaps part of the problem is that there are multiple AEAD formulations
  in the literature, these corresponding to some genuine difference about
  concerning the use of coins and state in the encryption process and whether
  or not an external nonce is supplied:

         -----------------------------------------------------------------
         | Probabilistic| Stateful    | Nonce-based      | Deterministic |
         | AEAD  [BN00] | AEAD [BN00] | AEAD [RBBK01,R02]| AEAD   [RS06] |
         -----------------------------------------------------------------
  coins? |      yes     |     no      |       no         |     no        |
  state? |       no     |    yes      |       no         |     no        |
         -----------------------------------------------------------------
  nonce? |       no     |     no      |       yes        |     no        |
         -----------------------------------------------------------------

  You can't quite ignore these subtleties in your ID because (a) what
  the user supplies to the encryption and decryption algorithms vary;
  (b) what is allowed in the underlying encryption algorithms varies
  (in terms of maintaining state or using randomness);
  (c) some combinations either haven't been defined or don't seem to make
  a whole lot of sense; and
  (d) a user of the interface needs to make an informed decision about
  what service he wants.


  2. Mixing algorithms and interfaces, and SHOULD(|Nonce|=14)

  An interface definition ought aim to be mechanism-neutral.
  Indeed the high-level decision to specify in one ID both an
  interface and four particular algorithms feels kind of "political".

  One problem with mixing algorithms and an interface in one document
  is that it can lead one to favor the specified mechanisms (CCM and GCM)
  in somewhat hidden ways.  For example, you say that a nonce SHOULD
  be 12 octets, the (somewhat idiosyncratic) choice of CCM, GCM.  Why?
  The best reason I can think of for suggesting a particular nonce length
  would be the hope that a user could select this length and be sure that
  any mechanism conforming to all SHOULDs would support this choice. But if
  that's the goal you'd want to say   SHOULD (N_MIN <= 12 and N_MAX >= 12),
  not SHOULD (N_MIN = N_MAX = 12).   Still, even the relaxed SHOULD
  denigrates probabilistic, stateful, and deterministic encryption; perhaps
  one might say SHOULD ((N_MIN<=12 and N_MAX>=12)) OR (N_MIN=N_MAX=0)?
  But by that point it really seems better to remove any SHOULD about
  nonce lengths....


  3. Vector-value AD

  The ID says that the AD must be a string, but SIV mode, an AEAD scheme
  by Tom Shrimpton and me [RS06], uses a vector-valued AD.  Your own ID
  might itself be seen as having some contents that motivate a
  vector-valued AD, eg, when you indicate that the AD could include

     addresses, ports, sequence numbers, protocol version numbers,
     and other fields that indicate how the plaintext or ciphertext
     should be handled, forwarded, or processed. In many situations,
     it is desirable to authenticate these fields.

  Note the plural, "fields"; I think the AD is quite often a list
  of values (more often then is a plaintext, nonce, or key).
  If this list must be formed into a string by the user there is
  a conceptual gap, a specificational gap, and a lost opportunity
  for optimization.  See [RS06].

  I am not trying to suggest that it's a terrible a thing for the AD
  to be a string; indeed a string AD has a different kind of elegance
  on it side. I'm only saying that it might be nice not to _preclude_
  the AD from being a vector of strings.


  4. Unbounded strings and the constants P_MAX, A_MAX, and N_MAX

  I understand P_MAX, A_MAX, and N_MAX to be bounds on what the
  mechanism is algorithmically capable of handling. One might guess
  the "type" of these values to be nonnegative integers. But it's more
  like that or "infinity": some algorithms can handle strings of any
  length (and indeed this is generally desirable). Be sure to indicate
  that these values can be nonnegative integers OR infinity.


  5. Nomenclature

  Getting to some lower-level stuff, I'll repeat my suggestion that the
  term "additional authenticated data" and the acronym "AAD" be replaced
  by the term "associated data" and the acronym "AD". While I realize
  that there's some precedent for the term AAD, (a) the (relatively
  small amount of) scientific literature making mention of this concept
  seems to favor "associated data" (eg, compare google-scholar hits);
  (b) The phrase "additional authenticated data" makes no English-language
  sense: the data isn't authenticated, it's something the user _wants_ to
  have authenticated. (Calling it (additional) authenticated data is
  a bit like naming a plaintext a "jumbled string" because the user
  wants to encrypt it.) (c) you already use the term AEAD extensively,
  an acronym that stands for "authenticated encryption with associated
  data" -- not "authenticated encryption with additional authenticated data".

  I'll mention too that, given the centrality of AEAD to this document,
  you probably should reference [R02], where AEAD was first named, defined,
  and formally investigated.


  6. Questionable prose

  Finally, a few specific statements that didn't make a whole lot of
  sense to me and probably should be cut:

  a. "When [AD, A, is used], authentication is provided without
     copying the data [A] into the ciphertext."  Not formally
     meaningful, not something you're in any position to mandate, and
     not something anyone would even think to do! [Encode A in the
     plaintext, perhaps....]

  b. "The nonce MAY be included in P or A if it is convenient to
     the application."   An odd suggestion.  A user-supplied nonce is
     needed for decryption, so somehow encoding it into the plaintext
     would serve no ostensible purpose; regardless, a user doesn't
     need your blessing to put anything he wants into P. Similarly, it
     would be weird to put a nonce into A, since, as you point out,
     the nonce is already authenticated; but, regardless, this isn't for
     you to judge.  (Actually, the one thing a user actually SHOULDN'T
     drop into P or A -- the key K or something derived from
     it -- you're silent on.)

  c. "The authenticated decrypt operation will, with high probability,
     return FAIL whenever its inputs were not created by the encrypt
     operation with the identical key (assuming that the AEAD algorithm
     is secure)."  This sentence has two interpretations, the way I read
     it, one of which is incorrect: that the decryption of a ciphertext C
     under a key K' different from the encryption key K will usually
     result in FAIL. That reading makes sense, but the claim isn't implied
     by any standard notion of AE security.


  Best wishes,
  phil


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



