In Java, there is a BigInteger class to using large numbers, and it has a converter function: toByteInteger like this:
private static final BigInteger N = new BigInteger(HEX_N, 16);
...
byte[] digest = messageDigest.digest(N.toByteArray());
In C++, I tried Boost.Multiprecision to use large number type with mpz_int, but it has not any function which convert to mpz_int to byte array.
Is there any equivalent BigInteger type in C++? I'm working with qt framework, is there any big integer structure on qt? And is it possible to convert it to byte array?