Re: [PATCH v2 2/9] lib/asn1_encoder: Add asn1_encode_integer_bytes()
From: Jarkko Sakkinen
Date: Wed Nov 25 2026 - 10:40:39 EST
On Wed, Nov 25, 2026 at 09:19:21AM +0000, David Laight wrote:
> On Tue, 24 Nov 2026 21:40:36 +0200
> Jarkko Sakkinen <jarkko@xxxxxxxxxx> wrote:
>
> > Add a helper encoding a positive integer from a byte array in big-endian
> > format.
>
> Interesting...
> You allow for integer values longer than 127 bytes but don't allow for the
> much more common likelyhood of the encoding being 'implicit'.
This is the first thing I wrote in 2024 and have not touched since
without further feedback :-)
>
> David
Br, Jarkko