[#BN_signed_bn2bin] = BN_signed_bn2bin :mrdocs: Encode a signed BIGNUM as big‐endian two's‐complement of fixed width. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_signed_bn2bin( 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 (may be negative). | *to* | Destination buffer of `tolen` bytes. | *tolen* | Fixed output width in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#