|
您好,au_rsa_*这些函数调用都注释掉,直接调用BVCSP接口BVCSP_EncryptData进行加密
- char* app_id = "app_xxxxxxxxxxxxxxxx";
- char* n = "94ab94e08d971e72a36f48841d66a151";
- char* e = "e942cfb03769cbd3";
- char data[256];
- int data_len = 0;
- char outdata[512];
- int outdata_len = sizeof(outdata);
- data_len = sizeof(data);
- memset(data, 0, sizeof(data));
- // 获取需要字符串
- BVCU_Result iret = BVCSP_GetEncryptedData(data, &data_len);
- iret = BVCSP_EncryptData(n, e, data, data_len, outdata, &outdata_len);
- strcpy(param.appInfo.appId, app_id);
- param.appInfo.ciph_data = outdata;
- param.appInfo.ciph_len = outdata_len;
copycode |
|