help-libtasn1
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtasn1 relaxig asn1_der_decoding() size test


From: Nikos Mavrogiannopoulos
Subject: Re: libtasn1 relaxig asn1_der_decoding() size test
Date: Fri, 20 Jun 2014 09:44:25 +0200

On Thu, Jun 19, 2014 at 5:04 PM, Karel Slany <address@hidden> wrote:
> Hello,
> I've run into a problem with asn1_der_decoding() recently. I have to
> decode some DER data which I'm obtaining from a third party source. The
> problem is that most of the time the obtained DER data contain some
> additional trailing bytes.
[...]
> A solution to my this problem may be:
> * relaxing the test at the end of the function (example in the supplied
> patch)
> * introducing a new function witch such properties (this function could
> also give a hint about the real DER size)
> My personal favourite is the second choice. Please let me know whether
> you are willing to accept any of these changes/enhancements. If so, I
> could send you a patch with the changes.

Yes. Introducing an asn1_der_decoding which can accept flags and can
return the actual size of the DER data (e.g., by providing the size as
a pointer to integer) would also be my preferred option.

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]