Rate This Document
Findability
Accuracy
Completeness
Readability

Performing RSA Signature Operations Based on the Context

For details about how to perform RSA signature operations based on the context, see Performing RSA Signature Operations and Generating a Key Based on the Context. This section only adds the tag input parameter for invoking the callback function in the poll thread after the task is complete.

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);