[gnutls-devel] [PATCH] asn1random.pl: generate simple tags only

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Mar 4 10:51:07 CET 2015

On Wed, Mar 4, 2015 at 9:44 AM, Matvejchikov Ilya
<matvejchikov at gmail.com> wrote:
>> I think the idea of these scripts is to test incorrectly encoded tags
>> as well, so if you strive to correctly encode them, you may defeat its
>> purpose. It would make sense however, to have them generate reasonable
>> structures that don't get rejected immediately. However, I'm not sure
>> I understood which problem you notice there, and what you're try to
>> solve.
> Not sure as x509random.pl has the explicit option that allows to
> inject encoding errors. But asn1random.pl doesn't. So, in my opinion
> asn1random.pl intended to generate valid ASN/DER blobs with correct
> structure. But tags >= 31 encoded incorrectly (according to X.690-0207
> -- and parsers (dumpasn1, openssl/asn1parse) fails with
> theese samples.

Patch applied.


More information about the Gnutls-devel mailing list