Re: [Cfrg] Attacker changing tag length in OCB

"Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu> Wed, 29 May 2013 15:03 UTC

Return-Path: <prvs=9861f83d46=uri@ll.mit.edu>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B91421F92F4 for <cfrg@ietfa.amsl.com>; Wed, 29 May 2013 08:03:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Level:
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FtTJPvFEugZu for <cfrg@ietfa.amsl.com>; Wed, 29 May 2013 08:03:39 -0700 (PDT)
Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by ietfa.amsl.com (Postfix) with ESMTP id 727B421F918C for <cfrg@irtf.org>; Wed, 29 May 2013 08:03:37 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id r4TF3afH022503; Wed, 29 May 2013 11:03:36 -0400
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Ted Krovetz <ted@krovetz.net>
Date: Wed, 29 May 2013 11:03:32 -0400
Thread-Topic: [Cfrg] Attacker changing tag length in OCB
Thread-Index: Ac5cfbDjMLThd1OvRvyEbus9wg4SFg==
Message-ID: <CDCB9098.159E6%uri@ll.mit.edu>
In-Reply-To: <60CBDD6C-93EA-40D8-8E70-4A17E9EA0736@krovetz.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.4.130416
acceptlanguage: en-US
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; boundary="B_3452670212_4096485"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626, 1.0.431, 0.0.0000 definitions=2013-05-29_05:2013-05-29, 2013-05-29, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1211240000 definitions=main-1305290142
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Attacker changing tag length in OCB
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 29 May 2013 15:03:43 -0000

Ted,

Your explanation is perfectly satisfactory.

But I'd personally feel better if James M.'s suggestion was accepted -
i.e., if the tag length selection was explicitly encoded, perhaps the way
James proposed.

Tnx!
--
Regards,
Uri Blumenthal




On 5/29/13 10:28 , "Ted Krovetz" <ted@krovetz.net> wrote:

>James,
>
>Thanks for looking over the document. I didn't mean for this announcement
>to get posted here, but a few small edits caused an auto-announcement.
>Sorry.
>
>As for your concerns... AEAD_AES_128_OCB_TAGLEN128 and
>AEAD_AES_128_OCB_TAGLEN64 are different algorithms and a protocol will
>specify or negotiate one or the other, but not allow both simultaneously
>under the same key.
>
>If for some reason a protocol did want to allow tags valid under either
>algorithm, then the two algorithms would need to operate under different
>keys. Just like if you wanted to accept messages with tags valid under
>either HMAC or CBC-MAC, you'd use different keys for each.
>
>In other words, you are right. Shorter tags are simple truncations of
>longer tags. But, only a very poorly engineered system would be affected
>by this fact.
>
>-Ted
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg