
From nobody Thu Aug 11 11:47:34 2016
Return-Path: <wwwrun@rfc-editor.org>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 28B7712D60E for <smime@ietfa.amsl.com>; Thu, 11 Aug 2016 11:47:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.869
X-Spam-Level: 
X-Spam-Status: No, score=-103.869 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iJRpRsqWjJ-g for <smime@ietfa.amsl.com>; Thu, 11 Aug 2016 11:47:33 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B64012D5CA for <smime@ietf.org>; Thu, 11 Aug 2016 11:47:33 -0700 (PDT)
Received: by rfc-editor.org (Postfix, from userid 30) id 4444EB8111E; Thu, 11 Aug 2016 11:47:33 -0700 (PDT)
To: housley@vigilsec.com, stephen.farrell@cs.tcd.ie, Kathleen.Moriarty.ietf@gmail.com, paul.hoffman@vpnc.org, blaker@gmail.com
X-PHP-Originating-Script: 30:errata_mail_lib.php
From: RFC Errata System <rfc-editor@rfc-editor.org>
Message-Id: <20160811184733.4444EB8111E@rfc-editor.org>
Date: Thu, 11 Aug 2016 11:47:33 -0700 (PDT)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/89lW3-5fYwaTImEnZoDbchoX5EM>
Cc: quannguyen@google.com, rfc-editor@rfc-editor.org, smime@ietf.org
Subject: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Aug 2016 18:47:34 -0000

The following errata report has been submitted for RFC5084,
"Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774

--------------------------------------
Type: Technical
Reported by: QUAN NGUYEN <quannguyen@google.com>

Section: 3.2

Original Text
-------------
aes-ICVlen       AES-GCM-ICVlen DEFAULT 12

A length of 12 octets is RECOMMENDED.

Corrected Text
--------------
aes-ICVlen       AES-GCM-ICVlen DEFAULT 16

A length of 16 octets is RECOMMENDED.

Notes
-----
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug to use 12 bytes authentication tag (aes-ICVlen) as default if the code path [1] uses CMS. According to Ferguson's attack (http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf), if a user encrypts 2^32 block length message, then 12 bytes authentication tag length has only 96 - 32 = 64 bits security which is not good enough nowadays. Furthermore, once a forgery happens then authentication is leaked.

[1] In other code paths, all providers use 16 bytes authentication tag as default.

Instructions:
-------------
This erratum is currently posted as "Reported". If necessary, please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party (IESG)
can log in to change the status and edit the report, if necessary. 

--------------------------------------
RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
--------------------------------------
Title               : Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)
Publication Date    : November 2007
Author(s)           : R. Housley
Category            : PROPOSED STANDARD
Source              : S/MIME Mail Security
Area                : Security
Stream              : IETF
Verifying Party     : IESG


From nobody Sat Aug 13 10:03:55 2016
Return-Path: <ietf@augustcellars.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6A9712B00B for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 10:03:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Level: 
X-Spam-Status: No, score=-3.148 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tl7rzgk71hyt for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 10:03:52 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D43F012B005 for <smime@ietf.org>; Sat, 13 Aug 2016 10:03:51 -0700 (PDT)
Received: from hebrews (24.21.96.37) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Sat, 13 Aug 2016 10:15:34 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'RFC Errata System' <rfc-editor@rfc-editor.org>, <housley@vigilsec.com>, <stephen.farrell@cs.tcd.ie>, <Kathleen.Moriarty.ietf@gmail.com>, <paul.hoffman@vpnc.org>, <blaker@gmail.com>
References: <20160811184733.4444EB8111E@rfc-editor.org>
In-Reply-To: <20160811184733.4444EB8111E@rfc-editor.org>
Date: Sat, 13 Aug 2016 10:03:18 -0700
Message-ID: <027701d1f584$98da3320$ca8e9960$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHRaEVFPn+0uXujd3jpR3UjAM3696BINtMw
Content-Language: en-us
X-Originating-IP: [24.21.96.37]
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/OtD7faSDd3shiOZEPtmhOrndDEQ>
Cc: quannguyen@google.com, smime@ietf.org
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 17:03:53 -0000

The first half of this errata must be rejected.  We do not change the ASN.1
for something like this under just about any circumstances.

Changing the recommendation of a value should probably not be done by an
erratum but by publishing a new document.  We could make discuss and make
the recommendation change in the new S/MIME document in the LAMPS group
rather than in this document.

Jim


> -----Original Message-----
> From: smime [mailto:smime-bounces@ietf.org] On Behalf Of RFC Errata System
> Sent: Thursday, August 11, 2016 11:48 AM
> To: housley@vigilsec.com; stephen.farrell@cs.tcd.ie;
> Kathleen.Moriarty.ietf@gmail.com; paul.hoffman@vpnc.org;
> blaker@gmail.com
> Cc: quannguyen@google.com; rfc-editor@rfc-editor.org; smime@ietf.org
> Subject: [smime] [Technical Errata Reported] RFC5084 (4774)
> 
> The following errata report has been submitted for RFC5084, "Using AES-CCM
> and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax
> (CMS)".
> 
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774
> 
> --------------------------------------
> Type: Technical
> Reported by: QUAN NGUYEN <quannguyen@google.com>
> 
> Section: 3.2
> 
> Original Text
> -------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
> 
> A length of 12 octets is RECOMMENDED.
> 
> Corrected Text
> --------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
> 
> A length of 16 octets is RECOMMENDED.
> 
> Notes
> -----
> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug
to
> use 12 bytes authentication tag (aes-ICVlen) as default if the code path
[1] uses
> CMS. According to Ferguson's attack
> (http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-
> GCM/Ferguson2.pdf), if a user encrypts 2^32 block length message, then 12
> bytes authentication tag length has only 96 - 32 = 64 bits security which
is not
> good enough nowadays. Furthermore, once a forgery happens then
> authentication is leaked.
> 
> [1] In other code paths, all providers use 16 bytes authentication tag as
default.
> 
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please use
"Reply
> All" to discuss whether it should be verified or rejected. When a decision
is
> reached, the verifying party (IESG) can log in to change the status and
edit the
> report, if necessary.
> 
> --------------------------------------
> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
> --------------------------------------
> Title               : Using AES-CCM and AES-GCM Authenticated Encryption
in the
> Cryptographic Message Syntax (CMS)
> Publication Date    : November 2007
> Author(s)           : R. Housley
> Category            : PROPOSED STANDARD
> Source              : S/MIME Mail Security
> Area                : Security
> Stream              : IETF
> Verifying Party     : IESG
> 
> _______________________________________________
> smime mailing list
> smime@ietf.org
> https://www.ietf.org/mailman/listinfo/smime


From nobody Sat Aug 13 10:08:27 2016
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5C4C4124281 for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 10:08:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DewZ2Bn8ph93 for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 10:08:25 -0700 (PDT)
Received: from mail.proper.com (Opus1.Proper.COM [207.182.41.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E7EA120727 for <smime@ietf.org>; Sat, 13 Aug 2016 10:08:25 -0700 (PDT)
Received: from [192.168.114.1] (50-1-98-193.dsl.dynamic.fusionbroadband.com [50.1.98.193]) (authenticated bits=0) by mail.proper.com (8.15.2/8.14.9) with ESMTPSA id u7DH8Gap029572 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 Aug 2016 10:08:16 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: mail.proper.com: Host 50-1-98-193.dsl.dynamic.fusionbroadband.com [50.1.98.193] claimed to be [192.168.114.1]
From: "Paul Hoffman" <paul.hoffman@vpnc.org>
To: "RFC Errata System" <rfc-editor@rfc-editor.org>
Date: Sat, 13 Aug 2016 10:08:15 -0700
Message-ID: <A64AAACB-D699-4D55-A507-68E53F060363@vpnc.org>
In-Reply-To: <027701d1f584$98da3320$ca8e9960$@augustcellars.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <027701d1f584$98da3320$ca8e9960$@augustcellars.com>
MIME-Version: 1.0
X-Mailer: MailMate (1.9.4r5234)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/wnm3HoVqBav0DLsF9p0Wikh1gkI>
Cc: quannguyen@google.com, smime@ietf.org, Jim Schaad <ietf@augustcellars.com>, Kathleen.Moriarty.ietf@gmail.com, stephen.farrell@cs.tcd.ie
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 17:08:26 -0000

On 13 Aug 2016, at 10:03, Jim Schaad wrote:

> The first half of this errata must be rejected.  We do not change the ASN.1
> for something like this under just about any circumstances.
>
> Changing the recommendation of a value should probably not be done by an
> erratum but by publishing a new document.  We could make discuss and make
> the recommendation change in the new S/MIME document in the LAMPS group
> rather than in this document.

I fully agree with Jim on both counts.

--Paul Hoffman


From nobody Sat Aug 13 12:36:14 2016
Return-Path: <ietf@augustcellars.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3030E12D1D2 for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 12:36:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Level: 
X-Spam-Status: No, score=-3.148 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eT6vl-LICeNn for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 12:36:12 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D06A12D097 for <smime@ietf.org>; Sat, 13 Aug 2016 12:36:12 -0700 (PDT)
Received: from hebrews (24.21.96.37) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Sat, 13 Aug 2016 12:48:24 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: <smime@ietf.org>
Date: Sat, 13 Aug 2016 12:36:07 -0700
Message-ID: <029401d1f599$f1a57950$d4f06bf0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdH1mb36078oKGZbSaG5jg4/QQdMvA==
Content-Language: en-us
X-Originating-IP: [24.21.96.37]
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/_X2SRP8egL_pGSn31ehIn7nQ2U0>
Subject: [smime] Implementations of ECDH key agreement
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 19:36:13 -0000

I am looking for anybody who has implemented the ECDH key agreement for the
NIST curves.  There is an issue dealing with how the public key is encoded
in the originatorKey field vs how it is done in a certificate.

Jim



From nobody Sat Aug 13 14:34:24 2016
Return-Path: <wwwrun@rfc-editor.org>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 87E5112D5BE for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 14:34:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.869
X-Spam-Level: 
X-Spam-Status: No, score=-103.869 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5XGpMunFGUYA for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 14:34:21 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3106712D5B2 for <smime@ietf.org>; Sat, 13 Aug 2016 14:34:21 -0700 (PDT)
Received: by rfc-editor.org (Postfix, from userid 30) id 15CF8B80D57; Sat, 13 Aug 2016 14:34:21 -0700 (PDT)
To: turners@ieca.com, dbrown@certicom.com, stephen.farrell@cs.tcd.ie, Kathleen.Moriarty.ietf@gmail.com, paul.hoffman@vpnc.org, blaker@gmail.com
X-PHP-Originating-Script: 30:errata_mail_lib.php
From: RFC Errata System <rfc-editor@rfc-editor.org>
Message-Id: <20160813213421.15CF8B80D57@rfc-editor.org>
Date: Sat, 13 Aug 2016 14:34:21 -0700 (PDT)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/fokddNk5izTevkIQRb3TMTTCWrk>
Cc: ietf@augustcellars.com, rfc-editor@rfc-editor.org, smime@ietf.org
Subject: [smime] [Technical Errata Reported] RFC5753 (4777)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 21:34:22 -0000

The following errata report has been submitted for RFC5753,
"Use of Elliptic Curve Cryptography (ECC) Algorithms in Cryptographic Message Syntax (CMS)".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=5753&eid=4777

--------------------------------------
Type: Technical
Reported by: Jim Schaad <ietf@augustcellars.com>

Section: 3.1.1

Original Text
-------------
-  originator MUST be the alternative originatorKey.  The
      originatorKey algorithm field MUST contain the id-ecPublicKey
      object identifier (see Section 7.1.2).  The parameters associated
      with id-ecPublicKey MUST be absent, ECParameters, or NULL.  The
      parameters associated with id-ecPublicKey SHOULD be absent or
      ECParameters, and NULL is allowed to support legacy
      implementations.  The previous version of this document required
      NULL to be present.  If the parameters are ECParameters, then they
      MUST be namedCurve.  The originatorKey publicKey field MUST
      contain the DER encoding of the value of the ASN.1 type ECPoint
      (see Section 7.2), which represents the sending agent's ephemeral
      EC public key.  The ECPoint in uncompressed form MUST be
      supported.

Corrected Text
--------------
-  originator MUST be the alternative originatorKey.  The
      originatorKey algorithm field MUST contain the id-ecPublicKey
      object identifier (see Section 7.1.2).  The parameters associated
      with id-ecPublicKey MUST be absent, ECParameters, or NULL.  The
      parameters associated with id-ecPublicKey SHOULD be absent or
      ECParameters, and NULL is allowed to support legacy
      implementations.  The previous version of this document required
      NULL to be present.  If the parameters are ECParameters, then they
      MUST be namedCurve.  The originatorKey publicKey field MUST
      contain the encoded public key as defined in [X9.62].  The hybred
      form MUST NOT be used.  The ECPoint in uncompressed form MUST be
      supported.  This mirrors the same format used in public key 
      certificates as defined in Section 2.2 of [RFC5480].

Notes
-----
There is a problem in that for ECPoints, the public key is defined to be encoded differently in this document than it is in a public key certificate.  The difference is the presence of the ASN.1 OCTET STRING wrapper.

OpenSSL and BouncyCastle both use the unwrapped version per Dr. Stephen Henson note to me in mail.

This error is also present in sections 3.1.2, 3.1.3, 3.2.1, 3.2.2, 7.2

Instructions:
-------------
This erratum is currently posted as "Reported". If necessary, please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party (IESG)
can log in to change the status and edit the report, if necessary. 

--------------------------------------
RFC5753 (draft-ietf-smime-3278bis-09)
--------------------------------------
Title               : Use of Elliptic Curve Cryptography (ECC) Algorithms in Cryptographic Message Syntax (CMS)
Publication Date    : January 2010
Author(s)           : S. Turner, D. Brown
Category            : INFORMATIONAL
Source              : S/MIME Mail Security
Area                : Security
Stream              : IETF
Verifying Party     : IESG


From nobody Sat Aug 13 14:47:26 2016
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EB06612D539 for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 14:47:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J1l75pDiiUdG for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 14:47:24 -0700 (PDT)
Received: from mail.proper.com (Opus1.Proper.COM [207.182.41.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 48A9A12B051 for <smime@ietf.org>; Sat, 13 Aug 2016 14:47:24 -0700 (PDT)
Received: from [10.32.60.16] (50-1-98-193.dsl.dynamic.fusionbroadband.com [50.1.98.193]) (authenticated bits=0) by mail.proper.com (8.15.2/8.14.9) with ESMTPSA id u7DLktUD043766 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 Aug 2016 14:46:55 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: mail.proper.com: Host 50-1-98-193.dsl.dynamic.fusionbroadband.com [50.1.98.193] claimed to be [10.32.60.16]
From: "Paul Hoffman" <paul.hoffman@vpnc.org>
To: "RFC Errata System" <rfc-editor@rfc-editor.org>
Date: Sat, 13 Aug 2016 14:46:54 -0700
Message-ID: <EB493FAE-10F6-4B29-8960-32C70C81F28F@vpnc.org>
In-Reply-To: <20160813213421.15CF8B80D57@rfc-editor.org>
References: <20160813213421.15CF8B80D57@rfc-editor.org>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-Mailer: MailMate (1.9.4r5234)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/hWTfNsZBQVyC8pyQmDmCcIqzgSA>
Cc: smime@ietf.org, ietf@augustcellars.com, Kathleen.Moriarty.ietf@gmail.com, turners@ieca.com, stephen.farrell@cs.tcd.ie
Subject: Re: [smime] [Technical Errata Reported] RFC5753 (4777)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 21:47:26 -0000

Please do not accept this errata until further discussion.

Discussion:

1) I believe that the errata would be *much* clearer if the errata was 
only for the changed sentences, not the whole paragraph. Thus, I think 
the "Original Text" should start with "The originatorKey publicKey field 
MUST". If others agree, the submitter could turn in a new errata.

2) The submitter says "This error is also present in sections 3.1.2, 
3.1.3, 3.2.1, 3.2.2, 7.2". That feels like it *might* be sufficient for 
the reader to understand, but it would be clearer if the errata included 
the change for each of those sections. If others agree, the submitter 
could turn in a new errata.

--Paul Hoffman

On 13 Aug 2016, at 14:34, RFC Errata System wrote:

> The following errata report has been submitted for RFC5753,
> "Use of Elliptic Curve Cryptography (ECC) Algorithms in Cryptographic 
> Message Syntax (CMS)".
>
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=5753&eid=4777
>
> --------------------------------------
> Type: Technical
> Reported by: Jim Schaad <ietf@augustcellars.com>
>
> Section: 3.1.1
>
> Original Text
> -------------
> -  originator MUST be the alternative originatorKey.  The
>       originatorKey algorithm field MUST contain the id-ecPublicKey
>       object identifier (see Section 7.1.2).  The parameters 
> associated
>       with id-ecPublicKey MUST be absent, ECParameters, or NULL.  The
>       parameters associated with id-ecPublicKey SHOULD be absent or
>       ECParameters, and NULL is allowed to support legacy
>       implementations.  The previous version of this document required
>       NULL to be present.  If the parameters are ECParameters, then 
> they
>       MUST be namedCurve.  The originatorKey publicKey field MUST
>       contain the DER encoding of the value of the ASN.1 type ECPoint
>       (see Section 7.2), which represents the sending agent's 
> ephemeral
>       EC public key.  The ECPoint in uncompressed form MUST be
>       supported.
>
> Corrected Text
> --------------
> -  originator MUST be the alternative originatorKey.  The
>       originatorKey algorithm field MUST contain the id-ecPublicKey
>       object identifier (see Section 7.1.2).  The parameters 
> associated
>       with id-ecPublicKey MUST be absent, ECParameters, or NULL.  The
>       parameters associated with id-ecPublicKey SHOULD be absent or
>       ECParameters, and NULL is allowed to support legacy
>       implementations.  The previous version of this document required
>       NULL to be present.  If the parameters are ECParameters, then 
> they
>       MUST be namedCurve.  The originatorKey publicKey field MUST
>       contain the encoded public key as defined in [X9.62].  The 
> hybred
>       form MUST NOT be used.  The ECPoint in uncompressed form MUST be
>       supported.  This mirrors the same format used in public key
>       certificates as defined in Section 2.2 of [RFC5480].
>
> Notes
> -----
> There is a problem in that for ECPoints, the public key is defined to 
> be encoded differently in this document than it is in a public key 
> certificate.  The difference is the presence of the ASN.1 OCTET STRING 
> wrapper.
>
> OpenSSL and BouncyCastle both use the unwrapped version per Dr. 
> Stephen Henson note to me in mail.
>
> This error is also present in sections 3.1.2, 3.1.3, 3.2.1, 3.2.2, 7.2
>
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary.
>
> --------------------------------------
> RFC5753 (draft-ietf-smime-3278bis-09)
> --------------------------------------
> Title               : Use of Elliptic Curve Cryptography (ECC) 
> Algorithms in Cryptographic Message Syntax (CMS)
> Publication Date    : January 2010
> Author(s)           : S. Turner, D. Brown
> Category            : INFORMATIONAL
> Source              : S/MIME Mail Security
> Area                : Security
> Stream              : IETF
> Verifying Party     : IESG


From nobody Sat Aug 13 15:00:22 2016
Return-Path: <dev+ietf@seantek.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2EE9912D603 for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 15:00:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iKuFEtprPZuQ for <smime@ietfa.amsl.com>; Sat, 13 Aug 2016 15:00:20 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EA7E412D0F1 for <smime@ietf.org>; Sat, 13 Aug 2016 15:00:19 -0700 (PDT)
Received: from [192.168.123.110] (unknown [75.83.2.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id BB2F9509B8; Sat, 13 Aug 2016 18:00:13 -0400 (EDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <A64AAACB-D699-4D55-A507-68E53F060363@vpnc.org>
Date: Sat, 13 Aug 2016 15:00:32 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <3BB5C07D-9368-4166-94A5-0E160CC80CEF@seantek.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <027701d1f584$98da3320$ca8e9960$@augustcellars.com> <A64AAACB-D699-4D55-A507-68E53F060363@vpnc.org>
To: Paul Hoffman <paul.hoffman@vpnc.org>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/Xi0Ct2-ITmlF-Hcm8GTgUsDLQ_Q>
Cc: quannguyen@google.com, smime@ietf.org, Jim Schaad <ietf@augustcellars.com>, Kathleen.Moriarty.ietf@gmail.com, RFC Errata System <rfc-editor@rfc-editor.org>, stephen.farrell@cs.tcd.ie
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Aug 2016 22:00:21 -0000

> On Aug 13, 2016, at 10:08 AM, Paul Hoffman <paul.hoffman@vpnc.org> =
wrote:
>=20
> On 13 Aug 2016, at 10:03, Jim Schaad wrote:
>=20
>> The first half of this errata must be rejected.  We do not change the =
ASN.1
>> for something like this under just about any circumstances.
>>=20
>> Changing the recommendation of a value should probably not be done by =
an
>> erratum but by publishing a new document.  We could make discuss and =
make
>> the recommendation change in the new S/MIME document in the LAMPS =
group
>> rather than in this document.
>=20
> I fully agree with Jim on both counts.

I also agree with Jim.

Sean


From nobody Mon Aug 15 11:36:11 2016
Return-Path: <ietf@augustcellars.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CEE8C12D620 for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 11:36:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Level: 
X-Spam-Status: No, score=-3.148 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oJx1XeMuvai7 for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 11:36:08 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9A7712D5B9 for <smime@ietf.org>; Mon, 15 Aug 2016 11:36:07 -0700 (PDT)
Received: from hebrews (24.21.96.37) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 15 Aug 2016 11:47:55 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Paul Hoffman' <paul.hoffman@vpnc.org>, 'RFC Errata System' <rfc-editor@rfc-editor.org>
References: <20160813213421.15CF8B80D57@rfc-editor.org> <EB493FAE-10F6-4B29-8960-32C70C81F28F@vpnc.org>
In-Reply-To: <EB493FAE-10F6-4B29-8960-32C70C81F28F@vpnc.org>
Date: Mon, 15 Aug 2016 11:35:39 -0700
Message-ID: <043d01d1f723$d4acb760$7e062620$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQEzQ8+sRB9NCKosAWB6LnYE/qlN6QKIiwXboXN6+pA=
Content-Language: en-us
X-Originating-IP: [24.21.96.37]
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/ytYfAJE25IOSXXr2UuHjxxj6L8k>
Cc: smime@ietf.org, Kathleen.Moriarty.ietf@gmail.com, turners@ieca.com, stephen.farrell@cs.tcd.ie
Subject: Re: [smime] [Technical Errata Reported] RFC5753 (4777)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 18:36:11 -0000

I will be honest.  I would be happier with an update of this document rather
than just having the errata.

I would be happy to look at this in a couple of days and see if I can make
the text clearer than it currently is.  I find the text that does the same
thing in RFC5480 to be hard to decipher but the easiest thing might still
just be to point to that document for how to do this.

Jim


> -----Original Message-----
> From: Paul Hoffman [mailto:paul.hoffman@vpnc.org]
> Sent: Saturday, August 13, 2016 2:47 PM
> To: RFC Errata System <rfc-editor@rfc-editor.org>
> Cc: turners@ieca.com; dbrown@certicom.com; stephen.farrell@cs.tcd.ie;
> Kathleen.Moriarty.ietf@gmail.com; blaker@gmail.com;
> ietf@augustcellars.com; smime@ietf.org
> Subject: Re: [Technical Errata Reported] RFC5753 (4777)
> 
> Please do not accept this errata until further discussion.
> 
> Discussion:
> 
> 1) I believe that the errata would be *much* clearer if the errata was
only for
> the changed sentences, not the whole paragraph. Thus, I think the
"Original
> Text" should start with "The originatorKey publicKey field MUST". If
others
> agree, the submitter could turn in a new errata.
> 
> 2) The submitter says "This error is also present in sections 3.1.2,
3.1.3, 3.2.1,
> 3.2.2, 7.2". That feels like it *might* be sufficient for the reader to
understand,
> but it would be clearer if the errata included the change for each of
those
> sections. If others agree, the submitter could turn in a new errata.
> 
> --Paul Hoffman
> 
> On 13 Aug 2016, at 14:34, RFC Errata System wrote:
> 
> > The following errata report has been submitted for RFC5753, "Use of
> > Elliptic Curve Cryptography (ECC) Algorithms in Cryptographic Message
> > Syntax (CMS)".
> >
> > --------------------------------------
> > You may review the report below and at:
> > http://www.rfc-editor.org/errata_search.php?rfc=5753&eid=4777
> >
> > --------------------------------------
> > Type: Technical
> > Reported by: Jim Schaad <ietf@augustcellars.com>
> >
> > Section: 3.1.1
> >
> > Original Text
> > -------------
> > -  originator MUST be the alternative originatorKey.  The
> >       originatorKey algorithm field MUST contain the id-ecPublicKey
> >       object identifier (see Section 7.1.2).  The parameters
> > associated
> >       with id-ecPublicKey MUST be absent, ECParameters, or NULL.  The
> >       parameters associated with id-ecPublicKey SHOULD be absent or
> >       ECParameters, and NULL is allowed to support legacy
> >       implementations.  The previous version of this document required
> >       NULL to be present.  If the parameters are ECParameters, then
> > they
> >       MUST be namedCurve.  The originatorKey publicKey field MUST
> >       contain the DER encoding of the value of the ASN.1 type ECPoint
> >       (see Section 7.2), which represents the sending agent's
> > ephemeral
> >       EC public key.  The ECPoint in uncompressed form MUST be
> >       supported.
> >
> > Corrected Text
> > --------------
> > -  originator MUST be the alternative originatorKey.  The
> >       originatorKey algorithm field MUST contain the id-ecPublicKey
> >       object identifier (see Section 7.1.2).  The parameters
> > associated
> >       with id-ecPublicKey MUST be absent, ECParameters, or NULL.  The
> >       parameters associated with id-ecPublicKey SHOULD be absent or
> >       ECParameters, and NULL is allowed to support legacy
> >       implementations.  The previous version of this document required
> >       NULL to be present.  If the parameters are ECParameters, then
> > they
> >       MUST be namedCurve.  The originatorKey publicKey field MUST
> >       contain the encoded public key as defined in [X9.62].  The
> > hybred
> >       form MUST NOT be used.  The ECPoint in uncompressed form MUST be
> >       supported.  This mirrors the same format used in public key
> >       certificates as defined in Section 2.2 of [RFC5480].
> >
> > Notes
> > -----
> > There is a problem in that for ECPoints, the public key is defined to
> > be encoded differently in this document than it is in a public key
> > certificate.  The difference is the presence of the ASN.1 OCTET STRING
> > wrapper.
> >
> > OpenSSL and BouncyCastle both use the unwrapped version per Dr.
> > Stephen Henson note to me in mail.
> >
> > This error is also present in sections 3.1.2, 3.1.3, 3.2.1, 3.2.2, 7.2
> >
> > Instructions:
> > -------------
> > This erratum is currently posted as "Reported". If necessary, please
> > use "Reply All" to discuss whether it should be verified or rejected.
> > When a decision is reached, the verifying party (IESG) can log in to
> > change the status and edit the report, if necessary.
> >
> > --------------------------------------
> > RFC5753 (draft-ietf-smime-3278bis-09)
> > --------------------------------------
> > Title               : Use of Elliptic Curve Cryptography (ECC)
> > Algorithms in Cryptographic Message Syntax (CMS)
> > Publication Date    : January 2010
> > Author(s)           : S. Turner, D. Brown
> > Category            : INFORMATIONAL
> > Source              : S/MIME Mail Security
> > Area                : Security
> > Stream              : IETF
> > Verifying Party     : IESG


From nobody Mon Aug 15 13:55:41 2016
Return-Path: <housley@vigilsec.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7964712D50E for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 13:55:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.899
X-Spam-Level: 
X-Spam-Status: No, score=-101.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fuZIvbrjZTj0 for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 13:55:37 -0700 (PDT)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA0C912D18A for <smime@ietf.org>; Mon, 15 Aug 2016 13:55:37 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 784DE3005D8 for <smime@ietf.org>; Mon, 15 Aug 2016 16:55:35 -0400 (EDT)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1]) by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id L8hpgyaDo2DY for <smime@ietf.org>; Mon, 15 Aug 2016 16:55:32 -0400 (EDT)
Received: from [192.168.2.100] (pool-108-51-128-219.washdc.fios.verizon.net [108.51.128.219]) by mail.smeinc.net (Postfix) with ESMTPSA id 63020300430; Mon, 15 Aug 2016 16:55:31 -0400 (EDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_C4D8DC90-B21C-4EB0-94B5-B72BBBE318BE"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com>
Date: Mon, 15 Aug 2016 16:55:35 -0400
Message-Id: <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com>
To: Quan Nguyen <quannguyen@google.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/j2QLTa_uuaYEauQQk5Tz2fZNtiA>
Cc: IETF SMIME <smime@ietf.org>, Paul Hoffman <paul.hoffman@vpnc.org>, Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, David McGrew <mcgrew@cisco.com>, RFC Editor <rfc-editor@rfc-editor.org>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 20:55:40 -0000

--Apple-Mail=_C4D8DC90-B21C-4EB0-94B5-B72BBBE318BE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Quan:

I do not think that we can change the DEFAULT value associated with =
these OIDs.  Changing the meaning of an absent aes-ICVlen will result in =
too many interoperability problems.  However, we could put out a very =
short RFC that updates RFC 5084 to recommend the use of 16 octet =
authentication tags in all situations. =20

Russ


On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com> wrote:

>=20
>=20
> On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System =
<rfc-editor@rfc-editor.org> wrote:
> The following errata report has been submitted for RFC5084,
> "Using AES-CCM and AES-GCM Authenticated Encryption in the =
Cryptographic Message Syntax (CMS)".
>=20
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=3D5084&eid=3D4774
>=20
> --------------------------------------
> Type: Technical
> Reported by: QUAN NGUYEN <quannguyen@google.com>
>=20
> Section: 3.2
>=20
> Original Text
> -------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>=20
> A length of 12 octets is RECOMMENDED.
>=20
> Corrected Text
> --------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>=20
> A length of 16 octets is RECOMMENDED.
>=20
> Notes
> -----
> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a =
bug to use 12 bytes authentication tag (aes-ICVlen) as default if the =
code path [1] uses CMS. According to Ferguson's attack =
(http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Fer=
guson2.pdf), if a user encrypts 2^32 block length message, then 12 bytes =
authentication tag length has only 96 - 32 =3D 64 bits security which is =
not good enough nowadays. Furthermore, once a forgery happens then =
authentication is leaked.
>=20
> Sorry, I meant "authentication key" is leaked.=20
>=20
> [1] In other code paths, all providers use 16 bytes authentication tag =
as default.
>=20
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary.
>=20
> --------------------------------------
> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
> --------------------------------------
> Title               : Using AES-CCM and AES-GCM Authenticated =
Encryption in the Cryptographic Message Syntax (CMS)
> Publication Date    : November 2007
> Author(s)           : R. Housley
> Category            : PROPOSED STANDARD
> Source              : S/MIME Mail Security
> Area                : Security
> Stream              : IETF
> Verifying Party     : IESG
>=20
>=20


--Apple-Mail=_C4D8DC90-B21C-4EB0-94B5-B72BBBE318BE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;">Quan:<div><br></div><div>I do not think that we can =
change the DEFAULT value associated with these OIDs. &nbsp;Changing the =
meaning of an absent aes-ICVlen will result in too many interoperability =
problems. &nbsp;However, we could put out a very short RFC that updates =
RFC 5084 to recommend the use of 16 octet authentication tags in all =
situations. =
&nbsp;</div><div><br></div><div>Russ</div><div><br></div><div><br><div><di=
v>On Aug 11, 2016, at 2:49 PM, Quan Nguyen &lt;<a =
href=3D"mailto:quannguyen@google.com">quannguyen@google.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div =
class=3D"gmail_quote">On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata =
System <span dir=3D"ltr">&lt;<a href=3D"mailto:rfc-editor@rfc-editor.org" =
target=3D"_blank">rfc-editor@rfc-editor.org</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">The following errata =
report has been submitted for RFC5084,<br>
"Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic =
Message Syntax (CMS)".<br>
<br>
------------------------------<wbr>--------<br>
You may review the report below and at:<br>
<a =
href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=3D4=
774" rel=3D"noreferrer" =
target=3D"_blank">http://www.rfc-editor.org/<wbr>errata_search.php?rfc=3D5=
084&amp;<wbr>eid=3D4774</a><br>
<br>
------------------------------<wbr>--------<br>
Type: Technical<br>
Reported by: QUAN NGUYEN &lt;<a =
href=3D"mailto:quannguyen@google.com">quannguyen@google.com</a>&gt;<br>
<br>
Section: 3.2<br>
<br>
Original Text<br>
-------------<br>
aes-ICVlen&nbsp; &nbsp; &nbsp; &nbsp;AES-GCM-ICVlen DEFAULT 12<br>
<br>
A length of 12 octets is RECOMMENDED.<br>
<br>
Corrected Text<br>
--------------<br>
aes-ICVlen&nbsp; &nbsp; &nbsp; &nbsp;AES-GCM-ICVlen DEFAULT 16<br>
<br>
A length of 16 octets is RECOMMENDED.<br>
<br>
Notes<br>
-----<br>
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug =
to use 12 bytes authentication tag (aes-ICVlen) as default if the code =
path [1] uses CMS. According to Ferguson's attack (<a =
href=3D"http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-=
GCM/Ferguson2.pdf" rel=3D"noreferrer" =
target=3D"_blank">http://csrc.nist.gov/groups/<wbr>ST/toolkit/BCM/document=
s/<wbr>comments/CWC-GCM/Ferguson2.pdf</a><wbr>), if a user encrypts 2^32 =
block length message, then 12 bytes authentication tag length has only =
96 - 32 =3D 64 bits security which is not good enough nowadays. =
Furthermore, once a forgery happens then authentication is =
leaked.<br></blockquote><div><br></div><div>Sorry, I meant =
"authentication <b>key</b>" is leaked.&nbsp;</div><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">
<br>
[1] In other code paths, all providers use 16 bytes authentication tag =
as default.<br>
<br>
Instructions:<br>
-------------<br>
This erratum is currently posted as "Reported". If necessary, please<br>
use "Reply All" to discuss whether it should be verified or<br>
rejected. When a decision is reached, the verifying party (IESG)<br>
can log in to change the status and edit the report, if necessary.<br>
<br>
------------------------------<wbr>--------<br>
RFC5084 (draft-ietf-smime-cms-aes-ccm-<wbr>and-gcm-03)<br>
------------------------------<wbr>--------<br>
Title&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: Using =
AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic =
Message Syntax (CMS)<br>
Publication Date&nbsp; &nbsp; : November 2007<br>
Author(s)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: R. Housley<br>
Category&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : PROPOSED =
STANDARD<br>
Source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : S/MIME Mail =
Security<br>
Area&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : =
Security<br>
Stream&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : IETF<br>
Verifying Party&nbsp; &nbsp; &nbsp;: IESG<br>
<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></body></html>=

--Apple-Mail=_C4D8DC90-B21C-4EB0-94B5-B72BBBE318BE--


From nobody Mon Aug 15 14:37:19 2016
Return-Path: <housley@vigilsec.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 88D0C12D08F for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 14:37:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.899
X-Spam-Level: 
X-Spam-Status: No, score=-101.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mGS0D4TsPcx4 for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 14:37:16 -0700 (PDT)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69417120727 for <smime@ietf.org>; Mon, 15 Aug 2016 14:37:16 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id 4034F3005D7 for <smime@ietf.org>; Mon, 15 Aug 2016 17:37:14 -0400 (EDT)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1]) by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cDWRmNSL1jM8 for <smime@ietf.org>; Mon, 15 Aug 2016 17:37:12 -0400 (EDT)
Received: from [192.168.2.100] (pool-108-51-128-219.washdc.fios.verizon.net [108.51.128.219]) by mail.smeinc.net (Postfix) with ESMTPSA id CE52A3000E3; Mon, 15 Aug 2016 17:37:11 -0400 (EDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_8A8AAC23-E0FE-48D2-B952-778648994DB9"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com>
Date: Mon, 15 Aug 2016 17:27:44 -0400
Message-Id: <5129C662-699A-447A-9767-1B6116B0B431@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com>
To: Quan Nguyen <quannguyen@google.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/6VQUznQ0CtVY1vospjxPbuJHNZI>
Cc: IETF SMIME <smime@ietf.org>, Paul Hoffman <paul.hoffman@vpnc.org>, Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, David McGrew <mcgrew@cisco.com>, RFC Editor <rfc-editor@rfc-editor.org>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 21:37:17 -0000

--Apple-Mail=_8A8AAC23-E0FE-48D2-B952-778648994DB9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Quan:

> I do not think that we can change the DEFAULT value associated with =
these OIDs.  Changing the meaning of an absent aes-ICVlen will result in =
too many interoperability problems.
>=20
> Yeah, I'm aware of it and I understand your concern.
> =20
>  However, we could put out a very short RFC that updates RFC 5084 to =
recommend the use of 16 octet authentication tags in all situations. =20
>=20
> Thanks for doing this :) It's SGTM.

