[#BN_bn2lebinpad] = BN_bn2lebinpad :mrdocs: Encode a BIGNUM as fixed‐length little‐endian unsigned bytes with zero padding. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_bn2lebinpad( xref:BIGNUM.adoc[BIGNUM] const* a, unsigned char* to, int tolen); ---- == Return Value `tolen` on success, or ‐1 if `tolen` is too small or on error. == Parameters [cols="1,4"] |=== | Name| Description | *a* | Value to encode (absolute value; sign is ignored). | *to* | Destination buffer of `tolen` bytes. | *tolen* | Required output length; must be large enough for `a.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#