len
is the length of the buffer pointed to by p
. The function pads out the converted bignum to len
bytes (with zeroes, which doesn't change the mathematical value of the number represented).
That function appears to have a bug, by the way - I strongly suspect that the memset()
call should be memset(p, 0, pad);
.