资源简介
rsa加密算法 网上找了半天都没有知道到 下载要50积分的有点过分了 有问题欢迎私信讨论 非对称加密问题
代码片段和文件信息
#include
#include
// #include “EmvRsa.h“
#include “Rsa.h“
typedef unsigned int NN_DIGIT;
typedef unsigned short NN_HALF_DIGIT;
#if 0
void dmult(unsigned int a unsigned int b unsigned int *cHigh unsigned int *cLow)
{
unsigned __int64 Temp;
unsigned __int64 a64 = a;
unsigned __int64 b64 = b;
//printf(“RSA MODE IS Win32\r\n“);
Temp = a64 * b64;
*cHigh = (unsigned int)(Temp >> 32);
*cLow = (unsigned int)(Temp);
}
#endif
#if 1
void dmult (unsigned int a unsigned int b unsigned int *cHigh unsigned int *cLow)
{
unsigned long long sum = (unsigned long long)a * (unsigned long long)b;
*cHigh = (unsigned int)(sum >> 32);
*cLow = (unsigned int)(sum);
}
#endif
static NN_DIGIT subdigitmult (
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 16134 2019-12-17 15:07 rsa\Rsa.c
文件 3277 2019-07-05 15:48 rsa\Rsa.h
文件 7571 2019-12-17 15:06 rsa\RsaApi.c
文件 393 2019-07-05 15:48 rsa\RsaApi.h
文件 10368 2019-12-17 15:00 rsa\rsa_test.c
目录 0 2019-12-17 15:07 rsa
----------- --------- ---------- ----- ----
37743 6
评论
共有 条评论