[PATCH v2 2/9] lib/asn1_encoder: Add asn1_encode_integer_bytes()

Jarkko Sakkinen jarkko at kernel.org
Wed Nov 25 15:38:55 UTC 2026


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 at kernel.org> 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



More information about the Linux-security-module-archive mailing list