C++ implementation of java.math.BigInteger api for key encryption purposes