[#BN_bn2nativepad] = BN_bn2nativepad :mrdocs: Encode a BIGNUM as a fixed‐length native‐endian unsigned byte string. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_bn2nativepad( xref:BIGNUM.adoc[BIGNUM] const* a, unsigned char* to, int tolen); ---- == Return Value `tolen` on success, or ‐1 if `a` does not fit in `tolen` bytes. == Parameters [cols="1,4"] |=== | Name| Description | *a* | Value to encode (absolute value; sign is ignored). | *to* | Destination buffer of `tolen` bytes; leading zeros are written as needed. | *tolen* | Exact output length in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#