Revamp get_bn_from_mpint()
Revamp get_bn_from_mpint()

* Add bounds checking.
* Add error checking for OpenSSL calls.
* Only set argument *bnp on success.

lrascao/otp,electricimp/otp,g-andrade/otp,electricimp/otp,legoscia/otp,dumbbell/otp,bsmr-erlang/otp,jj1bdx/otp,aboroska/otp,erlang/otp,mikpe/otp,kvakvs/otp,aboroska/otp,uabboli/otp,RoadRunnr/otp,emacsmirror/erlang,vinoski/otp,vladdu/otp,rlipscombe/otp,g-andrade/otp,lrascao/otp,g-andrade/otp,isvilen/otp,RoadRunnr/otp,bjorng/otp,dgud/otp,getong/otp,electricimp/otp,vinoski/otp,kvakvs/otp,jj1bdx/otp,g-andrade/otp,lrascao/otp,erlang/otp,ferd/otp,kvakvs/otp,dgud/otp,potatosalad/otp,mikpe/otp,rlipscombe/otp,ferd/otp,bsmr-erlang/otp,dumbbell/otp,bsmr-erlang/otp,g-andrade/otp,vinoski/otp,lrascao/otp,rlipscombe/otp,mikpe/otp,vladdu/otp,isvilen/otp,dgud/otp,legoscia/otp,lrascao/otp,RoadRunnr/otp,electricimp/otp,electricimp/otp,vinoski/otp,isvilen/otp,getong/otp,ferd/otp,vinoski/otp,bsmr-erlang/otp,g-andrade/otp,uabboli/otp,vladdu/otp,legoscia/otp,isvilen/otp,vladdu/otp,legoscia/otp,RoadRunnr/otp,rlipscombe/otp,bjorng/otp,emacsmirror/erlang,dumbbell/otp,RoadRunnr/otp,uabboli/otp,bsmr-erlang/otp,uabboli/otp,rlipscombe/otp,lrascao/otp,mikpe/otp,potatosalad/otp,bsmr-erlang/otp,g-andrade/otp,mikpe/otp,lrascao/otp,bjorng/otp,legoscia/otp,lrascao/otp,mikpe/otp,electricimp/otp,erlang/otp,dgud/otp,RoadRunnr/otp,dumbbell/otp,bsmr-erlang/otp,bjorng/otp,aboroska/otp,bjorng/otp,jj1bdx/otp,jj1bdx/otp,RoadRunnr/otp,jj1bdx/otp,erlang/otp,mikpe/otp,aboroska/otp,dumbbell/otp,jj1bdx/otp,vinoski/otp,uabboli/otp,uabboli/otp,dumbbell/otp,vladdu/otp,emacsmirror/erlang,g-andrade/otp,dgud/otp,isvilen/otp,isvilen/otp,dgud/otp,aboroska/otp,bjorng/otp,mikpe/otp,emacsmirror/erlang,erlang/otp,vinoski/otp,uabboli/otp,legoscia/otp,electricimp/otp,emacsmirror/erlang,mikpe/otp,RoadRunnr/otp,erlang/otp,vladdu/otp,kvakvs/otp,vladdu/otp,ferd/otp,dumbbell/otp,kvakvs/otp,emacsmirror/erlang,kvakvs/otp,bjorng/otp,lrascao/otp,getong/otp,erlang/otp,dgud/otp,vinoski/otp,erlang/otp,emacsmirror/erlang,vinoski/otp,kvakvs/otp,potatosalad/otp,potatosalad/otp,bsmr-erlang/otp,isvilen/otp,jj1bdx/otp,ferd/otp,rlipscombe/otp,ferd/otp,emacsmirror/erlang,bjorng/otp,jj1bdx/otp,g-andrade/otp,aboroska/otp,isvilen/otp,uabboli/otp,ferd/otp,dgud/otp,g-andrade/otp,electricimp/otp,aboroska/otp,potatosalad/otp,dumbbell/otp,emacsmirror/erlang,bjorng/otp,erlang/otp,kvakvs/otp,potatosalad/otp,potatosalad/otp,dgud/otp,RoadRunnr/otp,rlipscombe/otp,vinoski/otp,legoscia/otp,rlipscombe/otp,emacsmirror/erlang,dumbbell/otp,erlang/otp,dumbbell/otp,aboroska/otp,legoscia/otp,vladdu/otp,isvilen/otp,potatosalad/otp,aboroska/otp,jj1bdx/otp,uabboli/otp,vladdu/otp,getong/otp,getong/otp,rlipscombe/otp,getong/otp,getong/otp,electricimp/otp,bsmr-erlang/otp,jj1bdx/otp,kvakvs/otp,rlipscombe/otp,getong/otp,getong/otp,potatosalad/otp,legoscia/otp,getong/otp,bjorng/otp,dgud/otp,mikpe/otp,potatosalad/otp,ferd/otp,isvilen/otp,ferd/otp