[botan-devel] Binary encoding of GOST private value

Rickard Bellgrim rickard at opendnssec.org
Sat Aug 16 06:49:07 EDT 2014

Is it possible that you get a buffer length shorter than 32 bytes when you
binary encode the BigInt value of the GOST private value because of the
little endian storage?

The buffer is allocated based on x.bytes().

If you always want a buffer with 32 bytes, should you pad it manually?

// Rickard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20140816/1ff96d28/attachment.html>

More information about the botan-devel mailing list