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

Carl Wallace <carl@redhoundsoftware.com> Tue, 26 March 2019 20:09 UTC

Return-Path: <carl@redhoundsoftware.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 55490120A69 for <saag@ietfa.amsl.com>; Tue, 26 Mar 2019 13:09:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhoundsoftware.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 RASZYa4nPkw0 for <saag@ietfa.amsl.com>; Tue, 26 Mar 2019 13:09:08 -0700 (PDT)
Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 7ECB61209A0 for <saag@ietf.org>; Tue, 26 Mar 2019 13:09:08 -0700 (PDT)
Received: by mail-qt1-x830.google.com with SMTP id d13so11510187qth.5 for <saag@ietf.org>; Tue, 26 Mar 2019 13:09:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhoundsoftware.com; s=google; h=user-agent:date:subject:from:to:message-id:thread-topic:references :in-reply-to:mime-version:content-transfer-encoding; bh=+oIxbj1wY5RZK6NACd1NkOAMAj3WEXjtfC1hS1PXiwI=; b=xb4J5XfaHjdG9C1nR+fdVlqSFyaaadWOW31lXyULAqlttMriGuQvTDrDuU9a/FMnkE ZGsPyHs3cRlX5t7jrzD+XGD+B1pXIb5NLQ4JBIUW0M+1qDABbDlZdWPYUTW2qVfCC5h+ YSUwfncx+2MeY5BEpDvbuMjxEy/A8DgoiqRJ8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:references:in-reply-to:mime-version :content-transfer-encoding; bh=+oIxbj1wY5RZK6NACd1NkOAMAj3WEXjtfC1hS1PXiwI=; b=NLvZmHmui4TtdWZYpNyElJEya/VnjUWMOpNXVoZzp/4EbN4qxYUWN7X+rDCHK/L279 LA+1QAqGO4lp0M89mKkN8UVjPBmecgWm/m8fEvZmyrilnPiQPgzFHUaW03WuWDdfvcMa HOJG/WSECXGe5UrPPmepANbPe8mNb8zk/PNo248KVH5K2XbOqKLtDkNCmh0jFSAc34qr mG7hRN00yn7c5+y41uBAlN49S9Cj9B9XrDbhikhqLQfEYkKEZALq8vSojE5px3u8Dd3A SNyW6uyP8urFesNFBEvUvnybb3TYyqYHEs1BcVfWP0EP0T7HauJSRTroGmuYxFa/If0Q mdxw==
X-Gm-Message-State: APjAAAUNNLTex0Cxme+D4Z+BsOw0hm4xdJdnr3pvLMKckSUs4QJdksN+ kzk2Kb97+YGBRRt8HC+03h53uhgFVaQ=
X-Google-Smtp-Source: APXvYqwJSz1tVJ4zB91Pc9wcWKP773zG3w9PpGLWRINNXmbx7dJy+BKoXLlrj2PVALbR3d70g1mtCg==
X-Received: by 2002:a0c:b3c4:: with SMTP id b4mr3886731qvf.176.1553630947140; Tue, 26 Mar 2019 13:09:07 -0700 (PDT)
Received: from [192.168.2.27] (pool-108-28-114-43.washdc.fios.verizon.net. [108.28.114.43]) by smtp.googlemail.com with ESMTPSA id d34sm14590019qta.18.2019.03.26.13.09.03 for <saag@ietf.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 26 Mar 2019 13:09:06 -0700 (PDT)
User-Agent: Microsoft-MacOutlook/14.7.6.170621
Date: Tue, 26 Mar 2019 16:08:58 -0400
From: Carl Wallace <carl@redhoundsoftware.com>
To: saag@ietf.org
Message-ID: <D8BFFE5D.D8084%carl@redhoundsoftware.com>
Thread-Topic: [saag] ASN.1 vs. DER Encoding
References: <21dec229-5b5c-8d52-6817-edac2e39ceec@openca.org> <20198.1553629138@dooku.sandelman.ca> <20190326200103.GR3822@straasha.imrryr.org>
In-Reply-To: <20190326200103.GR3822@straasha.imrryr.org>
Mime-version: 1.0
Content-type: text/plain; charset="UTF-8"
Content-transfer-encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/saag/M6HBTVWhfKr6AogUdgaJ3zw_XFc>
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: Tue, 26 Mar 2019 20:09:11 -0000

>
>
>
>> This is why we hate DER, and we like CDDL/CBOR.
>
>Whatever the abstract syntax, the real solution is probably more
>widely available/used compilers.  Hand-rolled codecs will have more
>(frequent and subtle) bugs.

Fully agree with this. The first time I had to consume CBOR/COSE the
encoded structures were every bit as buggy as folks complain about DER/CMS
structures. 
>
>-- 
>	Viktor.
>
>_______________________________________________
>saag mailing list
>saag@ietf.org
>https://www.ietf.org/mailman/listinfo/saag