[noise] Proposal: certificate and private key format

Tony Arcieri bascule at gmail.com
Mon May 2 13:50:29 PDT 2016


On Mon, May 2, 2016 at 12:39 PM, Rhys Weatherley <rhys.weatherley at gmail.com>
wrote:

> Protobufs should be slightly more compact than ASN.1 DER.  ASN.1 DER uses
> (tag, size, value) for fields whereas protobufs can get away with (tag,
> value) for integer fields.  Arrays are also quite compact for integer
> types.  String and compound fields are about the same length.  The main
> length gains for certificates are in naming: X.509 DN's are quite verbose
> compared with "foo at domain".
>
> The first signed certificate example on my site produces 388 bytes of
> output as a protobuf.  Without the signature (i.e. a self-issued
> certificate), it is 164 bytes.
>

Take a look at ASN.1 OER. It has many echoes of Protobufs, similar
compactness, and a substantially simpler implementation than e.g. BER:

http://www.oss.com/asn1/resources/books-whitepapers-pubs/Overview%20of%20OER.pdf

-- 
Tony Arcieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://moderncrypto.org/mail-archive/noise/attachments/20160502/eadef234/attachment.html>


More information about the Noise mailing list