Are you willing to help write?

Russ=

--Apple-Mail=_8A8AAC23-E0FE-48D2-B952-778648994DB9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;">Quan:<br><div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><blockquote =
class=3D"gmail_quote" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: =
0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, =
204, 204); border-left-style: solid; padding-left: 1ex;"><div =
style=3D"word-wrap: break-word;">I do not think that we can change the =
DEFAULT value associated with these OIDs.&nbsp; Changing the meaning of =
an absent aes-ICVlen will result in too many interoperability =
problems.</div></blockquote><div style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;"><br></div><div style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Yeah, =
I'm aware of it and I understand your concern.</div><div =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;">&nbsp;</div><blockquote =
class=3D"gmail_quote" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: =
0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, =
204, 204); border-left-style: solid; padding-left: 1ex;"><div =
style=3D"word-wrap: break-word;">&nbsp;However, we could put out a very =
short RFC that updates RFC 5084 to recommend the use of 16 octet =
authentication tags in all situations. &nbsp;</div></blockquote><div =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;"><br></div><div style=3D"font-family:=
 Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;">Thanks for doing this :) It's =
SGTM.</div></blockquote></div><br><div>Are you willing to help =
write?</div><div><br></div><div>Russ</div></body></html>=

--Apple-Mail=_8A8AAC23-E0FE-48D2-B952-778648994DB9--


From quannguyen@google.com  Thu Aug 11 11:50:17 2016
Return-Path: <quannguyen@google.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9B15512D7FF for <smime@ietfa.amsl.com>; Thu, 11 Aug 2016 11:50:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.247
X-Spam-Level: 
X-Spam-Status: No, score=-3.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O9AtlnBe2V9y for <smime@ietfa.amsl.com>; Thu, 11 Aug 2016 11:50:15 -0700 (PDT)
Received: from mail-ua0-x235.google.com (mail-ua0-x235.google.com [IPv6:2607:f8b0:400c:c08::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 94E64127077 for <smime@ietf.org>; Thu, 11 Aug 2016 11:50:15 -0700 (PDT)
Received: by mail-ua0-x235.google.com with SMTP id n59so7374055uan.2 for <smime@ietf.org>; Thu, 11 Aug 2016 11:50:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Vj5bB4SOVRH7adfCJ6fPwP9eGngCJ2LPV5cvrisLJaE=; b=jQa5/ci3j99y6M5ZC4PHk9Cwc+FweRe+Uz4m2tea+xqsyTcufTtKau0RlDylkESlHe jkfs6X2o7Cf2YmNm/oVVgJDFyrzwLrRm7ia6SL2sFgywcOl1pI98Bc2nq5KFjUCG8KWk WuA1N2wKH4ts0mfEu1NYAMU6xjBXxnFnkX46jPLsMbKSKSe75B/0uUlbYY0vbXxsXmST XI750BwSZoyGVPv8cOqlga8l2dsyamJTRg4ctwrNMvuGocR3gvZDVCiVfKYbSyX899hv yG8ttGZ86PpYIjExPFGHeGDWRP6b1g0irHMjkqESfapRW8e8aBWfW8pGiZ/4saD2lzJD j5ng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Vj5bB4SOVRH7adfCJ6fPwP9eGngCJ2LPV5cvrisLJaE=; b=LoBmD85J5pC0zff+L0zNTEQ7D81YT8m1ZEZq797pwJKrQ/otoxLZhLy9jdj66RIfTj jjOJ8hz3MXZXylz3UZn1l/yv84ZxMnAU+rP5UCfJtTN2ObhiKTpgwxn2UfZHBSML/RZz VDqYELIfcBeZkUhEk2vklPr/IiBMrzyzaSSXOfCMwNtWSI21KYLa2euf3tJfZlQTMr4m soIfC36hwpwiDPFo8T8n9rycuw6XjcpfFdjloJo/E0WN33B031UI/Lt+qUTXmZmAjpNE P5NdqQQRMxrvKhMbEQkxVxM1+91L3wS4AMCZslndSqNKdvfvyDImESJpOl9184XZnpG/ RfZg==
X-Gm-Message-State: AEkoouvHK/KYJ2WYojDkMrkioZTIbTeoplkjqBmi3XYmxd76UeWUW7hz6IE8AlrksRxRvvOeqFXGQ4nODskswmM4
X-Received: by 10.31.244.138 with SMTP id s132mr1225125vkh.49.1470941414645; Thu, 11 Aug 2016 11:50:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.151.197 with HTTP; Thu, 11 Aug 2016 11:49:54 -0700 (PDT)
In-Reply-To: <20160811184733.4444EB8111E@rfc-editor.org>
References: <20160811184733.4444EB8111E@rfc-editor.org>
From: Quan Nguyen <quannguyen@google.com>
Date: Thu, 11 Aug 2016 11:49:54 -0700
Message-ID: <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com>
To: RFC Errata System <rfc-editor@rfc-editor.org>
Content-Type: multipart/alternative; boundary=94eb2c1124f281d22c0539d03c73
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/SGlZsjoviGO0kYxk96Vb2SkHL_I>
X-Mailman-Approved-At: Mon, 15 Aug 2016 14:47:09 -0700
Cc: smime@ietf.org, paul.hoffman@vpnc.org, Kathleen.Moriarty.ietf@gmail.com, stephen.farrell@cs.tcd.ie
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Aug 2016 18:54:56 -0000

--94eb2c1124f281d22c0539d03c73
Content-Type: text/plain; charset=UTF-8

On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <
rfc-editor@rfc-editor.org> wrote:

> The following errata report has been submitted for RFC5084,
> "Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic
> Message Syntax (CMS)".
>
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774
>
> --------------------------------------
> Type: Technical
> Reported by: QUAN NGUYEN <quannguyen@google.com>
>
> Section: 3.2
>
> Original Text
> -------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>
> A length of 12 octets is RECOMMENDED.
>
> Corrected Text
> --------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>
> A length of 16 octets is RECOMMENDED.
>
> Notes
> -----
> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug
> to use 12 bytes authentication tag (aes-ICVlen) as default if the code path
> [1] uses CMS. According to Ferguson's attack (http://csrc.nist.gov/groups/
> ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf), if a user
> encrypts 2^32 block length message, then 12 bytes authentication tag length
> has only 96 - 32 = 64 bits security which is not good enough nowadays.
> Furthermore, once a forgery happens then authentication is leaked.
>

Sorry, I meant "authentication *key*" is leaked.

>
> [1] In other code paths, all providers use 16 bytes authentication tag as
> default.
>
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary.
>
> --------------------------------------
> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
> --------------------------------------
> Title               : Using AES-CCM and AES-GCM Authenticated Encryption
> in the Cryptographic Message Syntax (CMS)
> Publication Date    : November 2007
> Author(s)           : R. Housley
> Category            : PROPOSED STANDARD
> Source              : S/MIME Mail Security
> Area                : Security
> Stream              : IETF
> Verifying Party     : IESG
>
>

--94eb2c1124f281d22c0539d03c73
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <span dir=3D"ltr">&=
lt;<a href=3D"mailto:rfc-editor@rfc-editor.org" target=3D"_blank">rfc-edito=
r@rfc-editor.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Th=
e following errata report has been submitted for RFC5084,<br>
&quot;Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptograph=
ic Message Syntax (CMS)&quot;.<br>
<br>
------------------------------<wbr>--------<br>
You may review the report below and at:<br>
<a href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=
=3D4774" rel=3D"noreferrer" target=3D"_blank">http://www.rfc-editor.org/<wb=
r>errata_search.php?rfc=3D5084&amp;<wbr>eid=3D4774</a><br>
<br>
------------------------------<wbr>--------<br>
Type: Technical<br>
Reported by: QUAN NGUYEN &lt;<a href=3D"mailto:quannguyen@google.com">quann=
guyen@google.com</a>&gt;<br>
<br>
Section: 3.2<br>
<br>
Original Text<br>
-------------<br>
aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 12<br>
<br>
A length of 12 octets is RECOMMENDED.<br>
<br>
Corrected Text<br>
--------------<br>
aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 16<br>
<br>
A length of 16 octets is RECOMMENDED.<br>
<br>
Notes<br>
-----<br>
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug to=
 use 12 bytes authentication tag (aes-ICVlen) as default if the code path [=
1] uses CMS. According to Ferguson&#39;s attack (<a href=3D"http://csrc.nis=
t.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf" rel=
=3D"noreferrer" target=3D"_blank">http://csrc.nist.gov/groups/<wbr>ST/toolk=
it/BCM/documents/<wbr>comments/CWC-GCM/Ferguson2.pdf</a><wbr>), if a user e=
ncrypts 2^32 block length message, then 12 bytes authentication tag length =
has only 96 - 32 =3D 64 bits security which is not good enough nowadays. Fu=
rthermore, once a forgery happens then authentication is leaked.<br></block=
quote><div><br></div><div>Sorry, I meant &quot;authentication <b>key</b>&qu=
ot; is leaked.=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[1] In other code paths, all providers use 16 bytes authentication tag as d=
efault.<br>
<br>
Instructions:<br>
-------------<br>
This erratum is currently posted as &quot;Reported&quot;. If necessary, ple=
ase<br>
use &quot;Reply All&quot; to discuss whether it should be verified or<br>
rejected. When a decision is reached, the verifying party (IESG)<br>
can log in to change the status and edit the report, if necessary.<br>
<br>
------------------------------<wbr>--------<br>
RFC5084 (draft-ietf-smime-cms-aes-ccm-<wbr>and-gcm-03)<br>
------------------------------<wbr>--------<br>
Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Using AES-CCM=
 and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (=
CMS)<br>
Publication Date=C2=A0 =C2=A0 : November 2007<br>
Author(s)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: R. Housley<br>
Category=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : PROPOSED STANDARD<br>
Source=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : S/MIME Mail Securi=
ty<br>
Area=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Security<br>
Stream=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : IETF<br>
Verifying Party=C2=A0 =C2=A0 =C2=A0: IESG<br>
<br>
</blockquote></div><br></div></div>

