Skip to content
Commit 966cb2ed authored by Rob Shearman's avatar Rob Shearman
Browse files

Add BigNumRef::to_vec_padded

Wire protocols sometimes define a fixed size for fields that may be
derived from a BigNum, so it is useful to be able to obtain a Vec<u8>
that has been padded accordingly.

So add a BN_bn2binpad -sys function and a to_vec_padded wrapper around
this for BigNumRef.
parent bf20ebeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment