[147396] in cryptography@c2.net mail archive

home help back first fref pref prev next nref lref last post

Re: [Cryptography] encoding formats should not be committee'ized

daemon@ATHENA.MIT.EDU (Jerry Leichter)
Tue Oct 1 12:03:34 2013

X-Original-To: cryptography@metzdowd.com
From: Jerry Leichter <leichter@lrw.com>
In-Reply-To: <524A12E7.7060708@echeque.com>
Date: Mon, 30 Sep 2013 23:50:10 -0400
To: jamesd@echeque.com
Cc: cryptography@metzdowd.com
Errors-To: cryptography-bounces+crypto.discuss=bloom-picayune.mit.edu@metzdowd.com

On Sep 30, 2013, at 8:10 PM, James A. Donald wrote:
> We have a complie to generate C code from ASN.1 code
> 
> Google has a compiler to generate C code from protobufs source
> 
> The ASN.1 compiler is open source.  Google's compiler is not.
http://code.google.com/p/protobuf/source/checkout.  BSD 3-clause license.

> Further, google is unhappy that too-clever-code gives too-clever programmers too much power, and has prohibited its employees from ever doing something like protobufs again.
I have no idea what this means.  I can tell you with certainty that all kinds of clever code is being developed and deployed within Google (though I can't give you any details, of course).  Some of it may eventually get described in the open literature; some of it may be open-sourced.

Personally, I have no deep objections to ASN.1 - though much of its complexity has been proved unnecessary by the usage of other, much simpler, approaches, like protobufs.  Still, once you have compiler for it, it doesn't really matter all that much either way.  For crypto algorithms, you're unlikely to want or need the more obscure corners.

Do keep in mind, however, that having just a way to generate C from ASN.1 no longer covers much of the necessary space, as there are now many popular languages that are no C-like.  Some are easy to bind to C libraries (e.g., Python); others are much more difficult (e.g., Java).  For ease of use, you really want generators that produce code well integrated into the target language, no some barely functional glued-together thing.

                                                        -- Jerry

_______________________________________________
The cryptography mailing list
cryptography@metzdowd.com
http://www.metzdowd.com/mailman/listinfo/cryptography

home help back first fref pref prev next nref lref last post