Encode a BigInt to a ubyte array according to IEEE 1363
the BigInt to encode
the length of the resulting SecureVector!ubyte
a SecureVector!ubyte containing the encoded BigInt
See Implementation
Encode a BigInt to a ubyte array according to IEEE 1363