New BN functions.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 1 Feb 2016 00:02:05 +0000 (00:02 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 2 Feb 2016 17:17:38 +0000 (17:17 +0000)
commit85a4807f94580b9b666b3e24fff5752515470b1c
treee2e4f5242dcfe694575a1b003badc5b56e14f71e
parent19f7130beb97170b8e825aee1ae9e309520f5f29
New BN functions.

Add new function BN_bn2binpad() which checks the length of the output
buffer and pads the result with zeroes if necessary.

New functions BN_bn2lebinpad() and BN_lebin2bn() which use little endian
format.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/bn/bn_lib.c
crypto/pem/pvkfmt.c
doc/crypto/BN_bn2bin.pod
include/openssl/bn.h