]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add signed bn2bin and bin2bn functions
authorRichard Levitte <levitte@openssl.org>
Thu, 25 Nov 2021 16:55:41 +0000 (17:55 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Jan 2022 16:58:08 +0000 (17:58 +0100)
commitf5e8050fdcf2083825ef450d51bfacac21d2730e
tree0fd8e023bf28dd60713f843c03db4893a2503191
parentc30de601850f367e4c16ad91c0168a2e0dc647c0
Add signed bn2bin and bin2bn functions

This adds the functions BN_signed_bin2bn(), BN_signed_bn2bin(),
BN_signed_lebin2bn(), BN_signed_bn2lebin(), BN_signed_native2bn(),
and BN_signed_bn2native(), all essentially doing the same job as
BN_bin2bn(), BN_bn2binpad(), BN_lebin2bn(), BN_bn2lebinpad(),
BN_native2bn(), and BN_bn2nativepad(), except that the 'signed'
ones operate on signed number bins in 2's complement form.

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