[Cryptography] Is ASN.1 still the thing?

Jonathan Thornburg jthorn4242 at gmail.com
Mon Nov 13 00:15:59 EST 2017


On Mon, Nov 13, 2017 at 01:11:39PM +1000, James A. Donald wrote:
> Do JSON, Yaml, or protobuff allow representing data format in ways that give
> a unique and well defined checksum, that will not be affected by endianess
> or compiler options?

No for YAML.

Causes of non-uniqueness for YAML include
* Booleans have multiple representations (http://yaml.org/type/bool.html
* floating-point values can have extra trailing zeros, and/or could be
  non-normalized (e.g., 1.23e6 and 12.3e5 are two distinct string
  representations of the same floating-point number)
* arrays/lists have two different allowed representations in YAML


More information about the cryptography mailing list