【发布时间】:2018-04-26 04:22:03
【问题描述】:
我希望为 openssl 创建一个简单的通用函数模板 bignum 库。我希望它包含所有的 biolerplate 和其他已经存在的东西,它应该遵循与其他 bignum 函数相同的模式。它应该类似于:
#include <openssl/bn.h>
int Big_Func(BIGNUM* RESULT, BIGNUM *X, BIGNUM *Y){
//biolerplate bignum stuff
//your code goes here
// more biolerplate
}
我要留下一个我根据 bn_gcd 找到的答案,但这似乎有点矫枉过正。
【问题讨论】:
标签: c openssl cryptography bignum