Decode an MPI-format integer (4-byte length prefix plus big-endian content).
Declared in <openssl/bn.h>
BIGNUM*
BN_mpi2bn(
unsigned char const* s,
int len,
BIGNUM* ret);
Result BIGNUM, or NULL on error.
| Name | Description |
|---|---|
| s | MPI-encoded input buffer. |
| len | Number of bytes at s. |
| ret | Destination BIGNUM to reuse, or NULL to allocate a new one. |