鲲鹏社区首页
中文
注册
开发者
我要评分
获取效率
正确性
完整性
易理解
在线提单
论坛求助

基于Context进行RSA签名操作

基于Context进行RSA签名操作,参照基于Context进行RSA签名与密钥生成操作,仅添加tag参数,该参数用于任务完成后poll线程中回调函数的调用。

struct rsa_async_tag {
void *ctx;
void *pool;
int thread_id;
int cnt;
} *tag;
int i = 0;
tag = malloc(sizeof(*tag));
tag->ctx = ctx;
tag->thread_id = thread_id;
tag->cnt = i;
tag->pool = pool;
wcrypto_do_rsa(ctx, &opdata, tag);