Add BN_native2bn and BN_bn2nativepad, for native BIGNUM import/export
authorRichard Levitte <levitte@openssl.org>
Tue, 26 Feb 2019 12:08:31 +0000 (13:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 26 Feb 2019 21:44:48 +0000 (22:44 +0100)
commitfa4d419c25c07b49789df96b32c4a1a85a984fa1
tree5a45dcc13dc9b3aad538f7a809a31631dbd69282
parent1a31d8017ee7e8df0eca76fee601b826699c9ac1
Add BN_native2bn and BN_bn2nativepad, for native BIGNUM import/export

These are a couple of utility functions, to make import and export of
BIGNUMs to byte strings in platform native for (little-endian or
big-endian) easier.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8346)
crypto/bn/bn_lib.c
doc/man3/BN_bn2bin.pod
include/openssl/bn.h
util/libcrypto.num