我正在使用 gmp 执行复杂的操作。我想使用 Botan 来执行加密功能。问题是他们都有自己的 Bigint 函数。因此,在将 gmp 函数中使用的 bigint 值提供给 Botan 函数时会产生问题。
有人可以帮忙吗?
最佳答案
使用mpz_export
导出 GMP 整数和 BigInt(const byte[], size_t)
构造函数来导入它。
关于c++ - BigInt 转换(gmp Bigint 到 botan bigint),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4654731/