Re: [saag] ASN.1 vs. DER Encoding

"Salz, Rich" <rsalz@akamai.com> Sun, 31 March 2019 15:38 UTC

Return-Path: <rsalz@akamai.com>
X-Original-To: saag@ietfa.amsl.com
Delivered-To: saag@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D3F0A1201A0 for <saag@ietfa.amsl.com>; Sun, 31 Mar 2019 08:38:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.852
X-Spam-Level:
X-Spam-Status: No, score=-1.852 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KHOP_DYNAMIC=0.85, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=akamai.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 OnJjzI0e2LHX for <saag@ietfa.amsl.com>; Sun, 31 Mar 2019 08:38:57 -0700 (PDT)
Received: from mx0b-00190b01.pphosted.com (mx0b-00190b01.pphosted.com [IPv6:2620:100:9005:57f::1]) (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 26B78120199 for <saag@ietf.org>; Sun, 31 Mar 2019 08:38:57 -0700 (PDT)
Received: from pps.filterd (m0050096.ppops.net [127.0.0.1]) by m0050096.ppops.net-00190b01. (8.16.0.27/8.16.0.27) with SMTP id x2VFXNGr021640; Sun, 31 Mar 2019 16:38:55 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=jan2016.eng; bh=QdPilhR6WdqY2sCoiqCwfDi3eDSkq8maEyaDoYCPHHU=; b=D5zj/3lSzV20cpNDk/9rjoJU9OCCBt1zuWKF+mZy7+o4h/Gsd6EN1Tq4QZhIGsaY/nzK LyvWvjwzKqCQ3YU8RifcTLRSlIRvnduZSotMVtIyq0X+YMhQAmaPXCAlAbWk0/IwmS+V zvclBx5+V6s3jj6PlVbxDSOFst3pkGEIt8uHDhS8bkgJVfV3p+FCT/0UQqozll9mK6qR IG3wjIYDEze7uVJXWpo7HrQR4xvdowhziDyxwgIGHaxXrZh4ESMm/b3RAXBkNG5G4C7G J5q0kQKOBRlO+8u+0i/jmhAW/p19hCbC7x/LWM1aSI0rzDFPVLnkNEesDMK5imExkBdB IA==
Received: from prod-mail-ppoint4 (a96-6-114-87.deploy.static.akamaitechnologies.com [96.6.114.87] (may be forged)) by m0050096.ppops.net-00190b01. with ESMTP id 2rj1rb51qm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 31 Mar 2019 16:38:54 +0100
Received: from pps.filterd (prod-mail-ppoint4.akamai.com [127.0.0.1]) by prod-mail-ppoint4.akamai.com (8.16.0.27/8.16.0.27) with SMTP id x2VFWPjb026971; Sun, 31 Mar 2019 11:38:54 -0400
Received: from email.msg.corp.akamai.com ([172.27.27.25]) by prod-mail-ppoint4.akamai.com with ESMTP id 2rj3sv6c64-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 31 Mar 2019 11:38:54 -0400
Received: from USTX2EX-DAG1MB1.msg.corp.akamai.com (172.27.27.101) by ustx2ex-dag1mb4.msg.corp.akamai.com (172.27.27.104) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 31 Mar 2019 10:38:53 -0500
Received: from USTX2EX-DAG1MB1.msg.corp.akamai.com ([172.27.6.131]) by ustx2ex-dag1mb1.msg.corp.akamai.com ([172.27.6.131]) with mapi id 15.00.1473.003; Sun, 31 Mar 2019 10:38:53 -0500
From: "Salz, Rich" <rsalz@akamai.com>
To: Nico Williams <nico@cryptonector.com>, Benjamin Kaduk <kaduk@mit.edu>
CC: "Dr. Pala" <madwolf@openca.org>, "saag@ietf.org" <saag@ietf.org>
Thread-Topic: [saag] ASN.1 vs. DER Encoding
Thread-Index: AQHU4/B0XqgHF4NySESckptpVwRCCqYec8yAgABTYwCAAMhSAIAAXFcAgAS7QgCAAHPTgIABQjuA
Date: Sun, 31 Mar 2019 15:38:53 +0000
Message-ID: <73DF88B8-D21A-4816-A292-6F3417CC663D@akamai.com>
References: <20190326164951.GX4211@localhost> <20190326214816.GB4211@localhost> <1553679912618.8510@cs.auckland.ac.nz> <20190327151545.GG4211@localhost> <20190330153101.GT35679@kduck.mit.edu> <20190330222534.GK4211@localhost>
In-Reply-To: <20190330222534.GK4211@localhost>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.17.1.190326
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [172.19.32.128]
Content-Type: text/plain; charset="utf-8"
Content-ID: <C84510CDB49D344C92470C186B2B8E6C@akamai.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-31_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=707 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903310117
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-31_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=737 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903310117
Archived-At: <https://mailarchive.ietf.org/arch/msg/saag/ewZCSPKiy3fORbrDjp2jFir6m9c>
Subject: Re: [saag] ASN.1 vs. DER Encoding
X-BeenThere: saag@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Security Area Advisory Group <saag.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/saag>, <mailto:saag-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/saag/>
List-Post: <mailto:saag@ietf.org>
List-Help: <mailto:saag-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/saag>, <mailto:saag-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 31 Mar 2019 15:38:59 -0000

  
>    which is basically saying it's not a formal syntax.

I tried to do that some time ago, and found a bunch of errors or ambiguities in the spec.  Yacc-based tool, and notes, here: https://github.com/richsalz/tlsparser