--94eb2c1124f281d22c0539d03c73--


From nobody Mon Aug 15 14:47:14 2016
Return-Path: <quannguyen@google.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6D9B12D73D for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 14:01:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.247
X-Spam-Level: 
X-Spam-Status: No, score=-3.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uK1S2HdETQPB for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 14:01:02 -0700 (PDT)
Received: from mail-ua0-x231.google.com (mail-ua0-x231.google.com [IPv6:2607:f8b0:400c:c08::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDF7312D518 for <smime@ietf.org>; Mon, 15 Aug 2016 14:01:01 -0700 (PDT)
Received: by mail-ua0-x231.google.com with SMTP id k90so91723371uak.1 for <smime@ietf.org>; Mon, 15 Aug 2016 14:01:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=w/TftVYSoMr33j5crcJKCdUNya7JWc3Uuf1UlL2NdeI=; b=WKnJQM5jC1RLyR3qFWxj8Q6XKcvnzZeMzfisnJQxQeX4cwAuapeHfJvuoiWNnrJr1D c4M2xRdqVROV5CV8qm9W95rgXi36updjiNNET80Mn1YPdYa0z1pt4ChgQl+BDkRGr1TV PI+TNqjpUDAcmi95qdwcUoyanERPWv4bVtnKhSBVOGGC/8e7t4x6hNG6hf7W1myAS1Pe 2rhhXuVtMsVP+5vaGaV7M2QyINkfaE+H8HYhJrCz2atuEBelciyKKHh84lW/ABbfO5fh EbjdTIRO+uXRtTEK+gOjwxU9ScNWi+OuTHr8Fab8ZblesKm1m1EKQsx9d91dg7f5Mp8J WOSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=w/TftVYSoMr33j5crcJKCdUNya7JWc3Uuf1UlL2NdeI=; b=e3J9QcYKdHkn4yL8VAe7wDHJq3V2BWVBM59/HuX4wDVjSlTlYBhG1N6061vgnR5GQ0 Bk9RDvJcxJotp4TXmUZE/E3u+WekNjUVNiLU2DN3MuoP9aghSowvSL9iLxr6tun7ihHZ +//Ppc6HkCW7WpAOkgnOPTJo90KjQ0kHCxed8xCk8ZGGu+RJBx2nTEV446NskIptm7gK n7oeakq4Up34/Au3Jx8Vn7hdjF+dkTAnI5CKaWpnWRRudjMDQjIhVuRsz0NupO4E82nq Rj7J7pQVEmCQEqCsYJxOuOfJRHYOFFdRilOXibrpolM2AkMLmEb4Pk9t3hQQKNB9tgAk nSGg==
X-Gm-Message-State: AEkoouvuuzTdVvyu+qoUhHutULQu9Rymarp+YYjFXtCHbTT2tVwsv1LvEWHK2qv4XYePcBQkPcHUJuUA24z++O0U
X-Received: by 10.31.8.213 with SMTP id 204mr5837270vki.33.1471294860553; Mon, 15 Aug 2016 14:01:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.139.131 with HTTP; Mon, 15 Aug 2016 14:00:39 -0700 (PDT)
In-Reply-To: <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com>
From: Quan Nguyen <quannguyen@google.com>
Date: Mon, 15 Aug 2016 14:00:39 -0700
Message-ID: <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com>
To: Russ Housley <housley@vigilsec.com>
Content-Type: multipart/alternative; boundary=001a1142e6e8863615053a228743
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/wYO3244y2AcUIH7tvbOSZm6NDmI>
X-Mailman-Approved-At: Mon, 15 Aug 2016 14:47:09 -0700
Cc: IETF SMIME <smime@ietf.org>, Paul Hoffman <paul.hoffman@vpnc.org>, Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, David McGrew <mcgrew@cisco.com>, RFC Editor <rfc-editor@rfc-editor.org>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 21:01:05 -0000

--001a1142e6e8863615053a228743
Content-Type: text/plain; charset=UTF-8

On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <housley@vigilsec.com> wrote:

> Quan:
>
> I do not think that we can change the DEFAULT value associated with these
> OIDs.  Changing the meaning of an absent aes-ICVlen will result in too many
> interoperability problems.
>

Yeah, I'm aware of it and I understand your concern.


>  However, we could put out a very short RFC that updates RFC 5084 to
> recommend the use of 16 octet authentication tags in all situations.
>

Thanks for doing this :) It's SGTM.

>
> Russ
>
>
> On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com> wrote:
>
>
>
> On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <
> rfc-editor@rfc-editor.org> wrote:
>
>> The following errata report has been submitted for RFC5084,
>> "Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic
>> Message Syntax (CMS)".
>>
>> --------------------------------------
>> You may review the report below and at:
>> http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774
>>
>> --------------------------------------
>> Type: Technical
>> Reported by: QUAN NGUYEN <quannguyen@google.com>
>>
>> Section: 3.2
>>
>> Original Text
>> -------------
>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>>
>> A length of 12 octets is RECOMMENDED.
>>
>> Corrected Text
>> --------------
>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>>
>> A length of 16 octets is RECOMMENDED.
>>
>> Notes
>> -----
>> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug
>> to use 12 bytes authentication tag (aes-ICVlen) as default if the code path
>> [1] uses CMS. According to Ferguson's attack (
>> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
>> ts/CWC-GCM/Ferguson2.pdf), if a user encrypts 2^32 block length message,
>> then 12 bytes authentication tag length has only 96 - 32 = 64 bits security
>> which is not good enough nowadays. Furthermore, once a forgery happens then
>> authentication is leaked.
>>
>
> Sorry, I meant "authentication *key*" is leaked.
>
>>
>> [1] In other code paths, all providers use 16 bytes authentication tag as
>> default.
>>
>> Instructions:
>> -------------
>> This erratum is currently posted as "Reported". If necessary, please
>> use "Reply All" to discuss whether it should be verified or
>> rejected. When a decision is reached, the verifying party (IESG)
>> can log in to change the status and edit the report, if necessary.
>>
>> --------------------------------------
>> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
>> --------------------------------------
>> Title               : Using AES-CCM and AES-GCM Authenticated Encryption
>> in the Cryptographic Message Syntax (CMS)
>> Publication Date    : November 2007
>> Author(s)           : R. Housley
>> Category            : PROPOSED STANDARD
>> Source              : S/MIME Mail Security
>> Area                : Security
>> Stream              : IETF
>> Verifying Party     : IESG
>>
>>
>
>

--001a1142e6e8863615053a228743
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <span dir=3D"ltr">&lt;<a =
href=3D"mailto:housley@vigilsec.com" target=3D"_blank">housley@vigilsec.com=
</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word=
-wrap:break-word">Quan:<div><br></div><div>I do not think that we can chang=
e the DEFAULT value associated with these OIDs.=C2=A0 Changing the meaning =
of an absent aes-ICVlen will result in too many interoperability problems. =
</div></div></blockquote><div><br></div><div>Yeah, I&#39;m aware of it and =
I understand your concern.</div><div>=C2=A0</div><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex"><div style=3D"word-wrap:break-word"><div>=C2=A0However, we could put o=
ut a very short RFC that updates RFC 5084 to recommend the use of 16 octet =
authentication tags in all situations. =C2=A0</div></div></blockquote><div>=
<br></div><div>Thanks for doing this :) It&#39;s SGTM.</div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex"><div style=3D"word-wrap:break-word"><span class=3D"HOEnZb">=
<font color=3D"#888888"><div><br></div><div>Russ</div></font></span><div><d=
iv class=3D"h5"><div><br></div><div><br><div><div>On Aug 11, 2016, at 2:49 =
PM, Quan Nguyen &lt;<a href=3D"mailto:quannguyen@google.com" target=3D"_bla=
nk">quannguyen@google.com</a>&gt; wrote:</div><br class=3D"m_-2278105132336=
966109Apple-interchange-newline"><blockquote type=3D"cite"><div dir=3D"ltr"=
><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, Aug =
11, 2016 at 11:47 AM, RFC Errata System <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:rfc-editor@rfc-editor.org" target=3D"_blank">rfc-editor@rfc-editor.org=
</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The following erra=
ta report has been submitted for RFC5084,<br>
&quot;Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptograph=
ic Message Syntax (CMS)&quot;.<br>
<br>
------------------------------<wbr>--------<br>
You may review the report below and at:<br>
<a href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=
=3D4774" rel=3D"noreferrer" target=3D"_blank">http://www.rfc-editor.org/err=
a<wbr>ta_search.php?rfc=3D5084&amp;eid=3D<wbr>4774</a><br>
<br>
------------------------------<wbr>--------<br>
Type: Technical<br>
Reported by: QUAN NGUYEN &lt;<a href=3D"mailto:quannguyen@google.com" targe=
t=3D"_blank">quannguyen@google.com</a>&gt;<br>
<br>
Section: 3.2<br>
<br>
Original Text<br>
-------------<br>
aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 12<br>
<br>
A length of 12 octets is RECOMMENDED.<br>
<br>
Corrected Text<br>
--------------<br>
aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 16<br>
<br>
A length of 16 octets is RECOMMENDED.<br>
<br>
Notes<br>
-----<br>
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug to=
 use 12 bytes authentication tag (aes-ICVlen) as default if the code path [=
1] uses CMS. According to Ferguson&#39;s attack (<a href=3D"http://csrc.nis=
t.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf" rel=
=3D"noreferrer" target=3D"_blank">http://csrc.nist.gov/groups/S<wbr>T/toolk=
it/BCM/documents/commen<wbr>ts/CWC-GCM/Ferguson2.pdf</a>), if a user encryp=
ts 2^32 block length message, then 12 bytes authentication tag length has o=
nly 96 - 32 =3D 64 bits security which is not good enough nowadays. Further=
more, once a forgery happens then authentication is leaked.<br></blockquote=
><div><br></div><div>Sorry, I meant &quot;authentication <b>key</b>&quot; i=
s leaked.=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[1] In other code paths, all providers use 16 bytes authentication tag as d=
efault.<br>
<br>
Instructions:<br>
-------------<br>
This erratum is currently posted as &quot;Reported&quot;. If necessary, ple=
ase<br>
use &quot;Reply All&quot; to discuss whether it should be verified or<br>
rejected. When a decision is reached, the verifying party (IESG)<br>
can log in to change the status and edit the report, if necessary.<br>
<br>
------------------------------<wbr>--------<br>
RFC5084 (draft-ietf-smime-cms-aes-ccm-<wbr>and-gcm-03)<br>
------------------------------<wbr>--------<br>
Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Using AES-CCM=
 and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (=
CMS)<br>
Publication Date=C2=A0 =C2=A0 : November 2007<br>
Author(s)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: R. Housley<br>
Category=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : PROPOSED STANDARD<br>
Source=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : S/MIME Mail Securi=
ty<br>
Area=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Security<br>
Stream=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : IETF<br>
Verifying Party=C2=A0 =C2=A0 =C2=A0: IESG<br>
<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div=
></div>

--001a1142e6e8863615053a228743--


From nobody Mon Aug 15 14:47:16 2016
Return-Path: <quannguyen@google.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 862AD12B05E for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 14:44:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.247
X-Spam-Level: 
X-Spam-Status: No, score=-3.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c_7-EugN5ACH for <smime@ietfa.amsl.com>; Mon, 15 Aug 2016 14:44:55 -0700 (PDT)
Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com [IPv6:2607:f8b0:400c:c08::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDC6212B020 for <smime@ietf.org>; Mon, 15 Aug 2016 14:44:54 -0700 (PDT)
Received: by mail-ua0-x22c.google.com with SMTP id 97so93175228uav.3 for <smime@ietf.org>; Mon, 15 Aug 2016 14:44:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vtaRC9gEcinItqpDWKZXteMb/b7INe1banyoY4gE+Cs=; b=LKtoklyHA/AI1D3S777vrhU3QU3zzBpBd9jAeuvOxYtA0/tACtb5g68mSr54eiJ00/ WfvvNrpoAvpiouDopVD9S25Ic0nW0jNcxwGNPIEsx9vRiXppBa85hm5OhdVltgFbtqMe DdtlsWaVxFF4wAugOo6FlxtwME3Ctu5czIUypbSL4pGP8FO11Ylu+aimh1aN4R4YQX9h eRieFyZK2+aGvJQrg7qCykzMAFFQvzWwLioJk8gh1JkReVw7NGot3jkwc+QP6JyJ/EIl XcWPCajwkhgMPGrmu4hFYcRt3lf4HMS4fgi1FaJiwRbEZcvMkVHJVQhAF5LJF9Sg2P6C U46w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vtaRC9gEcinItqpDWKZXteMb/b7INe1banyoY4gE+Cs=; b=YnsVw2f8k/iiyoaMPLfnfvvfAu/gFyOYnKtAlLD8jhSsV8uyU2MVnlhxpaTlmjtTUX Bp8op6WbHb+fHE6VjxVQeOqWM9mOzg8K1i5JxnWThW+1iNgMGKo/Vyd1ncj2iSAooXPV Di6EFqqPHJacKCh9qX5y4/RtMbc9ZvKzWOnE2+upozaSFSw/qH7ve2ZpKM3JvJo6oyHj 6BFwBWt914jv3LU7fGTS2vbgskJYt00PbpGH2kSSgJCN00G7TFzVKry161ifLth9IYKm ZmdOZ0lbIaN+t6wZTu62mfY/HJOJdtT22mM/N3BkNiOaZBO1Z5oOEO3dkMc/D+dZF3gF TFlw==
X-Gm-Message-State: AEkoouspJiQHyS5FSsJE+vKpQCAXl76Av+hSEPKUZihr75lot994sfPpkeMX5DGgt+apcUeIhDr8/CDa/KcNcC7m
X-Received: by 10.31.155.194 with SMTP id d185mr12169059vke.98.1471297493745;  Mon, 15 Aug 2016 14:44:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.139.131 with HTTP; Mon, 15 Aug 2016 14:44:33 -0700 (PDT)
In-Reply-To: <5129C662-699A-447A-9767-1B6116B0B431@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com> <5129C662-699A-447A-9767-1B6116B0B431@vigilsec.com>
From: Quan Nguyen <quannguyen@google.com>
Date: Mon, 15 Aug 2016 14:44:33 -0700
Message-ID: <CAKkgqz0uRVBYZOfW7OGvbDQHh4p4huHfTRNkByMcpw6kEFFokA@mail.gmail.com>
To: Russ Housley <housley@vigilsec.com>
Content-Type: multipart/alternative; boundary=001a1140f2d079a678053a232422
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/OnZlAB9U3Gs54VNYG71RoKtK2Jk>
X-Mailman-Approved-At: Mon, 15 Aug 2016 14:47:09 -0700
Cc: IETF SMIME <smime@ietf.org>, Paul Hoffman <paul.hoffman@vpnc.org>, Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, David McGrew <mcgrew@cisco.com>, RFC Editor <rfc-editor@rfc-editor.org>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Aug 2016 21:44:56 -0000

--001a1140f2d079a678053a232422
Content-Type: text/plain; charset=UTF-8

On Mon, Aug 15, 2016 at 2:27 PM, Russ Housley <housley@vigilsec.com> wrote:

> Quan:
>
> I do not think that we can change the DEFAULT value associated with these
>> OIDs.  Changing the meaning of an absent aes-ICVlen will result in too many
>> interoperability problems.
>>
>
> Yeah, I'm aware of it and I understand your concern.
>
>
>>  However, we could put out a very short RFC that updates RFC 5084 to
>> recommend the use of 16 octet authentication tags in all situations.
>>
>
> Thanks for doing this :) It's SGTM.
>
>
> Are you willing to help write?
>

If you need opinion or having (security-wised) questions, I'm here to
answer yours. I can't help with writing because English is not my native
language and I'm not good at writing English ( this is the skill that I'm
trying to improve).

>
> Russ
>

--001a1140f2d079a678053a232422
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Aug 15, 2016 at 2:27 PM, Russ Housley <span dir=3D"ltr">&lt;<a =
href=3D"mailto:housley@vigilsec.com" target=3D"_blank">housley@vigilsec.com=
</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
><div style=3D"word-wrap:break-word"><span class=3D"gmail-">Quan:<br><div><=
br class=3D"gmail-m_-3553694759156540188Apple-interchange-newline"><blockqu=
ote type=3D"cite"><blockquote class=3D"gmail_quote" style=3D"font-family:he=
lvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:=
normal;line-height:normal;text-align:start;text-indent:0px;text-transform:n=
one;white-space:normal;word-spacing:0px;margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div style=3D"word-wrap:brea=
k-word">I do not think that we can change the DEFAULT value associated with=
 these OIDs.=C2=A0 Changing the meaning of an absent aes-ICVlen will result=
 in too many interoperability problems.</div></blockquote><div style=3D"fon=
t-family:helvetica;font-size:12px;font-style:normal;font-weight:normal;lett=
er-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-=
transform:none;white-space:normal;word-spacing:0px"><br></div><div style=3D=
"font-family:helvetica;font-size:12px;font-style:normal;font-weight:normal;=
letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;t=
ext-transform:none;white-space:normal;word-spacing:0px">Yeah, I&#39;m aware=
 of it and I understand your concern.</div><div style=3D"font-family:helvet=
ica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:norm=
al;line-height:normal;text-align:start;text-indent:0px;text-transform:none;=
white-space:normal;word-spacing:0px">=C2=A0</div><blockquote class=3D"gmail=
_quote" style=3D"font-family:helvetica;font-size:12px;font-style:normal;fon=
t-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;t=
ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x"><div style=3D"word-wrap:break-word">=C2=A0However, we could put out a ve=
ry short RFC that updates RFC 5084 to recommend the use of 16 octet authent=
ication tags in all situations. =C2=A0</div></blockquote><div style=3D"font=
-family:helvetica;font-size:12px;font-style:normal;font-weight:normal;lette=
r-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-t=
ransform:none;white-space:normal;word-spacing:0px"><br></div><div style=3D"=
font-family:helvetica;font-size:12px;font-style:normal;font-weight:normal;l=
etter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;te=
xt-transform:none;white-space:normal;word-spacing:0px">Thanks for doing thi=
s :) It&#39;s SGTM.</div></blockquote></div><br></span><div>Are you willing=
 to help write?</div></div></blockquote><div><br></div><div>If you need opi=
nion or having (security-wised)=C2=A0questions, I&#39;m here to answer your=
s. I can&#39;t help with writing because English is not my native language =
and I&#39;m not good at writing English ( this is the skill that I&#39;m tr=
ying to improve).</div><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><d=
iv style=3D"word-wrap:break-word"><span class=3D"gmail-HOEnZb"><font color=
=3D"#888888"><div><br></div><div>Russ</div></font></span></div></blockquote=
></div><br></div></div>

--001a1140f2d079a678053a232422--


