【问题标题】:BigInt conversion (gmp Bigint to botan bigint)BigInt 转换(gmp Bigint 到 botan bigint)
【发布时间】:2011-01-11 06:10:59
【问题描述】:

我正在使用 gmp 执行复杂的操作。我想用 Botan 来执行密码学功能。问题是它们都有自己的 Bigint 函数。因此,将 gmp 函数中使用的 bigint 值提供给 Botan 函数会产生问题。

有人可以帮忙吗?

【问题讨论】:

  • 无法将参数从 Bigint 转换为 Botan::BigInt

标签: c++ cryptography gmp bigint botan


【解决方案1】:

使用mpz_export 导出GMP 整数并使用BigInt(const byte[], size_t) 构造函数导入它。

【讨论】:

    猜你喜欢
    • 2021-05-08
    • 2021-06-23
    • 1970-01-01
    • 2021-05-22
    • 1970-01-01
    • 2019-06-26
    • 1970-01-01
    • 2012-04-11
    • 2012-07-20
    相关资源
    最近更新 更多