0

I am using gmp to perform complex operation. I want to use Botan to perform cryptography functions. Problem is Both of them have their own Bigint function. So its creating problem on supplying bigint value used in gmp function to Botan function.

Can anyone help in this?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
ashmish2
  • 2,885
  • 8
  • 40
  • 54

1 Answers1

3

Use mpz_export to export the GMP integer and the BigInt(const byte[], size_t) constructor to import it.

Rasmus Faber
  • 48,631
  • 24
  • 141
  • 189