From nobody Thu Aug 18 10:32:55 2016
Return-Path: <dev+ietf@seantek.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8365712D9F3; Thu, 18 Aug 2016 10:32:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.734
X-Spam-Level: 
X-Spam-Status: No, score=0.734 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nS9uT5lvzSMi; Thu, 18 Aug 2016 10:32:34 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B113E12D9FB; Thu, 18 Aug 2016 10:30:28 -0700 (PDT)
Received: from unk-426d04fb.adelphiacom.net (unknown [107.14.56.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A198122E255; Thu, 18 Aug 2016 13:30:09 -0400 (EDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <20160818141051.15761.qmail@ary.lan>
Date: Thu, 18 Aug 2016 10:30:37 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <6DC08C20-D22E-4024-A195-C79E1A1EA3DC@seantek.com>
References: <20160818141051.15761.qmail@ary.lan>
To: John Levine <johnl@taugh.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/9P1NCTZ3dgpdRAOIzlOgtfpkTqY>
Cc: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>, ietf-smtp@ietf.org, IETF SMIME <smime@ietf.org>
Subject: Re: [smime] [ietf-smtp] Draft for compressing SMTP streams
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2016 17:32:38 -0000

+1 to smime@

> On Aug 18, 2016, at 7:10 AM, John Levine <johnl@taugh.com> wrote:
>=20
>> Or perhaps=20
>> not want compression at all. SMTP has different problems than IMAP,=20=

>> which I think simple compression will not fix: Submit sees a single=20=

>> message per connection, plain SMTP sees mostly spam. Why implement=20
>> compression, then?
>=20
> I think the motivation is people sending around large documents in
> formats like Word and Excel.  Pictures and videos aren't very
> compressible, but they're base64 encoded so compressing that tends to
> get you back to the original size.  (You don't have to tell me that
> BINARYMIME and BDAT solve that particular problem better.)

Modern Word and Excel files are in ZIP container formats. Therefore, =
they are already compressed. [Looks like Paul Smith already posted about =
this.]

I would like to see implementations of SMTP compression, but more =
important than that is binary SMTP (aka BINARYMIME / BDAT), RFC 3030. =
The difficulty here in addition to general SMTP deployment issues, is =
that storage has to be binary-clean, which has effects on POP and IMAP. =
But that is an easy way to save 37%+ on bandwidth.

If the entire payload is base64-encoded and is in standard form (72 =
characters per line, no weird spaces, etc.), then it would be =
straightforward to convert the base64 part (of which only 1 exists) to =
binary, and then de-convert it back for storage.

Servers that support EAI have to support 8-bit clean channels, except =
for control characters and NULL. Therefore they can be seen as part of =
the same (not-small) infrastructure upgrade.

S/MIME supports compression, RFC 3274. It is not widely supported, but I =
know of at least one mail client that supports it. It would be good to =
support that as well, especially since end-to-end encrypted content will =
not be further compressible. OpenPGP already supports compression widely =
(standard algorithms: DEFLATE etc.).

Sean

>=20
> Early on people from Gmail experessed interest, but I haven't heard
> from them for a while.
>=20
> R's,
> John
>=20
> _______________________________________________
> ietf-smtp mailing list
> ietf-smtp@ietf.org
> https://www.ietf.org/mailman/listinfo/ietf-smtp


From nobody Thu Aug 18 11:39:43 2016
Return-Path: <housley@vigilsec.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0EB5612D0C6 for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 11:39:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.899
X-Spam-Level: 
X-Spam-Status: No, score=-101.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pNj7JL1yRLIm for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 11:39:39 -0700 (PDT)
Received: from mail.smeinc.net (mail.smeinc.net [209.135.209.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7FAF12D87A for <smime@ietf.org>; Thu, 18 Aug 2016 11:39:36 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.smeinc.net (Postfix) with ESMTP id DAA0E3005C9 for <smime@ietf.org>; Thu, 18 Aug 2016 14:39:34 -0400 (EDT)
X-Virus-Scanned: amavisd-new at mail.smeinc.net
Received: from mail.smeinc.net ([127.0.0.1]) by localhost (mail.smeinc.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LnaVoc7-eQOT for <smime@ietf.org>; Thu, 18 Aug 2016 14:39:32 -0400 (EDT)
Received: from [192.168.2.100] (pool-108-51-128-219.washdc.fios.verizon.net [108.51.128.219]) by mail.smeinc.net (Postfix) with ESMTPSA id AC0B8300289; Thu, 18 Aug 2016 14:39:31 -0400 (EDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_69D2FBA7-86B3-4624-B996-194531C9CD43"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com>
Date: Thu, 18 Aug 2016 14:39:32 -0400
Message-Id: <9FDBF9D0-27CA-4A30-BD3B-C691618E4653@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com>
To: Quan Nguyen <quannguyen@google.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/pcGjGfmy459yEK9tgVD4VvAzGzs>
Cc: Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, IETF SMIME <smime@ietf.org>, David McGrew <mcgrew@cisco.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2016 18:39:42 -0000

--Apple-Mail=_69D2FBA7-86B3-4624-B996-194531C9CD43
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Quan:

I just read the cited paper from Niels Ferguson =
<http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Fer=
guson2.pdf>.  Niels says:

   After 2^16 forgery attempts we can expect a successful forgery.

And, then Niels talks about an encrypted voice environment where this =
attack might lead to disastrous consequences.

Also, Niels points out that the AES-GCM security proof is unbroken by =
this attack.  He is staying within the bounds of the proven security.

It is hard to imagine a protocol environment that uses CMS where 2^16 =
extra messages would be undetected.

In addition RFC 5084 requires automated key management.  This means that =
a fresh AES-GCM key ought to be used for each of the messages.  I =
recognize that attackers do not follow the specification, but it means =
that they cannot just use an existing implementation.

These two observations make me wonder whether the is enough of a problem =
to bother with an update to RFC 5084.  What do you think?

Russ


> On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <housley@vigilsec.com> =
wrote:
> Quan:
>=20
> I do not think that we can change the DEFAULT value associated with =
these OIDs.  Changing the meaning of an absent aes-ICVlen will result in =
too many interoperability problems.
>=20
> Yeah, I'm aware of it and I understand your concern.
> =20
>  However, we could put out a very short RFC that updates RFC 5084 to =
recommend the use of 16 octet authentication tags in all situations. =20
>=20
> Thanks for doing this :) It's SGTM.
>=20
> Russ
>=20
>=20
> On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com> =
wrote:
>=20
>>=20
>>=20
>> On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System =
<rfc-editor@rfc-editor.org> wrote:
>> The following errata report has been submitted for RFC5084,
>> "Using AES-CCM and AES-GCM Authenticated Encryption in the =
Cryptographic Message Syntax (CMS)".
>>=20
>> --------------------------------------
>> You may review the report below and at:
>> http://www.rfc-editor.org/errata_search.php?rfc=3D5084&eid=3D4774
>>=20
>> --------------------------------------
>> Type: Technical
>> Reported by: QUAN NGUYEN <quannguyen@google.com>
>>=20
>> Section: 3.2
>>=20
>> Original Text
>> -------------
>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>>=20
>> A length of 12 octets is RECOMMENDED.
>>=20
>> Corrected Text
>> --------------
>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>>=20
>> A length of 16 octets is RECOMMENDED.
>>=20
>> Notes
>> -----
>> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a =
bug to use 12 bytes authentication tag (aes-ICVlen) as default if the =
code path [1] uses CMS. According to Ferguson's attack =
(http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Fer=
guson2.pdf), if a user encrypts 2^32 block length message, then 12 bytes =
authentication tag length has only 96 - 32 =3D 64 bits security which is =
not good enough nowadays. Furthermore, once a forgery happens then =
authentication is leaked.
>>=20
>> Sorry, I meant "authentication key" is leaked.=20
>>=20
>> [1] In other code paths, all providers use 16 bytes authentication =
tag as default.
>>=20
>> Instructions:
>> -------------
>> This erratum is currently posted as "Reported". If necessary, please
>> use "Reply All" to discuss whether it should be verified or
>> rejected. When a decision is reached, the verifying party (IESG)
>> can log in to change the status and edit the report, if necessary.
>>=20
>> --------------------------------------
>> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
>> --------------------------------------
>> Title               : Using AES-CCM and AES-GCM Authenticated =
Encryption in the Cryptographic Message Syntax (CMS)
>> Publication Date    : November 2007
>> Author(s)           : R. Housley
>> Category            : PROPOSED STANDARD
>> Source              : S/MIME Mail Security
>> Area                : Security
>> Stream              : IETF
>> Verifying Party     : IESG
>>=20
>>=20
>=20
>=20


--Apple-Mail=_69D2FBA7-86B3-4624-B996-194531C9CD43
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;">Quan:<div><br></div><div>I just read the cited paper =
from Niels Ferguson &lt;<a =
href=3D"http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-=
GCM/Ferguson2.pdf">http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/co=
mments/CWC-GCM/Ferguson2.pdf</a>&gt;. &nbsp;Niels =
says:</div><div><br></div><div>&nbsp; &nbsp;After 2^16 forgery attempts =
we can expect a successful forgery.</div><div><br></div><div>And, then =
Niels talks about an encrypted voice environment where this attack might =
lead to disastrous consequences.</div><div><br></div><div>Also, Niels =
points out that the AES-GCM security proof is unbroken by this attack. =
&nbsp;He is staying within the bounds of the proven =
security.</div><div><br></div><div><div>It is hard to imagine a protocol =
environment that uses CMS where 2^16 extra messages would be =
undetected.</div></div><div><br></div><div>In addition RFC 5084 requires =
automated key management. &nbsp;This means that a fresh AES-GCM key =
ought to be used for each of the messages. &nbsp;I recognize that =
attackers do not follow the specification, but it means that they cannot =
just use an existing implementation.</div><div><br></div><div>These two =
observations make me wonder whether the is enough of a problem to bother =
with an update to RFC 5084. &nbsp;What do you =
think?</div><div><br></div><div>Russ</div><div><br></div><div><br><div><bl=
ockquote type=3D"cite"><div dir=3D"ltr"><div class=3D"gmail_extra"><div =
class=3D"gmail_quote">On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley =
<span dir=3D"ltr">&lt;<a href=3D"mailto:housley@vigilsec.com" =
target=3D"_blank">housley@vigilsec.com</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word">Quan:<div><br></div><div>I do not think =
that we can change the DEFAULT value associated with these OIDs.&nbsp; =
Changing the meaning of an absent aes-ICVlen will result in too many =
interoperability problems. =
</div></div></blockquote><div><br></div><div>Yeah, I'm aware of it and I =
understand your concern.</div><div>&nbsp;</div><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div style=3D"word-wrap:break-word">&nbsp;However,=
 we could put out a very short RFC that updates RFC 5084 to recommend =
the use of 16 octet authentication tags in all situations. =
&nbsp;</div></blockquote><div><br></div><div>Thanks for doing this :) =
It's SGTM.</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word"><span class=3D"HOEnZb"><font =
color=3D"#888888"><div><br></div><div>Russ</div></font></span><div><div =
class=3D"h5"><div><br></div><div><br><div><div>On Aug 11, 2016, at 2:49 =
PM, Quan Nguyen &lt;<a href=3D"mailto:quannguyen@google.com" =
target=3D"_blank">quannguyen@google.com</a>&gt; wrote:</div><br =
class=3D"m_-2278105132336966109Apple-interchange-newline"><blockquote =
type=3D"cite"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div =
class=3D"gmail_quote">On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata =
System <span dir=3D"ltr">&lt;<a href=3D"mailto:rfc-editor@rfc-editor.org" =
target=3D"_blank">rfc-editor@rfc-editor.org</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">The following errata =
report has been submitted for RFC5084,<br>
"Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic =
Message Syntax (CMS)".<br>
<br>
------------------------------<wbr>--------<br>
You may review the report below and at:<br>
<a =
href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=3D4=
774" rel=3D"noreferrer" =
target=3D"_blank">http://www.rfc-editor.org/erra<wbr>ta_search.php?rfc=3D5=
084&amp;eid=3D<wbr>4774</a><br>
<br>
------------------------------<wbr>--------<br>
Type: Technical<br>
Reported by: QUAN NGUYEN &lt;<a href=3D"mailto:quannguyen@google.com" =
target=3D"_blank">quannguyen@google.com</a>&gt;<br>
<br>
Section: 3.2<br>
<br>
Original Text<br>
-------------<br>
aes-ICVlen&nbsp; &nbsp; &nbsp; &nbsp;AES-GCM-ICVlen DEFAULT 12<br>
<br>
A length of 12 octets is RECOMMENDED.<br>
<br>
Corrected Text<br>
--------------<br>
aes-ICVlen&nbsp; &nbsp; &nbsp; &nbsp;AES-GCM-ICVlen DEFAULT 16<br>
<br>
A length of 16 octets is RECOMMENDED.<br>
<br>
Notes<br>
-----<br>
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug =
to use 12 bytes authentication tag (aes-ICVlen) as default if the code =
path [1] uses CMS. According to Ferguson's attack (<a =
href=3D"http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-=
GCM/Ferguson2.pdf" rel=3D"noreferrer" =
target=3D"_blank">http://csrc.nist.gov/groups/S<wbr>T/toolkit/BCM/document=
s/commen<wbr>ts/CWC-GCM/Ferguson2.pdf</a>), if a user encrypts 2^32 =
block length message, then 12 bytes authentication tag length has only =
96 - 32 =3D 64 bits security which is not good enough nowadays. =
Furthermore, once a forgery happens then authentication is =
leaked.<br></blockquote><div><br></div><div>Sorry, I meant =
"authentication <b>key</b>" is leaked.&nbsp;</div><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">
<br>
[1] In other code paths, all providers use 16 bytes authentication tag =
as default.<br>
<br>
Instructions:<br>
-------------<br>
This erratum is currently posted as "Reported". If necessary, please<br>
use "Reply All" to discuss whether it should be verified or<br>
rejected. When a decision is reached, the verifying party (IESG)<br>
can log in to change the status and edit the report, if necessary.<br>
<br>
------------------------------<wbr>--------<br>
RFC5084 (draft-ietf-smime-cms-aes-ccm-<wbr>and-gcm-03)<br>
------------------------------<wbr>--------<br>
Title&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: Using =
AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic =
Message Syntax (CMS)<br>
Publication Date&nbsp; &nbsp; : November 2007<br>
Author(s)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: R. Housley<br>
Category&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : PROPOSED =
STANDARD<br>
Source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : S/MIME Mail =
Security<br>
Area&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : =
Security<br>
Stream&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : IETF<br>
Verifying Party&nbsp; &nbsp; &nbsp;: IESG<br>
<br>
</blockquote></div><br></div></div>
=
</blockquote></div><br></div></div></div></div></blockquote></div><br></di=
v></div>
</blockquote></div><br></div></body></html>=

--Apple-Mail=_69D2FBA7-86B3-4624-B996-194531C9CD43--


From nobody Thu Aug 18 12:15:14 2016
Return-Path: <quannguyen@google.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1603512D5C9 for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 12:07:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.247
X-Spam-Level: 
X-Spam-Status: No, score=-3.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pluaeLn5aJAl for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 12:07:38 -0700 (PDT)
Received: from mail-ua0-x22e.google.com (mail-ua0-x22e.google.com [IPv6:2607:f8b0:400c:c08::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EEE4E12D616 for <smime@ietf.org>; Thu, 18 Aug 2016 12:07:37 -0700 (PDT)
Received: by mail-ua0-x22e.google.com with SMTP id 97so43849785uav.3 for <smime@ietf.org>; Thu, 18 Aug 2016 12:07:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zxQqHrzGZad5+8WSgdAziioNnOpHC7RQXWwm+MuOEjI=; b=HzvJfY0HDJpSspvcQfUrgjUbsSmQl2/2ZE2hTLKYGg/tA1QZDNOA+tiMSR/EPL39F1 2amtf8NPlHNp2Ek1JrgsiJZNUN9KFeOQgrWKHw45gcKtFiT1tAc8Ue1zGH08wicgX1M3 oB5zDRCVTRle/aJ5BdgV0kJD1+1+OueXuCYxGPGJ7o4Jp+ql2spWtREcRRYbkxD/gJnn pmy69jpMBElGnBPHjUU/tUkyi2MWTRkH02/j4R0EdQmrsXc9QNQB+DpUwll5uiu/o6Ly bfv0YlupkwyxWOUFJB1TBLWMx8HHVEIPZMOhMeRD7U0U1y6eS4a4eiJEX+mSDlPmbf5P TPvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zxQqHrzGZad5+8WSgdAziioNnOpHC7RQXWwm+MuOEjI=; b=Fz1aCg2Cyh4HCSq+kUXyYCg755yYhK8szcBr9Ff3NzjJCmCxPT5fNVoqAyZlzO982U zfS25vnb3ATew38wvk32kIsJWKxsc5gaDu2XpTbwP/mDVmo3dr/tIRC0X+T/Rvdu7oBd YBSWuVDv+WAYg5VRtHE+Uw3iaD3gEucsM0XvebVuCL5SuknN4yMJG9m0QYxDQMDCiBJU KOtVkxHafM//YogSsqLLBgTMmlIn8LsUjqqOqLa709+cLkuNHPiSBJRX+YhIR7mmhmGl Ic/ksaJfcx/rigoiEgxehsykBlCXAbAwxw0UUJoiZkW7kf0WOgjnpJ5xvnKUT+Nqsg5o 4m6g==
X-Gm-Message-State: AEkoousYp0fpKPbl8RFbdwtSq3aORX1gy1wH06xKANX6RpCemMGJLl67g1PBtE0/w2+1mS0hiz+nXp3OgKMF4mmN
X-Received: by 10.176.69.168 with SMTP id u37mr1640527uau.16.1471547256957; Thu, 18 Aug 2016 12:07:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.139.131 with HTTP; Thu, 18 Aug 2016 12:07:16 -0700 (PDT)
In-Reply-To: <9FDBF9D0-27CA-4A30-BD3B-C691618E4653@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com> <9FDBF9D0-27CA-4A30-BD3B-C691618E4653@vigilsec.com>
From: Quan Nguyen <quannguyen@google.com>
Date: Thu, 18 Aug 2016 12:07:16 -0700
Message-ID: <CAKkgqz1P6Xfe4qiPoBaPDn_7UvyxyYStx+1d6Uuqq6QbVZYmaw@mail.gmail.com>
To: Russ Housley <housley@vigilsec.com>
Content-Type: multipart/alternative; boundary=94eb2c11c9e685d029053a5d4bd3
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/phLXVTeaD3rfmm8PgpnzS8E_gR4>
X-Mailman-Approved-At: Thu, 18 Aug 2016 12:15:12 -0700
Cc: Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, IETF SMIME <smime@ietf.org>, David McGrew <mcgrew@cisco.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2016 19:07:41 -0000

--94eb2c11c9e685d029053a5d4bd3
Content-Type: text/plain; charset=UTF-8

On Thu, Aug 18, 2016 at 11:39 AM, Russ Housley <housley@vigilsec.com> wrote:

> Quan:
>
> I just read the cited paper from Niels Ferguson <
> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
> ts/CWC-GCM/Ferguson2.pdf>.  Niels says:
>
>    After 2^16 forgery attempts we can expect a successful forgery.
>
> And, then Niels talks about an encrypted voice environment where this
> attack might lead to disastrous consequences.
>
> Also, Niels points out that the AES-GCM security proof is unbroken by this
> attack.  He is staying within the bounds of the proven security.
>

Yeah, but the proven security wasn't clear about the weakness/fragility of
GCM. The attack explicitly showed how to exploit the weakness.

>
> It is hard to imagine a protocol environment that uses CMS where 2^16
> extra messages would be undetected.
>
> In addition RFC 5084 requires automated key management.  This means that a
> fresh AES-GCM key ought to be used for each of the messages.
>

Oh, this is interesting. The problem I saw with OpenJDK, BouncyCastle,
Conscrypt is when Java Cipher (https://docs.oracle.com/
javase/7/docs/api/javax/crypto/Cipher.html) is initialized to use GCM mode:

   1. In one case, if the parameter is ASN.1 encoded and aes-ICVlen is
missing then it's interpreted as 12-byte.
   2. In other case, they use 12-byte tag, citing RFC 5084 recommendation.
For instance, see :
https://github.com/bcgit/bc-java/blob/master/prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/AES.java#L497

Note that Cipher is a *general *crypto primitive which may be used to
encrypt *multiple* messages. So there may be misunderstanding every now and
then. It's worth to note that I had a hard time convincing developers to
change because they cited RFC :(

 I recognize that attackers do not follow the specification, but it means
> that they cannot just use an existing implementation.
>
> These two observations make me wonder whether the is enough of a problem
> to bother with an update to RFC 5084.  What do you think?
>
> Russ
>
>
> On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <housley@vigilsec.com>
> wrote:
>
>> Quan:
>>
>> I do not think that we can change the DEFAULT value associated with these
>> OIDs.  Changing the meaning of an absent aes-ICVlen will result in too many
>> interoperability problems.
>>
>
> Yeah, I'm aware of it and I understand your concern.
>
>
>>  However, we could put out a very short RFC that updates RFC 5084 to
>> recommend the use of 16 octet authentication tags in all situations.
>>
>
> Thanks for doing this :) It's SGTM.
>
>>
>> Russ
>>
>>
>> On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com> wrote:
>>
>>
>>
>> On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <
>> rfc-editor@rfc-editor.org> wrote:
>>
>>> The following errata report has been submitted for RFC5084,
>>> "Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic
>>> Message Syntax (CMS)".
>>>
>>> --------------------------------------
>>> You may review the report below and at:
>>> http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774
>>>
>>> --------------------------------------
>>> Type: Technical
>>> Reported by: QUAN NGUYEN <quannguyen@google.com>
>>>
>>> Section: 3.2
>>>
>>> Original Text
>>> -------------
>>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>>>
>>> A length of 12 octets is RECOMMENDED.
>>>
>>> Corrected Text
>>> --------------
>>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>>>
>>> A length of 16 octets is RECOMMENDED.
>>>
>>> Notes
>>> -----
>>> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug
>>> to use 12 bytes authentication tag (aes-ICVlen) as default if the code path
>>> [1] uses CMS. According to Ferguson's attack (
>>> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
>>> ts/CWC-GCM/Ferguson2.pdf), if a user encrypts 2^32 block length
>>> message, then 12 bytes authentication tag length has only 96 - 32 = 64 bits
>>> security which is not good enough nowadays. Furthermore, once a forgery
>>> happens then authentication is leaked.
>>>
>>
>> Sorry, I meant "authentication *key*" is leaked.
>>
>>>
>>> [1] In other code paths, all providers use 16 bytes authentication tag
>>> as default.
>>>
>>> Instructions:
>>> -------------
>>> This erratum is currently posted as "Reported". If necessary, please
>>> use "Reply All" to discuss whether it should be verified or
>>> rejected. When a decision is reached, the verifying party (IESG)
>>> can log in to change the status and edit the report, if necessary.
>>>
>>> --------------------------------------
>>> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
>>> --------------------------------------
>>> Title               : Using AES-CCM and AES-GCM Authenticated Encryption
>>> in the Cryptographic Message Syntax (CMS)
>>> Publication Date    : November 2007
>>> Author(s)           : R. Housley
>>> Category            : PROPOSED STANDARD
>>> Source              : S/MIME Mail Security
>>> Area                : Security
>>> Stream              : IETF
>>> Verifying Party     : IESG
>>>
>>>
>>
>>
>
>

--94eb2c11c9e685d029053a5d4bd3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Aug 18, 2016 at 11:39 AM, Russ Housley <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:housley@vigilsec.com" target=3D"_blank">housley@vigilsec.co=
m</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
"><div style=3D"word-wrap:break-word">Quan:<div><br></div><div>I just read =
the cited paper from Niels Ferguson &lt;<a href=3D"http://csrc.nist.gov/gro=
ups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf" target=3D"_bla=
nk">http://csrc.nist.gov/groups/S<wbr>T/toolkit/BCM/documents/commen<wbr>ts=
/CWC-GCM/Ferguson2.pdf</a>&gt;.=C2=A0 Niels says:</div><div><br></div><div>=
=C2=A0 =C2=A0After 2^16 forgery attempts we can expect a successful forgery=
.</div><div><br></div><div>And, then Niels talks about an encrypted voice e=
nvironment where this attack might lead to disastrous consequences.</div><d=
iv><br></div><div>Also, Niels points out that the AES-GCM security proof is=
 unbroken by this attack.=C2=A0 He is staying within the bounds of the prov=
en security.</div></div></blockquote><div><br></div><div>Yeah, but the prov=
en security wasn&#39;t clear about the weakness/fragility of GCM. The attac=
k explicitly showed how to exploit the weakness.</div><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex"><div style=3D"word-wrap:break-word"><div><br><=
/div><div><div>It is hard to imagine a protocol environment that uses CMS w=
here 2^16 extra messages would be undetected.</div></div><div><br></div><di=
v>In addition RFC 5084 requires automated key management.=C2=A0 This means =
that a fresh AES-GCM key ought to be used for each of the messages. </div><=
/div></blockquote><div><br></div><div>Oh, this is interesting. The problem =
I saw with=C2=A0<span style=3D"font-size:12.8px">OpenJDK, BouncyCastle, Con=
scrypt</span><span style=3D"font-size:12.8px">=C2=A0is when Java Cipher (<a=
 href=3D"https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html=
" target=3D"_blank">https://docs.oracle.com/<wbr>javase/7/docs/api/javax/<w=
br>crypto/Cipher.html</a>) is initialized to use GCM mode:</span></div><div=
><span style=3D"font-size:12.8px"><br></span></div><div><span style=3D"font=
-size:12.8px">=C2=A0 =C2=A01. In one case, if the parameter is ASN.1 encode=
d and=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3333px">aes-=
ICVlen is missing=C2=A0</span><span style=3D"font-size:12.8px">then it&#39;=
s interpreted as 12-byte.</span></div><div><span style=3D"font-size:12.8px"=
>=C2=A0 =C2=A02. In other case, they use 12-byte tag, citing RFC 5084 recom=
mendation. For instance, see :=C2=A0</span><span style=3D"font-size:12.8px"=
><a href=3D"https://github.com/bcgit/bc-java/blob/master/prov/src/main/java=
/org/bouncycastle/jcajce/provider/symmetric/AES.java#L497">https://github.c=
om/bcgit/bc-java/blob/master/prov/src/main/java/org/bouncycastle/jcajce/pro=
vider/symmetric/AES.java#L497</a></span></div><div><span style=3D"font-size=
:12.8px"><br></span></div><div><span style=3D"font-size:12.8px">Note that C=
ipher is a <i>general </i>crypto primitive which may be used to encrypt <i>=
multiple</i> messages. So there may be misunderstanding every now and then.=
 It&#39;s worth to note that I had a hard time convincing developers to cha=
nge because they cited RFC :(</span></div><div><span style=3D"font-size:12.=
8px"><br></span></div><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di=
v style=3D"word-wrap:break-word"><div>=C2=A0I recognize that attackers do n=
ot follow the specification, but it means that they cannot just use an exis=
ting implementation.</div><div><br></div><div>These two observations make m=
e wonder whether the is enough of a problem to bother with an update to RFC=
 5084.=C2=A0 What do you think?</div><span class=3D"gmail-m_418418001673381=
7933gmail-HOEnZb"><font color=3D"#888888"><div><br></div><div>Russ</div></f=
ont></span><div><div class=3D"gmail-m_4184180016733817933gmail-h5"><div><br=
></div><div><br><div><blockquote type=3D"cite"><div dir=3D"ltr"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote">On Mon, Aug 15, 2016 at 1:55 PM=
, Russ Housley <span dir=3D"ltr">&lt;<a href=3D"mailto:housley@vigilsec.com=
" target=3D"_blank">housley@vigilsec.com</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div style=3D"word-wrap:break-word=
">Quan:<div><br></div><div>I do not think that we can change the DEFAULT va=
lue associated with these OIDs.=C2=A0 Changing the meaning of an absent aes=
-ICVlen will result in too many interoperability problems. </div></div></bl=
ockquote><div><br></div><div>Yeah, I&#39;m aware of it and I understand you=
r concern.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex"><div style=3D"word-wrap:break-word">=C2=A0However, we could put out=
 a very short RFC that updates RFC 5084 to recommend the use of 16 octet au=
thentication tags in all situations. =C2=A0</div></blockquote><div><br></di=
v><div>Thanks for doing this :) It&#39;s SGTM.</div><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex"><div style=3D"word-wrap:break-word"><span class=
=3D"gmail-m_4184180016733817933gmail-m_-9115254272950119883HOEnZb"><font co=
lor=3D"#888888"><div><br></div><div>Russ</div></font></span><div><div class=
=3D"gmail-m_4184180016733817933gmail-m_-9115254272950119883h5"><div><br></d=
iv><div><br><div><div>On Aug 11, 2016, at 2:49 PM, Quan Nguyen &lt;<a href=
=3D"mailto:quannguyen@google.com" target=3D"_blank">quannguyen@google.com</=
a>&gt; wrote:</div><br class=3D"gmail-m_4184180016733817933gmail-m_-9115254=
272950119883m_-2278105132336966109Apple-interchange-newline"><blockquote ty=
pe=3D"cite"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=
=3D"gmail_quote">On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <span =
dir=3D"ltr">&lt;<a href=3D"mailto:rfc-editor@rfc-editor.org" target=3D"_bla=
nk">rfc-editor@rfc-editor.org</a>&gt;</span> wrote:<br><blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(2=
04,204,204);padding-left:1ex">The following errata report has been submitte=
d for RFC5084,<br>
&quot;Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptograph=
ic Message Syntax (CMS)&quot;.<br>
<br>
------------------------------<wbr>--------<br>
You may review the report below and at:<br>
<a href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=
=3D4774" rel=3D"noreferrer" target=3D"_blank">http://www.rfc-editor.org/err=
a<wbr>ta_search.php?rfc=3D5084&amp;eid=3D477<wbr>4</a><br>
<br>
------------------------------<wbr>--------<br>
Type: Technical<br>
Reported by: QUAN NGUYEN &lt;<a href=3D"mailto:quannguyen@google.com" targe=
t=3D"_blank">quannguyen@google.com</a>&gt;<br>
<br>
Section: 3.2<br>
<br>
Original Text<br>
-------------<br>
aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 12<br>
<br>
A length of 12 octets is RECOMMENDED.<br>
<br>
Corrected Text<br>
--------------<br>
aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 16<br>
<br>
A length of 16 octets is RECOMMENDED.<br>
<br>
Notes<br>
-----<br>
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug to=
 use 12 bytes authentication tag (aes-ICVlen) as default if the code path [=
1] uses CMS. According to Ferguson&#39;s attack (<a href=3D"http://csrc.nis=
t.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf" rel=
=3D"noreferrer" target=3D"_blank">http://csrc.nist.gov/groups/S<wbr>T/toolk=
it/BCM/documents/commen<wbr>ts/CWC-GCM/Ferguson2.pdf</a>), if a user encryp=
ts 2^32 block length message, then 12 bytes authentication tag length has o=
nly 96 - 32 =3D 64 bits security which is not good enough nowadays. Further=
more, once a forgery happens then authentication is leaked.<br></blockquote=
><div><br></div><div>Sorry, I meant &quot;authentication <b>key</b>&quot; i=
s leaked.=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
[1] In other code paths, all providers use 16 bytes authentication tag as d=
efault.<br>
<br>
Instructions:<br>
-------------<br>
This erratum is currently posted as &quot;Reported&quot;. If necessary, ple=
ase<br>
use &quot;Reply All&quot; to discuss whether it should be verified or<br>
rejected. When a decision is reached, the verifying party (IESG)<br>
can log in to change the status and edit the report, if necessary.<br>
<br>
------------------------------<wbr>--------<br>
RFC5084 (draft-ietf-smime-cms-aes-ccm-<wbr>and-gcm-03)<br>
------------------------------<wbr>--------<br>
Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Using AES-CCM=
 and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (=
CMS)<br>
Publication Date=C2=A0 =C2=A0 : November 2007<br>
Author(s)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: R. Housley<br>
Category=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : PROPOSED STANDARD<br>
Source=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : S/MIME Mail Securi=
ty<br>
Area=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Security<br>
Stream=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : IETF<br>
Verifying Party=C2=A0 =C2=A0 =C2=A0: IESG<br>
<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div=
></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div=
></div>

--94eb2c11c9e685d029053a5d4bd3--


From nobody Thu Aug 18 13:14:04 2016
Return-Path: <ietf@augustcellars.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B800612B03D for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 13:14:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.147
X-Spam-Level: 
X-Spam-Status: No, score=-3.147 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1dyy8jvTbGkA for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 13:13:59 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DB6AC12D18D for <smime@ietf.org>; Thu, 18 Aug 2016 13:13:58 -0700 (PDT)
Received: from hebrews (173.8.216.38) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 18 Aug 2016 13:25:41 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Quan Nguyen' <quannguyen@google.com>, 'Russ Housley' <housley@vigilsec.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com> <9FDBF9D0-27CA-4A30-BD3B-C691618E4653@vigilsec.com> <CAKkgqz1P6Xfe4qiPoBaPDn_7UvyxyYStx+1d6Uuqq6QbVZYmaw@mail.gmail.com>
In-Reply-To: <CAKkgqz1P6Xfe4qiPoBaPDn_7UvyxyYStx+1d6Uuqq6QbVZYmaw@mail.gmail.com>
Date: Thu, 18 Aug 2016 13:13:20 -0700
Message-ID: <08c401d1f98c$f956ad80$ec040880$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_08C5_01D1F952.4CFFEBD0"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHRaEVFPn+0uXujd3jpR3UjAM369wKCkygFAa877t8CSLGCBwC9GFvaAhV+LwSgBd9O0A==
Content-Language: en-us
X-Originating-IP: [173.8.216.38]
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/1xh_rHuv2q9t0QfZ0tRLrxlYTmE>
Cc: 'Stephen Farrell' <stephen.farrell@cs.tcd.ie>, 'Kathleen Moriarty' <Kathleen.Moriarty.ietf@gmail.com>, 'David McGrew' <mcgrew@cisco.com>, 'IETF SMIME' <smime@ietf.org>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2016 20:14:04 -0000

------=_NextPart_000_08C5_01D1F952.4CFFEBD0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I did a brief look at the code you pointed to and I would run screaming =
from it for several reasons.

=20

I do not have a problem if the tag is defaulted to a length of 12 bytes, =
but I do not see any way to set it to a different length if desired.  =
There should be a version that allows for getting the tag length.  At a =
minimum the length of the tag should be parameterized.

=20

This is making me want to fix the code, but not necessarily wanting to =
fix the spec.  In the context of the document the default is not =
unreasonable.

=20

Jim

=20

=20

From: smime [mailto:smime-bounces@ietf.org] On Behalf Of Quan Nguyen
Sent: Thursday, August 18, 2016 12:07 PM
To: Russ Housley <housley@vigilsec.com>
Cc: Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>; IETF SMIME =
<smime@ietf.org>; David McGrew <mcgrew@cisco.com>; Stephen Farrell =
<stephen.farrell@cs.tcd.ie>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)

=20

=20

=20

On Thu, Aug 18, 2016 at 11:39 AM, Russ Housley <housley@vigilsec.com =
<mailto:housley@vigilsec.com> > wrote:

Quan:

=20

I just read the cited paper from Niels Ferguson =
<http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Fe=
rguson2.pdf>.  Niels says:

=20

   After 2^16 forgery attempts we can expect a successful forgery.

=20

And, then Niels talks about an encrypted voice environment where this =
attack might lead to disastrous consequences.

=20

Also, Niels points out that the AES-GCM security proof is unbroken by =
this attack.  He is staying within the bounds of the proven security.

=20

Yeah, but the proven security wasn't clear about the weakness/fragility =
of GCM. The attack explicitly showed how to exploit the weakness.

=20

It is hard to imagine a protocol environment that uses CMS where 2^16 =
extra messages would be undetected.

=20

In addition RFC 5084 requires automated key management.  This means that =
a fresh AES-GCM key ought to be used for each of the messages.=20

=20

Oh, this is interesting. The problem I saw with OpenJDK, BouncyCastle, =
Conscrypt is when Java Cipher =
(https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html) is =
initialized to use GCM mode:

=20

   1. In one case, if the parameter is ASN.1 encoded and aes-ICVlen is =
missing then it's interpreted as 12-byte.

   2. In other case, they use 12-byte tag, citing RFC 5084 =
recommendation. For instance, see : =
https://github.com/bcgit/bc-java/blob/master/prov/src/main/java/org/bounc=
ycastle/jcajce/provider/symmetric/AES.java#L497

=20

Note that Cipher is a general crypto primitive which may be used to =
encrypt multiple messages. So there may be misunderstanding every now =
and then. It's worth to note that I had a hard time convincing =
developers to change because they cited RFC :(

=20

 I recognize that attackers do not follow the specification, but it =
means that they cannot just use an existing implementation.

=20

These two observations make me wonder whether the is enough of a problem =
to bother with an update to RFC 5084.  What do you think?

=20

Russ

=20

=20

On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <housley@vigilsec.com =
<mailto:housley@vigilsec.com> > wrote:

Quan:

=20

I do not think that we can change the DEFAULT value associated with =
these OIDs.  Changing the meaning of an absent aes-ICVlen will result in =
too many interoperability problems.=20

=20

Yeah, I'm aware of it and I understand your concern.

=20

 However, we could put out a very short RFC that updates RFC 5084 to =
recommend the use of 16 octet authentication tags in all situations. =20

=20

Thanks for doing this :) It's SGTM.

=20

Russ

=20

=20

On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com =
<mailto:quannguyen@google.com> > wrote:





=20

=20

On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System =
<rfc-editor@rfc-editor.org <mailto:rfc-editor@rfc-editor.org> > wrote:

The following errata report has been submitted for RFC5084,
"Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic =
Message Syntax (CMS)".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=3D5084 =
<http://www.rfc-editor.org/errata_search.php?rfc=3D5084&eid=3D4774> =
&eid=3D4774

--------------------------------------
Type: Technical
Reported by: QUAN NGUYEN <quannguyen@google.com =
<mailto:quannguyen@google.com> >

Section: 3.2

Original Text
-------------
aes-ICVlen       AES-GCM-ICVlen DEFAULT 12

A length of 12 octets is RECOMMENDED.

Corrected Text
--------------
aes-ICVlen       AES-GCM-ICVlen DEFAULT 16

A length of 16 octets is RECOMMENDED.

Notes
-----
Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug =
to use 12 bytes authentication tag (aes-ICVlen) as default if the code =
path [1] uses CMS. According to Ferguson's attack =
(http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Fe=
rguson2.pdf), if a user encrypts 2^32 block length message, then 12 =
bytes authentication tag length has only 96 - 32 =3D 64 bits security =
which is not good enough nowadays. Furthermore, once a forgery happens =
then authentication is leaked.

=20

Sorry, I meant "authentication key" is leaked.=20


[1] In other code paths, all providers use 16 bytes authentication tag =
as default.

Instructions:
-------------
This erratum is currently posted as "Reported". If necessary, please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party (IESG)
can log in to change the status and edit the report, if necessary.

--------------------------------------
RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
--------------------------------------
Title               : Using AES-CCM and AES-GCM Authenticated Encryption =
in the Cryptographic Message Syntax (CMS)
Publication Date    : November 2007
Author(s)           : R. Housley
Category            : PROPOSED STANDARD
Source              : S/MIME Mail Security
Area                : Security
Stream              : IETF
Verifying Party     : IESG

=20

=20

=20

=20

=20


------=_NextPart_000_08C5_01D1F952.4CFFEBD0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.gmail-m4184180016733817933gmail-hoenzb
	{mso-style-name:gmail-m_4184180016733817933gmail-hoenzb;}
span.gmail-m4184180016733817933gmail-m-9115254272950119883hoenzb
	=
{mso-style-name:gmail-m_4184180016733817933gmail-m_-9115254272950119883ho=
enzb;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>I did a =
brief look at the code you pointed to and I would run screaming from it =
for several reasons.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>I do not =
have a problem if the tag is defaulted to a length of 12 bytes, but I do =
not see any way to set it to a different length if desired.=C2=A0 There =
should be a version that allows for getting the tag length.=C2=A0 At a =
minimum the length of the tag should be =
parameterized.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>This is =
making me want to fix the code, but not necessarily wanting to fix the =
spec.=C2=A0 In the context of the document the default is not =
unreasonable.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>Jim<o:p></o:p=
></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><div style=3D'border:none;border-left:solid blue =
1.5pt;padding:0in 0in 0in 4.0pt'><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span><=
/b><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
smime [mailto:smime-bounces@ietf.org] <b>On Behalf Of </b>Quan =
Nguyen<br><b>Sent:</b> Thursday, August 18, 2016 12:07 PM<br><b>To:</b> =
Russ Housley &lt;housley@vigilsec.com&gt;<br><b>Cc:</b> Kathleen =
Moriarty &lt;Kathleen.Moriarty.ietf@gmail.com&gt;; IETF SMIME =
&lt;smime@ietf.org&gt;; David McGrew &lt;mcgrew@cisco.com&gt;; Stephen =
Farrell &lt;stephen.farrell@cs.tcd.ie&gt;<br><b>Subject:</b> Re: [smime] =
[Technical Errata Reported] RFC5084 =
(4774)<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>On Thu, =
Aug 18, 2016 at 11:39 AM, Russ Housley &lt;<a =
href=3D"mailto:housley@vigilsec.com" =
target=3D"_blank">housley@vigilsec.com</a>&gt; =
wrote:<o:p></o:p></p><blockquote style=3D'border:none;border-left:solid =
#CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><p =
class=3DMsoNormal>Quan:<o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>I =
just read the cited paper from Niels Ferguson &lt;<a =
href=3D"http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC=
-GCM/Ferguson2.pdf" =
target=3D"_blank">http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/co=
mments/CWC-GCM/Ferguson2.pdf</a>&gt;.&nbsp; Niels =
says:<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>&nbsp; &nbsp;After 2^16 forgery attempts we can expect =
a successful forgery.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>And, then Niels talks about an encrypted voice =
environment where this attack might lead to disastrous =
consequences.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Also, Niels points out that the AES-GCM security proof =
is unbroken by this attack.&nbsp; He is staying within the bounds of the =
proven security.<o:p></o:p></p></div></div></blockquote><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Yeah, but the proven security wasn't clear about the =
weakness/fragility of GCM. The attack explicitly showed how to exploit =
the weakness.<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><div><p =
class=3DMsoNormal>It is hard to imagine a protocol environment that uses =
CMS where 2^16 extra messages would be =
undetected.<o:p></o:p></p></div></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>In addition RFC 5084 requires automated key =
management.&nbsp; This means that a fresh AES-GCM key ought to be used =
for each of the messages. =
<o:p></o:p></p></div></div></blockquote><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Oh, this is interesting. The problem I saw =
with&nbsp;<span style=3D'font-size:9.5pt'>OpenJDK, BouncyCastle, =
Conscrypt&nbsp;is when Java Cipher (<a =
href=3D"https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.htm=
l" =
target=3D"_blank">https://docs.oracle.com/javase/7/docs/api/javax/crypto/=
Cipher.html</a>) is initialized to use GCM =
mode:</span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal><span style=3D'font-size:9.5pt'>&nbsp; &nbsp;1. In one =
case, if the parameter is ASN.1 encoded and&nbsp;</span><span =
style=3D'font-size:10.0pt;color:black'>aes-ICVlen is =
missing&nbsp;</span><span style=3D'font-size:9.5pt'>then it's =
interpreted as 12-byte.</span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><span style=3D'font-size:9.5pt'>&nbsp; &nbsp;2. In =
other case, they use 12-byte tag, citing RFC 5084 recommendation. For =
instance, see :&nbsp;<a =
href=3D"https://github.com/bcgit/bc-java/blob/master/prov/src/main/java/o=
rg/bouncycastle/jcajce/provider/symmetric/AES.java#L497">https://github.c=
om/bcgit/bc-java/blob/master/prov/src/main/java/org/bouncycastle/jcajce/p=
rovider/symmetric/AES.java#L497</a></span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal><span style=3D'font-size:9.5pt'>Note that Cipher is a =
<i>general </i>crypto primitive which may be used to encrypt =
<i>multiple</i> messages. So there may be misunderstanding every now and =
then. It's worth to note that I had a hard time convincing developers to =
change because they cited RFC :(</span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p =
class=3DMsoNormal>&nbsp;I recognize that attackers do not follow the =
specification, but it means that they cannot just use an existing =
implementation.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>These two observations make me wonder whether the is =
enough of a problem to bother with an update to RFC 5084.&nbsp; What do =
you think?<o:p></o:p></p></div><div><p class=3DMsoNormal><span =
style=3D'color:#888888'><o:p>&nbsp;</o:p></span></p></div><div><p =
class=3DMsoNormal><span =
style=3D'color:#888888'>Russ<o:p></o:p></span></p></div><div><div><div><p=
 class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><blockquote =
style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><div><div><div><p =
class=3DMsoNormal>On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley &lt;<a =
href=3D"mailto:housley@vigilsec.com" =
target=3D"_blank">housley@vigilsec.com</a>&gt; =
wrote:<o:p></o:p></p><blockquote style=3D'border:none;border-left:solid =
#CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><p =
class=3DMsoNormal>Quan:<o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>I =
do not think that we can change the DEFAULT value associated with these =
OIDs.&nbsp; Changing the meaning of an absent aes-ICVlen will result in =
too many interoperability problems. =
<o:p></o:p></p></div></div></blockquote><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Yeah, I'm aware of it and I understand your =
concern.<o:p></o:p></p></div><div><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><p =
class=3DMsoNormal>&nbsp;However, we could put out a very short RFC that =
updates RFC 5084 to recommend the use of 16 octet authentication tags in =
all situations. &nbsp;<o:p></o:p></p></div></blockquote><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Thanks for doing this :) It's =
SGTM.<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p =
class=3DMsoNormal><span =
style=3D'color:#888888'><o:p>&nbsp;</o:p></span></p></div><div><p =
class=3DMsoNormal><span =
style=3D'color:#888888'>Russ<o:p></o:p></span></p></div><div><div><div><p=
 class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=3DMsoNormal>On =
Aug 11, 2016, at 2:49 PM, Quan Nguyen &lt;<a =
href=3D"mailto:quannguyen@google.com" =
target=3D"_blank">quannguyen@google.com</a>&gt; =
wrote:<o:p></o:p></p></div><p =
class=3DMsoNormal><br><br><o:p></o:p></p><blockquote =
style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>On Thu, =
Aug 11, 2016 at 11:47 AM, RFC Errata System &lt;<a =
href=3D"mailto:rfc-editor@rfc-editor.org" =
target=3D"_blank">rfc-editor@rfc-editor.org</a>&gt; =
wrote:<o:p></o:p></p><blockquote style=3D'border:none;border-left:solid =
#CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><p class=3DMsoNormal>The =
following errata report has been submitted for RFC5084,<br>&quot;Using =
AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic =
Message Syntax =
(CMS)&quot;.<br><br>--------------------------------------<br>You may =
review the report below and at:<br><a =
href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=3D=
4774" =
target=3D"_blank">http://www.rfc-editor.org/errata_search.php?rfc=3D5084&=
amp;eid=3D4774</a><br><br>--------------------------------------<br>Type:=
 Technical<br>Reported by: QUAN NGUYEN &lt;<a =
href=3D"mailto:quannguyen@google.com" =
target=3D"_blank">quannguyen@google.com</a>&gt;<br><br>Section: =
3.2<br><br>Original Text<br>-------------<br>aes-ICVlen&nbsp; &nbsp; =
&nbsp; &nbsp;AES-GCM-ICVlen DEFAULT 12<br><br>A length of 12 octets is =
RECOMMENDED.<br><br>Corrected Text<br>--------------<br>aes-ICVlen&nbsp; =
&nbsp; &nbsp; &nbsp;AES-GCM-ICVlen DEFAULT 16<br><br>A length of 16 =
octets is RECOMMENDED.<br><br>Notes<br>-----<br>Many JCE providers =
including OpenJDK, BouncyCastle, Conscrypt have a bug to use 12 bytes =
authentication tag (aes-ICVlen) as default if the code path [1] uses =
CMS. According to Ferguson's attack (<a =
href=3D"http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC=
-GCM/Ferguson2.pdf" =
target=3D"_blank">http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/co=
mments/CWC-GCM/Ferguson2.pdf</a>), if a user encrypts 2^32 block length =
message, then 12 bytes authentication tag length has only 96 - 32 =3D 64 =
bits security which is not good enough nowadays. Furthermore, once a =
forgery happens then authentication is =
leaked.<o:p></o:p></p></blockquote><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Sorry, I meant &quot;authentication <b>key</b>&quot; =
is leaked.&nbsp;<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><br>[1] In other code paths, all =
providers use 16 bytes authentication tag as =
default.<br><br>Instructions:<br>-------------<br>This erratum is =
currently posted as &quot;Reported&quot;. If necessary, please<br>use =
&quot;Reply All&quot; to discuss whether it should be verified =
or<br>rejected. When a decision is reached, the verifying party =
(IESG)<br>can log in to change the status and edit the report, if =
necessary.<br><br>--------------------------------------<br>RFC5084 =
(draft-ietf-smime-cms-aes-ccm-and-gcm-03)<br>----------------------------=
----------<br>Title&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;: Using AES-CCM and AES-GCM Authenticated Encryption in the =
Cryptographic Message Syntax (CMS)<br>Publication Date&nbsp; &nbsp; : =
November 2007<br>Author(s)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: R. =
Housley<br>Category&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : PROPOSED =
STANDARD<br>Source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : =
S/MIME Mail Security<br>Area&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; : Security<br>Stream&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; : IETF<br>Verifying Party&nbsp; &nbsp; &nbsp;: =
IESG<o:p></o:p></p></blockquote></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></blockquote></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></blockquo=
te></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></blockquote></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></blockquo=
te></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></body></h=
tml>
------=_NextPart_000_08C5_01D1F952.4CFFEBD0--


From nobody Thu Aug 18 14:16:00 2016
Return-Path: <quannguyen@google.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 32D3512D091 for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 13:33:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.247
X-Spam-Level: 
X-Spam-Status: No, score=-3.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r1dGfnvToIR3 for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 13:33:52 -0700 (PDT)
Received: from mail-ua0-x229.google.com (mail-ua0-x229.google.com [IPv6:2607:f8b0:400c:c08::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2ED8D12DB4B for <smime@ietf.org>; Thu, 18 Aug 2016 13:33:48 -0700 (PDT)
Received: by mail-ua0-x229.google.com with SMTP id 97so47543299uav.3 for <smime@ietf.org>; Thu, 18 Aug 2016 13:33:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=a1ZWZfLoLw78VTqUjkK6W8dAxY9oQXv9KZG6psbxdPs=; b=TIKAiSnGwyizjKdDcZvNl2c/V/tzDP51D8fnFrIUUd+/y7EG4FJPq5nsJH8jZUgFzF RnGWBhcVRqli3rzy6DfEFk0HkNSHsm9/mxhg2Ymdp6ecMUZveB79BTsSwCQ8Rk5J85OY ImGv9ivLLORscIYaeZ/NF97vc0MuTl8TaAIeLtUWfEHxofYrL8Lc5Os/j1m8KwCrkr6K x1I14kYCpxAYCY3O3TJBcWOhLxUT0RAjyivnqzR6U9kjpVJomQxhS5UfqF3CoyihhbQu 5UieMI/YCExBFbruijpe2MZbYZWV1Oe975j25wOq7uatu/4KFRES8nyzUX4+A/ttpAcJ w7ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=a1ZWZfLoLw78VTqUjkK6W8dAxY9oQXv9KZG6psbxdPs=; b=kTpuX5Iw2GsjySxEZKEfE7xXgp2cI5vQUl3uognDdUnPubC4LU237JoO61g5RxLYCR /qWqokoHSoSqwDi30Gg4x9QzUxuiKm8F7dheSNfjSTuubwawHiErugm378iAtGDaa4kM M/CMWt/RcRzOlFeLazCCzngCDrXXPhTXkK7JHJ41zFFsM5pdPH3w2VCTf24jacUpE2rh IB47Sq9X1g6CPkY6hHav36yVLuZrOoYlX9TRJr9dfyPBF7fcDl5IwjxqQcBPKDnl9y/L cyFecacHVseO1ismzO+2mai0TPn9bM0PiSll6slSst/IzxigYKttr2hKSFAyJteMR5bK xGAg==
X-Gm-Message-State: AEkoousxkqCv/lU6HzrEQLzdyw7RIHoSG5ShdIrvYrmneA1N8RLoSMthXZjwbdzXm9UOW7a1PB8l2V9yoiqkPiUY
X-Received: by 10.176.82.33 with SMTP id i30mr1938071uaa.60.1471552427180; Thu, 18 Aug 2016 13:33:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.139.131 with HTTP; Thu, 18 Aug 2016 13:33:26 -0700 (PDT)
In-Reply-To: <08c401d1f98c$f956ad80$ec040880$@augustcellars.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com> <9FDBF9D0-27CA-4A30-BD3B-C691618E4653@vigilsec.com> <CAKkgqz1P6Xfe4qiPoBaPDn_7UvyxyYStx+1d6Uuqq6QbVZYmaw@mail.gmail.com> <08c401d1f98c$f956ad80$ec040880$@augustcellars.com>
From: Quan Nguyen <quannguyen@google.com>
Date: Thu, 18 Aug 2016 13:33:26 -0700
Message-ID: <CAKkgqz1HFHiWb8uLLSesSMnCCMs6b=MVJomk2A+o+dWpEwx_Og@mail.gmail.com>
To: Jim Schaad <ietf@augustcellars.com>
Content-Type: multipart/alternative; boundary=94eb2c18fbaab11330053a5e7f0c
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/MCcZUYHIkXB75y8wrRr520kMi_U>
X-Mailman-Approved-At: Thu, 18 Aug 2016 14:15:59 -0700
Cc: Stephen Farrell <stephen.farrell@cs.tcd.ie>, Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, David McGrew <mcgrew@cisco.com>, IETF SMIME <smime@ietf.org>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2016 20:33:56 -0000

--94eb2c18fbaab11330053a5e7f0c
Content-Type: text/plain; charset=UTF-8

On Thu, Aug 18, 2016 at 1:13 PM, Jim Schaad <ietf@augustcellars.com> wrote:

> I did a brief look at the code you pointed to and I would run screaming
> from it for several reasons.
>
>
>
> I do not have a problem if the tag is defaulted to a length of 12 bytes,
>

Note that I were talking about Java Cipher which is used in different
scenarios where some requires high-level of security. It's the library
responsibility to choose a default safe option. Note that in general, all
BouncyCastle, Conscrypt, OpenJDK use 16-bytes as default. The only place
where they use/used 12-byte is where they cite/cited the RFC.

> but I do not see any way to set it to a different length if desired.
> There should be a version that allows for getting the tag length.  At a
> minimum the length of the tag should be parameterized.
>

There are different ways to initialize Java Cipher and some of them allow
user to choose the authentication tag size.

>
>
> This is making me want to fix the code, but not necessarily wanting to fix
> the spec.  In the context of the document the default is not unreasonable.
>

If it was designed specifically for your use-case and it uses key only once
for decryption then I agree it's fine. I believe the core problem is people
only looked at section 3.2 and then applied it for *general* usecase.

Honestly, I don't know what to do in this situation.

>
>
> Jim
>
>
>
>
>
> *From:* smime [mailto:smime-bounces@ietf.org] *On Behalf Of *Quan Nguyen
> *Sent:* Thursday, August 18, 2016 12:07 PM
> *To:* Russ Housley <housley@vigilsec.com>
> *Cc:* Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>; IETF SMIME <
> smime@ietf.org>; David McGrew <mcgrew@cisco.com>; Stephen Farrell <
> stephen.farrell@cs.tcd.ie>
> *Subject:* Re: [smime] [Technical Errata Reported] RFC5084 (4774)
>
>
>
>
>
>
>
> On Thu, Aug 18, 2016 at 11:39 AM, Russ Housley <housley@vigilsec.com>
> wrote:
>
> Quan:
>
>
>
> I just read the cited paper from Niels Ferguson <
> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
> ts/CWC-GCM/Ferguson2.pdf>.  Niels says:
>
>
>
>    After 2^16 forgery attempts we can expect a successful forgery.
>
>
>
> And, then Niels talks about an encrypted voice environment where this
> attack might lead to disastrous consequences.
>
>
>
> Also, Niels points out that the AES-GCM security proof is unbroken by this
> attack.  He is staying within the bounds of the proven security.
>
>
>
> Yeah, but the proven security wasn't clear about the weakness/fragility of
> GCM. The attack explicitly showed how to exploit the weakness.
>
>
>
> It is hard to imagine a protocol environment that uses CMS where 2^16
> extra messages would be undetected.
>
>
>
> In addition RFC 5084 requires automated key management.  This means that a
> fresh AES-GCM key ought to be used for each of the messages.
>
>
>
> Oh, this is interesting. The problem I saw with OpenJDK, BouncyCastle,
> Conscrypt is when Java Cipher (https://docs.oracle.com/javas
> e/7/docs/api/javax/crypto/Cipher.html) is initialized to use GCM mode:
>
>
>
>    1. In one case, if the parameter is ASN.1 encoded and aes-ICVlen is
> missing then it's interpreted as 12-byte.
>
>    2. In other case, they use 12-byte tag, citing RFC 5084 recommendation.
> For instance, see : https://github.com/bcgit/bc-
> java/blob/master/prov/src/main/java/org/bouncycastle/jcajce/
> provider/symmetric/AES.java#L497
>
>
>
> Note that Cipher is a *general *crypto primitive which may be used to
> encrypt *multiple* messages. So there may be misunderstanding every now
> and then. It's worth to note that I had a hard time convincing developers
> to change because they cited RFC :(
>
>
>
>  I recognize that attackers do not follow the specification, but it means
> that they cannot just use an existing implementation.
>
>
>
> These two observations make me wonder whether the is enough of a problem
> to bother with an update to RFC 5084.  What do you think?
>
>
>
> Russ
>
>
>
>
>
> On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <housley@vigilsec.com>
> wrote:
>
> Quan:
>
>
>
> I do not think that we can change the DEFAULT value associated with these
> OIDs.  Changing the meaning of an absent aes-ICVlen will result in too many
> interoperability problems.
>
>
>
> Yeah, I'm aware of it and I understand your concern.
>
>
>
>  However, we could put out a very short RFC that updates RFC 5084 to
> recommend the use of 16 octet authentication tags in all situations.
>
>
>
> Thanks for doing this :) It's SGTM.
>
>
>
> Russ
>
>
>
>
>
> On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com> wrote:
>
>
>
>
>
>
>
> On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <
> rfc-editor@rfc-editor.org> wrote:
>
> The following errata report has been submitted for RFC5084,
> "Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic
> Message Syntax (CMS)".
>
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774
>
> --------------------------------------
> Type: Technical
> Reported by: QUAN NGUYEN <quannguyen@google.com>
>
> Section: 3.2
>
> Original Text
> -------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>
> A length of 12 octets is RECOMMENDED.
>
> Corrected Text
> --------------
> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>
> A length of 16 octets is RECOMMENDED.
>
> Notes
> -----
> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug
> to use 12 bytes authentication tag (aes-ICVlen) as default if the code path
> [1] uses CMS. According to Ferguson's attack (
> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
> ts/CWC-GCM/Ferguson2.pdf), if a user encrypts 2^32 block length message,
> then 12 bytes authentication tag length has only 96 - 32 = 64 bits security
> which is not good enough nowadays. Furthermore, once a forgery happens then
> authentication is leaked.
>
>
>
> Sorry, I meant "authentication *key*" is leaked.
>
>
> [1] In other code paths, all providers use 16 bytes authentication tag as
> default.
>
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary.
>
> --------------------------------------
> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
> --------------------------------------
> Title               : Using AES-CCM and AES-GCM Authenticated Encryption
> in the Cryptographic Message Syntax (CMS)
> Publication Date    : November 2007
> Author(s)           : R. Housley
> Category            : PROPOSED STANDARD
> Source              : S/MIME Mail Security
> Area                : Security
> Stream              : IETF
> Verifying Party     : IESG
>
>
>
>
>
>
>
>
>
>
>

--94eb2c18fbaab11330053a5e7f0c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Aug 18, 2016 at 1:13 PM, Jim Schaad <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:ietf@augustcellars.com" target=3D"_blank">ietf@augustcellars.c=
om</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang=3D"EN-=
US" link=3D"blue" vlink=3D"purple"><div class=3D"m_4455753529458557670m_-72=
2032627615939910WordSection1"><p class=3D"MsoNormal"><span style=3D"font-si=
ze:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">I did a brief look at=
 the code you pointed to and I would run screaming from it for several reas=
ons.<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-siz=
e:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></=
span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family=
:&quot;Calibri&quot;,sans-serif">I do not have a problem if the tag is defa=
ulted to a length of 12 bytes,</span></p></div></div></blockquote><div><br>=
</div><div>Note that I were talking about Java Cipher which is used in diff=
erent scenarios where some requires high-level of security. It&#39;s the li=
brary responsibility to choose a default safe option. Note that in general,=
 all BouncyCastle, Conscrypt, OpenJDK use 16-bytes as default. The only pla=
ce where they use/used 12-byte is where they cite/cited the RFC.</div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex"><div lang=3D"EN-US" link=3D"blue" vlink=3D"purple=
"><div class=3D"m_4455753529458557670m_-722032627615939910WordSection1"><p =
class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calib=
ri&quot;,sans-serif"> but I do not see any way to set it to a different len=
gth if desired.=C2=A0 There should be a version that allows for getting the=
 tag length.=C2=A0 At a minimum the length of the tag should be parameteriz=
ed.</span></p></div></div></blockquote><div><br></div><div>There are differ=
ent ways to initialize Java Cipher and some of them allow user to choose th=
e authentication tag size.=C2=A0</div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div l=
ang=3D"EN-US" link=3D"blue" vlink=3D"purple"><div class=3D"m_44557535294585=
57670m_-722032627615939910WordSection1"><p class=3D"MsoNormal"><span style=
=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u><u>=
</u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p><p cl=
ass=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri=
&quot;,sans-serif">This is making me want to fix the code, but not necessar=
ily wanting to fix the spec.=C2=A0 In the context of the document the defau=
lt is not unreasonable.</span></p></div></div></blockquote><div><br></div><=
div>If it was designed specifically for your use-case and it uses key only =
once for=C2=A0decryption then I agree it&#39;s fine. I believe the core pro=
blem is people only looked at section 3.2 and then applied it for <i>genera=
l</i> usecase.</div><div><br></div><div>Honestly, I don&#39;t know what to =
do in this situation.</div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang=3D"EN-U=
S" link=3D"blue" vlink=3D"purple"><div class=3D"m_4455753529458557670m_-722=
032627615939910WordSection1"><p class=3D"MsoNormal"><span style=3D"font-siz=
e:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u><u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNo=
rmal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-=
serif">Jim<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"fo=
nt-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u>=
</u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p><div =
style=3D"border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt=
"><div><div style=3D"border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0=
pt 0in 0in 0in"><p class=3D"MsoNormal"><b><span style=3D"font-size:11.0pt;f=
ont-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style=3D"f=
ont-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> smime [mailto:=
<a href=3D"mailto:smime-bounces@ietf.org" target=3D"_blank">smime-bounces@i=
etf.org</a><wbr>] <b>On Behalf Of </b>Quan Nguyen<br><b>Sent:</b> Thursday,=
 August 18, 2016 12:07 PM<br><b>To:</b> Russ Housley &lt;<a href=3D"mailto:=
housley@vigilsec.com" target=3D"_blank">housley@vigilsec.com</a>&gt;<br><b>=
Cc:</b> Kathleen Moriarty &lt;<a href=3D"mailto:Kathleen.Moriarty.ietf@gmai=
l.com" target=3D"_blank">Kathleen.Moriarty.ietf@gmail.<wbr>com</a>&gt;; IET=
F SMIME &lt;<a href=3D"mailto:smime@ietf.org" target=3D"_blank">smime@ietf.=
org</a>&gt;; David McGrew &lt;<a href=3D"mailto:mcgrew@cisco.com" target=3D=
"_blank">mcgrew@cisco.com</a>&gt;; Stephen Farrell &lt;<a href=3D"mailto:st=
ephen.farrell@cs.tcd.ie" target=3D"_blank">stephen.farrell@cs.tcd.ie</a>&gt=
;<br><b>Subject:</b> Re: [smime] [Technical Errata Reported] RFC5084 (4774)=
<u></u><u></u></span></p></div></div><div><div class=3D"m_44557535294585576=
70h5"><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><p class=3D"MsoNo=
rmal"><u></u>=C2=A0<u></u></p><div><p class=3D"MsoNormal"><u></u>=C2=A0<u><=
/u></p><div><p class=3D"MsoNormal">On Thu, Aug 18, 2016 at 11:39 AM, Russ H=
ousley &lt;<a href=3D"mailto:housley@vigilsec.com" target=3D"_blank">housle=
y@vigilsec.com</a>&gt; wrote:<u></u><u></u></p><blockquote style=3D"border:=
none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:=
4.8pt;margin-right:0in"><div><p class=3D"MsoNormal">Quan:<u></u><u></u></p>=
<div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"=
MsoNormal">I just read the cited paper from Niels Ferguson &lt;<a href=3D"h=
ttp://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Fergus=
on2.pdf" target=3D"_blank">http://csrc.nist.gov/groups/S<wbr>T/toolkit/BCM/=
documents/commen<wbr>ts/CWC-GCM/Ferguson2.pdf</a>&gt;.=C2=A0 Niels says:<u>=
</u><u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></=
div><div><p class=3D"MsoNormal">=C2=A0 =C2=A0After 2^16 forgery attempts we=
 can expect a successful forgery.<u></u><u></u></p></div><div><p class=3D"M=
soNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">And, th=
en Niels talks about an encrypted voice environment where this attack might=
 lead to disastrous consequences.<u></u><u></u></p></div><div><p class=3D"M=
soNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Also, N=
iels points out that the AES-GCM security proof is unbroken by this attack.=
=C2=A0 He is staying within the bounds of the proven security.<u></u><u></u=
></p></div></div></blockquote><div><p class=3D"MsoNormal"><u></u>=C2=A0<u><=
/u></p></div><div><p class=3D"MsoNormal">Yeah, but the proven security wasn=
&#39;t clear about the weakness/fragility of GCM. The attack explicitly sho=
wed how to exploit the weakness.<u></u><u></u></p></div><blockquote style=
=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;m=
argin-left:4.8pt;margin-right:0in"><div><div><p class=3D"MsoNormal"><u></u>=
=C2=A0<u></u></p></div><div><div><p class=3D"MsoNormal">It is hard to imagi=
ne a protocol environment that uses CMS where 2^16 extra messages would be =
undetected.<u></u><u></u></p></div></div><div><p class=3D"MsoNormal"><u></u=
>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">In addition RFC 5084 re=
quires automated key management.=C2=A0 This means that a fresh AES-GCM key =
ought to be used for each of the messages. <u></u><u></u></p></div></div></=
blockquote><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><=
p class=3D"MsoNormal">Oh, this is interesting. The problem I saw with=C2=A0=
<span style=3D"font-size:9.5pt">OpenJDK, BouncyCastle, Conscrypt=C2=A0is wh=
en Java Cipher (<a href=3D"https://docs.oracle.com/javase/7/docs/api/javax/=
crypto/Cipher.html" target=3D"_blank">https://docs.oracle.com/javas<wbr>e/7=
/docs/api/javax/crypto/<wbr>Cipher.html</a>) is initialized to use GCM mode=
:</span><u></u><u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u=
></u></p></div><div><p class=3D"MsoNormal"><span style=3D"font-size:9.5pt">=
=C2=A0 =C2=A01. In one case, if the parameter is ASN.1 encoded and=C2=A0</s=
pan><span style=3D"font-size:10.0pt;color:black">aes-ICVlen is missing=C2=
=A0</span><span style=3D"font-size:9.5pt">then it&#39;s interpreted as 12-b=
yte.</span><u></u><u></u></p></div><div><p class=3D"MsoNormal"><span style=
=3D"font-size:9.5pt">=C2=A0 =C2=A02. In other case, they use 12-byte tag, c=
iting RFC 5084 recommendation. For instance, see :=C2=A0<a href=3D"https://=
github.com/bcgit/bc-java/blob/master/prov/src/main/java/org/bouncycastle/jc=
ajce/provider/symmetric/AES.java#L497" target=3D"_blank">https://github.com=
/bcgit/bc-<wbr>java/blob/master/prov/src/main<wbr>/java/org/bouncycastle/jc=
ajce/<wbr>provider/symmetric/AES.java#<wbr>L497</a></span><u></u><u></u></p=
></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p cl=
ass=3D"MsoNormal"><span style=3D"font-size:9.5pt">Note that Cipher is a <i>=
general </i>crypto primitive which may be used to encrypt <i>multiple</i> m=
essages. So there may be misunderstanding every now and then. It&#39;s wort=
h to note that I had a hard time convincing developers to change because th=
ey cited RFC :(</span><u></u><u></u></p></div><div><p class=3D"MsoNormal"><=
u></u>=C2=A0<u></u></p></div><blockquote style=3D"border:none;border-left:s=
olid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right=
:0in"><div><div><p class=3D"MsoNormal">=C2=A0I recognize that attackers do =
not follow the specification, but it means that they cannot just use an exi=
sting implementation.<u></u><u></u></p></div><div><p class=3D"MsoNormal"><u=
></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">These two observati=
ons make me wonder whether the is enough of a problem to bother with an upd=
ate to RFC 5084.=C2=A0 What do you think?<u></u><u></u></p></div><div><p cl=
ass=3D"MsoNormal"><span style=3D"color:#888888"><u></u>=C2=A0<u></u></span>=
</p></div><div><p class=3D"MsoNormal"><span style=3D"color:#888888">Russ<u>=
</u><u></u></span></p></div><div><div><div><p class=3D"MsoNormal"><u></u>=
=C2=A0<u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>=
<div><blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"><div><div><=
div><p class=3D"MsoNormal">On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley &l=
t;<a href=3D"mailto:housley@vigilsec.com" target=3D"_blank">housley@vigilse=
c.com</a>&gt; wrote:<u></u><u></u></p><blockquote style=3D"border:none;bord=
er-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;mar=
gin-right:0in"><div><p class=3D"MsoNormal">Quan:<u></u><u></u></p><div><p c=
lass=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal=
">I do not think that we can change the DEFAULT value associated with these=
 OIDs.=C2=A0 Changing the meaning of an absent aes-ICVlen will result in to=
o many interoperability problems. <u></u><u></u></p></div></div></blockquot=
e><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=
=3D"MsoNormal">Yeah, I&#39;m aware of it and I understand your concern.<u><=
/u><u></u></p></div><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></d=
iv><blockquote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding=
:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><p class=3D"Mso=
Normal">=C2=A0However, we could put out a very short RFC that updates RFC 5=
084 to recommend the use of 16 octet authentication tags in all situations.=
 =C2=A0<u></u><u></u></p></div></blockquote><div><p class=3D"MsoNormal"><u>=
</u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Thanks for doing thi=
s :) It&#39;s SGTM.<u></u><u></u></p></div><blockquote style=3D"border:none=
;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8p=
t;margin-right:0in"><div><div><p class=3D"MsoNormal"><span style=3D"color:#=
888888"><u></u>=C2=A0<u></u></span></p></div><div><p class=3D"MsoNormal"><s=
pan style=3D"color:#888888">Russ<u></u><u></u></span></p></div><div><div><d=
iv><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"Ms=
oNormal"><u></u>=C2=A0<u></u></p><div><div><p class=3D"MsoNormal">On Aug 11=
, 2016, at 2:49 PM, Quan Nguyen &lt;<a href=3D"mailto:quannguyen@google.com=
" target=3D"_blank">quannguyen@google.com</a>&gt; wrote:<u></u><u></u></p><=
/div><p class=3D"MsoNormal"><br><br><u></u><u></u></p><blockquote style=3D"=
margin-top:5.0pt;margin-bottom:5.0pt"><div><p class=3D"MsoNormal"><u></u>=
=C2=A0<u></u></p><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><=
p class=3D"MsoNormal">On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System &=
lt;<a href=3D"mailto:rfc-editor@rfc-editor.org" target=3D"_blank">rfc-edito=
r@rfc-editor.org</a>&gt; wrote:<u></u><u></u></p><blockquote style=3D"borde=
r:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-lef=
t:4.8pt;margin-right:0in"><p class=3D"MsoNormal">The following errata repor=
t has been submitted for RFC5084,<br>&quot;Using AES-CCM and AES-GCM Authen=
ticated Encryption in the Cryptographic Message Syntax (CMS)&quot;.<br><br>=
------------------------------<wbr>--------<br>You may review the report be=
low and at:<br><a href=3D"http://www.rfc-editor.org/errata_search.php?rfc=
=3D5084&amp;eid=3D4774" target=3D"_blank">http://www.rfc-editor.org/erra<wb=
r>ta_search.php?rfc=3D5084&amp;eid=3D<wbr>4774</a><br><br>-----------------=
-------------<wbr>--------<br>Type: Technical<br>Reported by: QUAN NGUYEN &=
lt;<a href=3D"mailto:quannguyen@google.com" target=3D"_blank">quannguyen@go=
ogle.com</a>&gt;<br><br>Section: 3.2<br><br>Original Text<br>-------------<=
br>aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 12<br><br>A =
length of 12 octets is RECOMMENDED.<br><br>Corrected Text<br>--------------=
<br>aes-ICVlen=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 16<br><br>A=
 length of 16 octets is RECOMMENDED.<br><br>Notes<br>-----<br>Many JCE prov=
iders including OpenJDK, BouncyCastle, Conscrypt have a bug to use 12 bytes=
 authentication tag (aes-ICVlen) as default if the code path [1] uses CMS. =
According to Ferguson&#39;s attack (<a href=3D"http://csrc.nist.gov/groups/=
ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf" target=3D"_blank">=
http://csrc.nist.gov/groups/S<wbr>T/toolkit/BCM/documents/commen<wbr>ts/CWC=
-GCM/Ferguson2.pdf</a>), if a user encrypts 2^32 block length message, then=
 12 bytes authentication tag length has only 96 - 32 =3D 64 bits security w=
hich is not good enough nowadays. Furthermore, once a forgery happens then =
authentication is leaked.<u></u><u></u></p></blockquote><div><p class=3D"Ms=
oNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Sorry, I=
 meant &quot;authentication <b>key</b>&quot; is leaked.=C2=A0<u></u><u></u>=
</p></div><blockquote style=3D"border:none;border-left:solid #cccccc 1.0pt;=
padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class=3D"M=
soNormal" style=3D"margin-bottom:12.0pt"><br>[1] In other code paths, all p=
roviders use 16 bytes authentication tag as default.<br><br>Instructions:<b=
r>-------------<br>This erratum is currently posted as &quot;Reported&quot;=
. If necessary, please<br>use &quot;Reply All&quot; to discuss whether it s=
hould be verified or<br>rejected. When a decision is reached, the verifying=
 party (IESG)<br>can log in to change the status and edit the report, if ne=
cessary.<br><br>------------------------------<wbr>--------<br>RFC5084 (dra=
ft-ietf-smime-cms-aes-ccm-<wbr>and-gcm-03)<br>-----------------------------=
-<wbr>--------<br>Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0: Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographi=
c Message Syntax (CMS)<br>Publication Date=C2=A0 =C2=A0 : November 2007<br>=
Author(s)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: R. Housley<br>Category=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : PROPOSED STANDARD<br>Source=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : S/MIME Mail Security<br>Are=
a=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Security<br>Stre=
am=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : IETF<br>Verifying Part=
y=C2=A0 =C2=A0 =C2=A0: IESG<u></u><u></u></p></blockquote></div><p class=3D=
"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></blockquote></div><p class=
=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></div></div></blockquote=
></div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></blockqu=
ote></div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></div>=
</div></blockquote></div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></d=
iv></div></div></div></div></div></div></blockquote></div><br></div></div>

--94eb2c18fbaab11330053a5e7f0c--


From nobody Thu Aug 18 16:51:34 2016
Return-Path: <quannguyen@google.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 35F8A12B04A for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 16:51:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.247
X-Spam-Level: 
X-Spam-Status: No, score=-3.247 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k6WsWaZS4vvI for <smime@ietfa.amsl.com>; Thu, 18 Aug 2016 16:51:29 -0700 (PDT)
Received: from mail-ua0-x229.google.com (mail-ua0-x229.google.com [IPv6:2607:f8b0:400c:c08::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59BCF12D5BF for <smime@ietf.org>; Thu, 18 Aug 2016 16:51:29 -0700 (PDT)
Received: by mail-ua0-x229.google.com with SMTP id 97so54302934uav.3 for <smime@ietf.org>; Thu, 18 Aug 2016 16:51:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u73kC2J00yRFxdw303RGum0fkggi06gLgcTaCufIgr0=; b=Q7HjyQ1ha4A8WGl0CzMGXo7Y0kcnUMKyZKR/wvPQKg+ASUO0OrVNa5aa72dAZB/3wS 0m/nElfQXnf2Juh8J1xc0hs7EhxvmZFGXvH8GrF/QOyuzp7QyeQCHDdpveO+hXxgqK+S t9s8g9KCGkFVUpLHt7yBJLwloaG4nGBQUWmRP54OeMXET8fFF6/HVhTWaZYwg/JsV6T7 aLDvJFguoTbHU0lO+MoFyxEOyo7wBUV1RLGmiVuUPZJEaBWgjpezQUfwu3ycKTbz3cDP k/4rFFIgtO+N6Q6jV8RZWKzfKU1Qd5Ue62jjEuapqg2hmEiTji8qUW+BYw2XYsvODZ+/ moEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=u73kC2J00yRFxdw303RGum0fkggi06gLgcTaCufIgr0=; b=dozh1L1nk7PCM6Rc+MvF5xe5ZNBMNrX7GK0OwAsLgKRMN7XY++oNreBC4wSkm2UjB8 w6WdpNk8PzjOopME0KKvSIcacAsZ8BY1hDjSIz/dOcgP0sr8HBbbyphWr1a1UY0VqH1x scxnqM374j1nzFMCDOYkqjr/7gj3RBPd058pGKtUWmEIjnRv94JVdyEFrFaC8qsSlxX9 e82V1KOp1wm155W6qpXvhrZ/cGQCkOVVcO8BBIuFje6lvpgzMaaHNgJg46qxp/sP4gnt ZyiGUN2f4joW1VBYMUMa6PfhpGdB0Z1kLn+CIEIwGu56001wlEcQYfJA2Qdtla6WGRaB 1RTw==
X-Gm-Message-State: AEkoouvYvYR1sv6EaC4TXsZm8QvQuAM1DRfG4n5L0tZxWYXlY94xCaV9ohy7ExBGPWPyE0nAIqvDynZ//dB53Tei
X-Received: by 10.31.78.3 with SMTP id c3mr482369vkb.41.1471564288000; Thu, 18 Aug 2016 16:51:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.139.131 with HTTP; Thu, 18 Aug 2016 16:51:07 -0700 (PDT)
In-Reply-To: <CAKkgqz1HFHiWb8uLLSesSMnCCMs6b=MVJomk2A+o+dWpEwx_Og@mail.gmail.com>
References: <20160811184733.4444EB8111E@rfc-editor.org> <CAKkgqz0j3KwQi5ARRmOYf7+iw5W_6zo3qgLT0aoHiARYqUwjqA@mail.gmail.com> <EA5FD496-53AE-4902-A18F-556F954CD161@vigilsec.com> <CAKkgqz1sG_UyMiCEPgTgg9=gVMEpd7tCmEqL2qY0hN1HnOmMaw@mail.gmail.com> <9FDBF9D0-27CA-4A30-BD3B-C691618E4653@vigilsec.com> <CAKkgqz1P6Xfe4qiPoBaPDn_7UvyxyYStx+1d6Uuqq6QbVZYmaw@mail.gmail.com> <08c401d1f98c$f956ad80$ec040880$@augustcellars.com> <CAKkgqz1HFHiWb8uLLSesSMnCCMs6b=MVJomk2A+o+dWpEwx_Og@mail.gmail.com>
From: Quan Nguyen <quannguyen@google.com>
Date: Thu, 18 Aug 2016 16:51:07 -0700
Message-ID: <CAKkgqz3Krs2z1iFjX7fUUbrF9r2UvS3+2de+a2nsSnMGSwn+oQ@mail.gmail.com>
To: Jim Schaad <ietf@augustcellars.com>
Content-Type: multipart/alternative; boundary=001a11484beea6f3b6053a614248
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/BH9s2DrfQsc-xgaDshogqeST5IQ>
Cc: Stephen Farrell <stephen.farrell@cs.tcd.ie>, Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>, David McGrew <mcgrew@cisco.com>, IETF SMIME <smime@ietf.org>
Subject: Re: [smime] [Technical Errata Reported] RFC5084 (4774)
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2016 23:51:33 -0000

--001a11484beea6f3b6053a614248
Content-Type: text/plain; charset=UTF-8

FYI, BouncyCastle just fixed the default to 16 bytes a few hours ago:
https://github.com/bcgit/bc-java/commit/fa25b67c91b1b8d1e9c25f05e198da99db6f1f1a

On Thu, Aug 18, 2016 at 1:33 PM, Quan Nguyen <quannguyen@google.com> wrote:

>
>
> On Thu, Aug 18, 2016 at 1:13 PM, Jim Schaad <ietf@augustcellars.com>
> wrote:
>
>> I did a brief look at the code you pointed to and I would run screaming
>> from it for several reasons.
>>
>>
>>
>> I do not have a problem if the tag is defaulted to a length of 12 bytes,
>>
>
> Note that I were talking about Java Cipher which is used in different
> scenarios where some requires high-level of security. It's the library
> responsibility to choose a default safe option. Note that in general, all
> BouncyCastle, Conscrypt, OpenJDK use 16-bytes as default. The only place
> where they use/used 12-byte is where they cite/cited the RFC.
>
>> but I do not see any way to set it to a different length if desired.
>> There should be a version that allows for getting the tag length.  At a
>> minimum the length of the tag should be parameterized.
>>
>
> There are different ways to initialize Java Cipher and some of them allow
> user to choose the authentication tag size.
>
>>
>>
>> This is making me want to fix the code, but not necessarily wanting to
>> fix the spec.  In the context of the document the default is not
>> unreasonable.
>>
>
> If it was designed specifically for your use-case and it uses key only
> once for decryption then I agree it's fine. I believe the core problem is
> people only looked at section 3.2 and then applied it for *general*
> usecase.
>
> Honestly, I don't know what to do in this situation.
>
>>
>>
>> Jim
>>
>>
>>
>>
>>
>> *From:* smime [mailto:smime-bounces@ietf.org] *On Behalf Of *Quan Nguyen
>> *Sent:* Thursday, August 18, 2016 12:07 PM
>> *To:* Russ Housley <housley@vigilsec.com>
>> *Cc:* Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>; IETF SMIME <
>> smime@ietf.org>; David McGrew <mcgrew@cisco.com>; Stephen Farrell <
>> stephen.farrell@cs.tcd.ie>
>> *Subject:* Re: [smime] [Technical Errata Reported] RFC5084 (4774)
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Aug 18, 2016 at 11:39 AM, Russ Housley <housley@vigilsec.com>
>> wrote:
>>
>> Quan:
>>
>>
>>
>> I just read the cited paper from Niels Ferguson <
>> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
>> ts/CWC-GCM/Ferguson2.pdf>.  Niels says:
>>
>>
>>
>>    After 2^16 forgery attempts we can expect a successful forgery.
>>
>>
>>
>> And, then Niels talks about an encrypted voice environment where this
>> attack might lead to disastrous consequences.
>>
>>
>>
>> Also, Niels points out that the AES-GCM security proof is unbroken by
>> this attack.  He is staying within the bounds of the proven security.
>>
>>
>>
>> Yeah, but the proven security wasn't clear about the weakness/fragility
>> of GCM. The attack explicitly showed how to exploit the weakness.
>>
>>
>>
>> It is hard to imagine a protocol environment that uses CMS where 2^16
>> extra messages would be undetected.
>>
>>
>>
>> In addition RFC 5084 requires automated key management.  This means that
>> a fresh AES-GCM key ought to be used for each of the messages.
>>
>>
>>
>> Oh, this is interesting. The problem I saw with OpenJDK, BouncyCastle,
>> Conscrypt is when Java Cipher (https://docs.oracle.com/javas
>> e/7/docs/api/javax/crypto/Cipher.html) is initialized to use GCM mode:
>>
>>
>>
>>    1. In one case, if the parameter is ASN.1 encoded and aes-ICVlen is
>> missing then it's interpreted as 12-byte.
>>
>>    2. In other case, they use 12-byte tag, citing RFC 5084
>> recommendation. For instance, see : https://github.com/bcgit/bc-
>> java/blob/master/prov/src/main/java/org/bouncycastle/jcajce/
>> provider/symmetric/AES.java#L497
>>
>>
>>
>> Note that Cipher is a *general *crypto primitive which may be used to
>> encrypt *multiple* messages. So there may be misunderstanding every now
>> and then. It's worth to note that I had a hard time convincing developers
>> to change because they cited RFC :(
>>
>>
>>
>>  I recognize that attackers do not follow the specification, but it means
>> that they cannot just use an existing implementation.
>>
>>
>>
>> These two observations make me wonder whether the is enough of a problem
>> to bother with an update to RFC 5084.  What do you think?
>>
>>
>>
>> Russ
>>
>>
>>
>>
>>
>> On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley <housley@vigilsec.com>
>> wrote:
>>
>> Quan:
>>
>>
>>
>> I do not think that we can change the DEFAULT value associated with these
>> OIDs.  Changing the meaning of an absent aes-ICVlen will result in too many
>> interoperability problems.
>>
>>
>>
>> Yeah, I'm aware of it and I understand your concern.
>>
>>
>>
>>  However, we could put out a very short RFC that updates RFC 5084 to
>> recommend the use of 16 octet authentication tags in all situations.
>>
>>
>>
>> Thanks for doing this :) It's SGTM.
>>
>>
>>
>> Russ
>>
>>
>>
>>
>>
>> On Aug 11, 2016, at 2:49 PM, Quan Nguyen <quannguyen@google.com> wrote:
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System <
>> rfc-editor@rfc-editor.org> wrote:
>>
>> The following errata report has been submitted for RFC5084,
>> "Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic
>> Message Syntax (CMS)".
>>
>> --------------------------------------
>> You may review the report below and at:
>> http://www.rfc-editor.org/errata_search.php?rfc=5084&eid=4774
>>
>> --------------------------------------
>> Type: Technical
>> Reported by: QUAN NGUYEN <quannguyen@google.com>
>>
>> Section: 3.2
>>
>> Original Text
>> -------------
>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 12
>>
>> A length of 12 octets is RECOMMENDED.
>>
>> Corrected Text
>> --------------
>> aes-ICVlen       AES-GCM-ICVlen DEFAULT 16
>>
>> A length of 16 octets is RECOMMENDED.
>>
>> Notes
>> -----
>> Many JCE providers including OpenJDK, BouncyCastle, Conscrypt have a bug
>> to use 12 bytes authentication tag (aes-ICVlen) as default if the code path
>> [1] uses CMS. According to Ferguson's attack (
>> http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/commen
>> ts/CWC-GCM/Ferguson2.pdf), if a user encrypts 2^32 block length message,
>> then 12 bytes authentication tag length has only 96 - 32 = 64 bits security
>> which is not good enough nowadays. Furthermore, once a forgery happens then
>> authentication is leaked.
>>
>>
>>
>> Sorry, I meant "authentication *key*" is leaked.
>>
>>
>> [1] In other code paths, all providers use 16 bytes authentication tag as
>> default.
>>
>> Instructions:
>> -------------
>> This erratum is currently posted as "Reported". If necessary, please
>> use "Reply All" to discuss whether it should be verified or
>> rejected. When a decision is reached, the verifying party (IESG)
>> can log in to change the status and edit the report, if necessary.
>>
>> --------------------------------------
>> RFC5084 (draft-ietf-smime-cms-aes-ccm-and-gcm-03)
>> --------------------------------------
>> Title               : Using AES-CCM and AES-GCM Authenticated Encryption
>> in the Cryptographic Message Syntax (CMS)
>> Publication Date    : November 2007
>> Author(s)           : R. Housley
>> Category            : PROPOSED STANDARD
>> Source              : S/MIME Mail Security
>> Area                : Security
>> Stream              : IETF
>> Verifying Party     : IESG
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>

--001a11484beea6f3b6053a614248
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">FYI, BouncyCastle just fixed the default to 16 bytes a few=
 hours ago:=C2=A0<a href=3D"https://github.com/bcgit/bc-java/commit/fa25b67=
c91b1b8d1e9c25f05e198da99db6f1f1a">https://github.com/bcgit/bc-java/commit/=
fa25b67c91b1b8d1e9c25f05e198da99db6f1f1a</a></div><div class=3D"gmail_extra=
"><br><div class=3D"gmail_quote">On Thu, Aug 18, 2016 at 1:33 PM, Quan Nguy=
en <span dir=3D"ltr">&lt;<a href=3D"mailto:quannguyen@google.com" target=3D=
"_blank">quannguyen@google.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div clas=
s=3D"gmail_quote"><span class=3D"">On Thu, Aug 18, 2016 at 1:13 PM, Jim Sch=
aad <span dir=3D"ltr">&lt;<a href=3D"mailto:ietf@augustcellars.com" target=
=3D"_blank">ietf@augustcellars.com</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex"><div lang=3D"EN-US" link=3D"blue" vlink=3D"purple"><div cla=
ss=3D"m_7564309215827753601m_4455753529458557670m_-722032627615939910WordSe=
ction1"><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:=
&quot;Calibri&quot;,sans-serif">I did a brief look at the code you pointed =
to and I would run screaming from it for several reasons.<u></u><u></u></sp=
an></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&=
quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p><p class=3D"M=
soNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,s=
ans-serif">I do not have a problem if the tag is defaulted to a length of 1=
2 bytes,</span></p></div></div></blockquote><div><br></div></span><div>Note=
 that I were talking about Java Cipher which is used in different scenarios=
 where some requires high-level of security. It&#39;s the library responsib=
ility to choose a default safe option. Note that in general, all BouncyCast=
le, Conscrypt, OpenJDK use 16-bytes as default. The only place where they u=
se/used 12-byte is where they cite/cited the RFC.</div><span class=3D""><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex"><div lang=3D"EN-US" link=3D"blue" vlink=3D"purp=
le"><div class=3D"m_7564309215827753601m_4455753529458557670m_-722032627615=
939910WordSection1"><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;=
font-family:&quot;Calibri&quot;,sans-serif"> but I do not see any way to se=
t it to a different length if desired.=C2=A0 There should be a version that=
 allows for getting the tag length.=C2=A0 At a minimum the length of the ta=
g should be parameterized.</span></p></div></div></blockquote><div><br></di=
v></span><div>There are different ways to initialize Java Cipher and some o=
f them allow user to choose the authentication tag size.=C2=A0</div><span c=
lass=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex"><div lang=3D"EN-US" link=3D"blue" =
vlink=3D"purple"><div class=3D"m_7564309215827753601m_4455753529458557670m_=
-722032627615939910WordSection1"><p class=3D"MsoNormal"><span style=3D"font=
-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u><u></u></sp=
an></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&=
quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p><p class=3D"M=
soNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,s=
ans-serif">This is making me want to fix the code, but not necessarily want=
ing to fix the spec.=C2=A0 In the context of the document the default is no=
t unreasonable.</span></p></div></div></blockquote><div><br></div></span><d=
iv>If it was designed specifically for your use-case and it uses key only o=
nce for=C2=A0decryption then I agree it&#39;s fine. I believe the core prob=
lem is people only looked at section 3.2 and then applied it for <i>general=
</i> usecase.</div><div><br></div><div>Honestly, I don&#39;t know what to d=
o in this situation.</div><div><div class=3D"h5"><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex"><div lang=3D"EN-US" link=3D"blue" vlink=3D"purple"><div class=3D"m_756=
4309215827753601m_4455753529458557670m_-722032627615939910WordSection1"><p =
class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calib=
ri&quot;,sans-serif"><u></u><u></u></span></p><p class=3D"MsoNormal"><span =
style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></=
u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:1=
1.0pt;font-family:&quot;Calibri&quot;,sans-serif">Jim<u></u><u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNo=
rmal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p><div style=3D"border:none;border-left=
:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style=3D"border:none=
;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class=3D"MsoN=
ormal"><b><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,s=
ans-serif">From:</span></b><span style=3D"font-size:11.0pt;font-family:&quo=
t;Calibri&quot;,sans-serif"> smime [mailto:<a href=3D"mailto:smime-bounces@=
ietf.org" target=3D"_blank">smime-bounces@ietf.org</a><wbr>] <b>On Behalf O=
f </b>Quan Nguyen<br><b>Sent:</b> Thursday, August 18, 2016 12:07 PM<br><b>=
To:</b> Russ Housley &lt;<a href=3D"mailto:housley@vigilsec.com" target=3D"=
_blank">housley@vigilsec.com</a>&gt;<br><b>Cc:</b> Kathleen Moriarty &lt;<a=
 href=3D"mailto:Kathleen.Moriarty.ietf@gmail.com" target=3D"_blank">Kathlee=
n.Moriarty.ietf@gmail.<wbr>com</a>&gt;; IETF SMIME &lt;<a href=3D"mailto:sm=
ime@ietf.org" target=3D"_blank">smime@ietf.org</a>&gt;; David McGrew &lt;<a=
 href=3D"mailto:mcgrew@cisco.com" target=3D"_blank">mcgrew@cisco.com</a>&gt=
;; Stephen Farrell &lt;<a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=
=3D"_blank">stephen.farrell@cs.tcd.ie</a>&gt;<br><b>Subject:</b> Re: [smime=
] [Technical Errata Reported] RFC5084 (4774)<u></u><u></u></span></p></div>=
</div><div><div class=3D"m_7564309215827753601m_4455753529458557670h5"><p c=
lass=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><p class=3D"MsoNormal"><u><=
/u>=C2=A0<u></u></p><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><di=
v><p class=3D"MsoNormal">On Thu, Aug 18, 2016 at 11:39 AM, Russ Housley &lt=
;<a href=3D"mailto:housley@vigilsec.com" target=3D"_blank">housley@vigilsec=
.com</a>&gt; wrote:<u></u><u></u></p><blockquote style=3D"border:none;borde=
r-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;marg=
in-right:0in"><div><p class=3D"MsoNormal">Quan:<u></u><u></u></p><div><p cl=
ass=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal"=
>I just read the cited paper from Niels Ferguson &lt;<a href=3D"http://csrc=
.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf" t=
arget=3D"_blank">http://csrc.nist.gov/groups/S<wbr>T/toolkit/BCM/documents/=
commen<wbr>ts/CWC-GCM/Ferguson2.pdf</a>&gt;.=C2=A0 Niels says:<u></u><u></u=
></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><=
p class=3D"MsoNormal">=C2=A0 =C2=A0After 2^16 forgery attempts we can expec=
t a successful forgery.<u></u><u></u></p></div><div><p class=3D"MsoNormal">=
<u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">And, then Niels t=
alks about an encrypted voice environment where this attack might lead to d=
isastrous consequences.<u></u><u></u></p></div><div><p class=3D"MsoNormal">=
<u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Also, Niels point=
s out that the AES-GCM security proof is unbroken by this attack.=C2=A0 He =
is staying within the bounds of the proven security.<u></u><u></u></p></div=
></div></blockquote><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></d=
iv><div><p class=3D"MsoNormal">Yeah, but the proven security wasn&#39;t cle=
ar about the weakness/fragility of GCM. The attack explicitly showed how to=
 exploit the weakness.<u></u><u></u></p></div><blockquote style=3D"border:n=
one;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4=
.8pt;margin-right:0in"><div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u=
></p></div><div><div><p class=3D"MsoNormal">It is hard to imagine a protoco=
l environment that uses CMS where 2^16 extra messages would be undetected.<=
u></u><u></u></p></div></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></=
u></p></div><div><p class=3D"MsoNormal">In addition RFC 5084 requires autom=
ated key management.=C2=A0 This means that a fresh AES-GCM key ought to be =
used for each of the messages. <u></u><u></u></p></div></div></blockquote><=
div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"M=
soNormal">Oh, this is interesting. The problem I saw with=C2=A0<span style=
=3D"font-size:9.5pt">OpenJDK, BouncyCastle, Conscrypt=C2=A0is when Java Cip=
her (<a href=3D"https://docs.oracle.com/javase/7/docs/api/javax/crypto/Ciph=
er.html" target=3D"_blank">https://docs.oracle.com/javas<wbr>e/7/docs/api/j=
avax/crypto/Ciph<wbr>er.html</a>) is initialized to use GCM mode:</span><u>=
</u><u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></=
div><div><p class=3D"MsoNormal"><span style=3D"font-size:9.5pt">=C2=A0 =C2=
=A01. In one case, if the parameter is ASN.1 encoded and=C2=A0</span><span =
style=3D"font-size:10.0pt;color:black">aes-ICVlen is missing=C2=A0</span><s=
pan style=3D"font-size:9.5pt">then it&#39;s interpreted as 12-byte.</span><=
u></u><u></u></p></div><div><p class=3D"MsoNormal"><span style=3D"font-size=
:9.5pt">=C2=A0 =C2=A02. In other case, they use 12-byte tag, citing RFC 508=
4 recommendation. For instance, see :=C2=A0<a href=3D"https://github.com/bc=
git/bc-java/blob/master/prov/src/main/java/org/bouncycastle/jcajce/provider=
/symmetric/AES.java#L497" target=3D"_blank">https://github.com/bcgit/bc-<wb=
r>java/blob/master/prov/src/main<wbr>/java/org/bouncycastle/jcajce/<wbr>pro=
vider/symmetric/AES.java#L4<wbr>97</a></span><u></u><u></u></p></div><div><=
p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNor=
mal"><span style=3D"font-size:9.5pt">Note that Cipher is a <i>general </i>c=
rypto primitive which may be used to encrypt <i>multiple</i> messages. So t=
here may be misunderstanding every now and then. It&#39;s worth to note tha=
t I had a hard time convincing developers to change because they cited RFC =
:(</span><u></u><u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<=
u></u></p></div><blockquote style=3D"border:none;border-left:solid #cccccc =
1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><d=
iv><p class=3D"MsoNormal">=C2=A0I recognize that attackers do not follow th=
e specification, but it means that they cannot just use an existing impleme=
ntation.<u></u><u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u=
></u></p></div><div><p class=3D"MsoNormal">These two observations make me w=
onder whether the is enough of a problem to bother with an update to RFC 50=
84.=C2=A0 What do you think?<u></u><u></u></p></div><div><p class=3D"MsoNor=
mal"><span style=3D"color:#888888"><u></u>=C2=A0<u></u></span></p></div><di=
v><p class=3D"MsoNormal"><span style=3D"color:#888888">Russ<u></u><u></u></=
span></p></div><div><div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></=
p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><blockquot=
e style=3D"margin-top:5.0pt;margin-bottom:5.0pt"><div><div><div><p class=3D=
"MsoNormal">On Mon, Aug 15, 2016 at 1:55 PM, Russ Housley &lt;<a href=3D"ma=
ilto:housley@vigilsec.com" target=3D"_blank">housley@vigilsec.com</a>&gt; w=
rote:<u></u><u></u></p><blockquote style=3D"border:none;border-left:solid #=
cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">=
<div><p class=3D"MsoNormal">Quan:<u></u><u></u></p><div><p class=3D"MsoNorm=
al"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">I do not thin=
k that we can change the DEFAULT value associated with these OIDs.=C2=A0 Ch=
anging the meaning of an absent aes-ICVlen will result in too many interope=
rability problems. <u></u><u></u></p></div></div></blockquote><div><p class=
=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Ye=
ah, I&#39;m aware of it and I understand your concern.<u></u><u></u></p></d=
iv><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><blockquote st=
yle=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0p=
t;margin-left:4.8pt;margin-right:0in"><div><p class=3D"MsoNormal">=C2=A0How=
ever, we could put out a very short RFC that updates RFC 5084 to recommend =
the use of 16 octet authentication tags in all situations. =C2=A0<u></u><u>=
</u></p></div></blockquote><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u>=
</p></div><div><p class=3D"MsoNormal">Thanks for doing this :) It&#39;s SGT=
M.<u></u><u></u></p></div><blockquote style=3D"border:none;border-left:soli=
d #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0i=
n"><div><div><p class=3D"MsoNormal"><span style=3D"color:#888888"><u></u>=
=C2=A0<u></u></span></p></div><div><p class=3D"MsoNormal"><span style=3D"co=
lor:#888888">Russ<u></u><u></u></span></p></div><div><div><div><p class=3D"=
MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal"><u></u=
>=C2=A0<u></u></p><div><div><p class=3D"MsoNormal">On Aug 11, 2016, at 2:49=
 PM, Quan Nguyen &lt;<a href=3D"mailto:quannguyen@google.com" target=3D"_bl=
ank">quannguyen@google.com</a>&gt; wrote:<u></u><u></u></p></div><p class=
=3D"MsoNormal"><br><br><u></u><u></u></p><blockquote style=3D"margin-top:5.=
0pt;margin-bottom:5.0pt"><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></=
p><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><p class=3D"MsoN=
ormal">On Thu, Aug 11, 2016 at 11:47 AM, RFC Errata System &lt;<a href=3D"m=
ailto:rfc-editor@rfc-editor.org" target=3D"_blank">rfc-editor@rfc-editor.or=
g</a>&gt; wrote:<u></u><u></u></p><blockquote style=3D"border:none;border-l=
eft:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-=
right:0in"><p class=3D"MsoNormal">The following errata report has been subm=
itted for RFC5084,<br>&quot;Using AES-CCM and AES-GCM Authenticated Encrypt=
ion in the Cryptographic Message Syntax (CMS)&quot;.<br><br>---------------=
---------------<wbr>--------<br>You may review the report below and at:<br>=
<a href=3D"http://www.rfc-editor.org/errata_search.php?rfc=3D5084&amp;eid=
=3D4774" target=3D"_blank">http://www.rfc-editor.org/erra<wbr>ta_search.php=
?rfc=3D5084&amp;eid=3D477<wbr>4</a><br><br>------------------------------<w=
br>--------<br>Type: Technical<br>Reported by: QUAN NGUYEN &lt;<a href=3D"m=
ailto:quannguyen@google.com" target=3D"_blank">quannguyen@google.com</a>&gt=
;<br><br>Section: 3.2<br><br>Original Text<br>-------------<br>aes-ICVlen=
=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 12<br><br>A length of 12 =
octets is RECOMMENDED.<br><br>Corrected Text<br>--------------<br>aes-ICVle=
n=C2=A0 =C2=A0 =C2=A0 =C2=A0AES-GCM-ICVlen DEFAULT 16<br><br>A length of 16=
 octets is RECOMMENDED.<br><br>Notes<br>-----<br>Many JCE providers includi=
ng OpenJDK, BouncyCastle, Conscrypt have a bug to use 12 bytes authenticati=
on tag (aes-ICVlen) as default if the code path [1] uses CMS. According to =
Ferguson&#39;s attack (<a href=3D"http://csrc.nist.gov/groups/ST/toolkit/BC=
M/documents/comments/CWC-GCM/Ferguson2.pdf" target=3D"_blank">http://csrc.n=
ist.gov/groups/S<wbr>T/toolkit/BCM/documents/commen<wbr>ts/CWC-GCM/Ferguson=
2.pdf</a>), if a user encrypts 2^32 block length message, then 12 bytes aut=
hentication tag length has only 96 - 32 =3D 64 bits security which is not g=
ood enough nowadays. Furthermore, once a forgery happens then authenticatio=
n is leaked.<u></u><u></u></p></blockquote><div><p class=3D"MsoNormal"><u><=
/u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Sorry, I meant &quot;=
authentication <b>key</b>&quot; is leaked.=C2=A0<u></u><u></u></p></div><bl=
ockquote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0in 0=
in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class=3D"MsoNormal" sty=
le=3D"margin-bottom:12.0pt"><br>[1] In other code paths, all providers use =
16 bytes authentication tag as default.<br><br>Instructions:<br>-----------=
--<br>This erratum is currently posted as &quot;Reported&quot;. If necessar=
y, please<br>use &quot;Reply All&quot; to discuss whether it should be veri=
fied or<br>rejected. When a decision is reached, the verifying party (IESG)=
<br>can log in to change the status and edit the report, if necessary.<br><=
br>------------------------------<wbr>--------<br>RFC5084 (draft-ietf-smime=
-cms-aes-ccm-<wbr>and-gcm-03)<br>------------------------------<wbr>-------=
-<br>Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: Using AE=
S-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syn=
tax (CMS)<br>Publication Date=C2=A0 =C2=A0 : November 2007<br>Author(s)=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: R. Housley<br>Category=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : PROPOSED STANDARD<br>Source=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : S/MIME Mail Security<br>Area=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Security<br>Stream=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : IETF<br>Verifying Party=C2=A0 =C2=
=A0 =C2=A0: IESG<u></u><u></u></p></blockquote></div><p class=3D"MsoNormal"=
><u></u>=C2=A0<u></u></p></div></div></blockquote></div><p class=3D"MsoNorm=
al"><u></u>=C2=A0<u></u></p></div></div></div></div></blockquote></div><p c=
lass=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></blockquote></div><=
p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></div></div></blo=
ckquote></div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></=
div></div></div></div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>

--001a11484beea6f3b6053a614248--


From nobody Mon Aug 22 12:04:38 2016
Return-Path: <hallam@gmail.com>
X-Original-To: smime@ietfa.amsl.com
Delivered-To: smime@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5F18212D798; Mon, 22 Aug 2016 12:04:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.597
X-Spam-Level: 
X-Spam-Status: No, score=-2.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3mNRk_xNa5nZ; Mon, 22 Aug 2016 12:04:11 -0700 (PDT)
Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D61312D5A5; Mon, 22 Aug 2016 12:04:10 -0700 (PDT)
Received: by mail-qk0-x22c.google.com with SMTP id l2so89950829qkf.3; Mon, 22 Aug 2016 12:04:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:from:date:message-id:subject:to; bh=R46glwfuinuQEXLMMrmIX627Z2aZvla+rlJjE7vw5cg=; b=keaCnE+bLsLTjpdMBg/AcCyQ+V0QcBNJ149Y9ZYkfHmMjtapAB16idE5TDII9jRQaS q751gL+9farQVjEOVQZ0prfs+HHDMgGIzEue5e8enNuaYWj/FSn4enD5iS7RhqaaN/nv vbkgzpgtPaPylVBNWdtNgIv7mUR+WcS69KIEUZQeyi1nr30eC4vX9hz0XoxnaP9IYzrc OPJA6N+UQeMeJfMr05fYyzRnQ60jMINPEgyT4riD2w5PRR9KfAVQJo3pR4xlZq83RTaq VwtFaGJcMSlQruUC7wU6gmiJSbekod7q2pe0qjkU1m3gDJQn9D/ypqy3J0IxP3bFym8l UBLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=R46glwfuinuQEXLMMrmIX627Z2aZvla+rlJjE7vw5cg=; b=aTxoNnjekXqRWwy9PzGll2tHJt/jh7STP+MblkQf1PRprKpjgDpsz83L7fA0R6f1j4 bLpbfWHxZdpf9DPYpFDFMK5nZgCt/VRXIe4DVIdgxeR+73jLuDJNF7MD27JGgh8UJERy i9mnYyLgbUFuzOQtzoZfKfluViMucW/ta4SaN1YZPyNqbPqwU785PyYofwPlZTANUuhJ d8qHo1KlRpRN0CyP28C8hOvUm1MDv7Utf1TzLDoPyRFSw79yrtV3MTY121rRzq+nUC0U 5L+Tj8z6iRQw1+efDmnnZxGLSofz/WQ/HtvIQ8Gk4fOaMXxzBHLOaOW6EdwEjXbDdmQN p3gg==
X-Gm-Message-State: AEkoouvQKIC7CxVert2ulSeT/mmxwGoWbXVSWCReMY4p06hcAGt78jaCPp+vC9xvsFQVQxnlX/sM3cmHucPVxA==
X-Received: by 10.55.99.195 with SMTP id x186mr25013950qkb.26.1471892649031; Mon, 22 Aug 2016 12:04:09 -0700 (PDT)
MIME-Version: 1.0
Sender: hallam@gmail.com
Received: by 10.55.168.151 with HTTP; Mon, 22 Aug 2016 12:04:08 -0700 (PDT)
From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Mon, 22 Aug 2016 15:04:08 -0400
X-Google-Sender-Auth: 2E1H8l7X350QRopIPTuJz1XG-oU
Message-ID: <CAMm+Lwi3e2TCx79bMQJLcegL2fV_L2jkMmvvpD4Q9k4KMsG-SA@mail.gmail.com>
To: endymail <endymail@ietf.org>, "cfrg@irtf.org" <cfrg@irtf.org>, IETF OpenPGP <openpgp@ietf.org>, IETF SMIME <smime@ietf.org>
Content-Type: multipart/alternative; boundary=001a114d38227e3edd053aadb633
Archived-At: <https://mailarchive.ietf.org/arch/msg/smime/zMTo1hA0HJx2Rx6dOEoXZl5JOXE>
Subject: [smime] Proposal to use Proxy Re-Encryption in a messaging protocol
X-BeenThere: smime@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SMIME Working Group <smime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/smime>, <mailto:smime-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/smime/>
List-Post: <mailto:smime@ietf.org>
List-Help: <mailto:smime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/smime>, <mailto:smime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Aug 2016 19:04:12 -0000

--001a114d38227e3edd053aadb633
Content-Type: text/plain; charset=UTF-8

NB: Please direct followups to endymail@ietf.org alone


The draft is at:

https://www.ietf.org/id/draft-hallambaker-mesh-recrypt-00.txt


At the last IETF, I made a presentation on the use of Proxy Re-Encryption
'recryption' at the CFRG session=. I think that this is a very powerful
technique that solves some real problems we are facing today that were
probably not as apparent when it was first proposed.

In particular, recryption allows end-to-end security to be preserved in
situations where it would normally be lost. For example in a mailing list
application or in a situation where Alice needs to read her email on
multiple devices, some of which might be mobile devices that could get
lost. Recryption also provides the ideal basis for Confidential Document
Control which is an access control system that uses data level encryption,

One slight holdup here is that there is a patent encumbrance that purports
to claim the use of recyption for DRM applications but this will expire
shortly, certainly before any project could get off the ground.


I have written an Internet draft showing how Recryption might be
implemented as a 'clean slate' protocol. Since we don't have anything like
a CDC application yet (Plasma maybe), this is going to be a requirement for
some situations. I am thinking we should probably try to build something
and work out how to get that running before working out how best to fit
these capabilities to S/MIME, OpenPGP, Jabber, etc.

Contrary to my usual practice, there is no code so far, well no
implementation code.I will be filling that in once I finish a few things
ahead of this in the queue, specifically using the Mesh to manage SSH keys.


The one technical holdup I see here is that if we are going to get people
to use it, usability can't be 'OK' or 'not bad'. The only way to get a new
crypto system off the ground is to design something that delivers usability
that is iPhone level perfect. I think that the Mesh makes that possible of
course but I will probably have to prove that with some demos. Which is why
I want to get the Mesh to manage SSH keys.

--001a114d38227e3edd053aadb633
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">NB:=
 Please direct followups to <a href=3D"mailto:endymail@ietf.org">endymail@i=
etf.org</a> alone</div><div class=3D"gmail_default" style=3D"font-size:smal=
l"><br></div><div class=3D"gmail_default" style=3D"font-size:small"><br></d=
iv><div class=3D"gmail_default" style=3D"font-size:small">The draft is at:<=
/div><div class=3D"gmail_default" style=3D"font-size:small"><br></div><div =
class=3D"gmail_default" style=3D""><a href=3D"https://www.ietf.org/id/draft=
-hallambaker-mesh-recrypt-00.txt">https://www.ietf.org/id/draft-hallambaker=
-mesh-recrypt-00.txt</a><br></div><div class=3D"gmail_default" style=3D"fon=
t-size:small"><br></div><div class=3D"gmail_default" style=3D"font-size:sma=
ll"><br></div><div class=3D"gmail_default" style=3D"font-size:small">At the=
 last IETF, I made a presentation on the use of Proxy Re-Encryption &#39;re=
cryption&#39; at the CFRG session=3D. I think that this is a very powerful =
technique that solves some real problems we are facing today that were prob=
ably not as apparent when it was first proposed.</div><div class=3D"gmail_d=
efault" style=3D"font-size:small"><br></div><div class=3D"gmail_default" st=
yle=3D"font-size:small">In particular, recryption allows end-to-end securit=
y to be preserved in situations where it would normally be lost. For exampl=
e in a mailing list application or in a situation where Alice needs to read=
 her email on multiple devices, some of which might be mobile devices that =
could get lost. Recryption also provides the ideal basis for Confidential D=
ocument Control which is an access control system that uses data level encr=
yption,</div><div class=3D"gmail_default" style=3D"font-size:small"><br></d=
iv><div class=3D"gmail_default" style=3D"font-size:small">One slight holdup=
 here is that there is a patent encumbrance that purports to claim the use =
of recyption for DRM applications but this will expire shortly, certainly b=
efore any project could get off the ground.</div><div class=3D"gmail_defaul=
t" style=3D"font-size:small"><br></div><div class=3D"gmail_default" style=
=3D"font-size:small"><br></div><div class=3D"gmail_default" style=3D"font-s=
ize:small">I have written an Internet draft showing how Recryption might be=
 implemented as a &#39;clean slate&#39; protocol. Since we don&#39;t have a=
nything like a CDC application yet (Plasma maybe), this is going to be a re=
quirement for some situations. I am thinking we should probably try to buil=
d something and work out how to get that running before working out how bes=
t to fit these capabilities to S/MIME, OpenPGP, Jabber, etc.</div><div clas=
s=3D"gmail_default" style=3D"font-size:small"><br></div><div class=3D"gmail=
_default" style=3D"font-size:small">Contrary to my usual practice, there is=
 no code so far, well no implementation code.I will be filling that in once=
 I finish a few things ahead of this in the queue, specifically using the M=
esh to manage SSH keys.</div><div class=3D"gmail_default" style=3D"font-siz=
e:small"><br></div><div class=3D"gmail_default" style=3D"font-size:small"><=
br></div><div class=3D"gmail_default" style=3D"font-size:small">The one tec=
hnical holdup I see here is that if we are going to get people to use it, u=
sability can&#39;t be &#39;OK&#39; or &#39;not bad&#39;. The only way to ge=
t a new crypto system off the ground is to design something that delivers u=
sability that is iPhone level perfect. I think that the Mesh makes that pos=
sible of course but I will probably have to prove that with some demos. Whi=
ch is why I want to get the Mesh to manage SSH keys.</div><div class=3D"gma=
il_default" style=3D"font-size:small"><br></div><div class=3D"gmail_default=
" style=3D"font-size:small"><br></div><div class=3D"gmail_default" style=3D=
"font-size:small"><br></div></div>

--001a114d38227e3edd053aadb633--

