---
title: 基于Context进行消息摘要操作
description: "参照基于Context进行Digest摘要操作，仅添加tag参数，用于任务完成后，poll线程中回调函数调用的入参。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/251RC1/accel/kunpengaccel_17_0092.html
sourcePath: /source/zh/kunpengboostkithistory/251RC1/accel/kunpengaccel_17_0092.html
indexId: 74433af0f83b2765aaa7bf4d5f6f302ae1996ef0adf0e69b3698593399a5031572
---
# 基于Context进行消息摘要操作

参照基于Context进行Digest摘要操作，仅添加tag参数，用于任务完成后，poll线程中回调函数调用的入参。

```
struct digest_async_tag {
 void *ctx;
void *pool;
int thread_id;
int cnt;
} *tag;
tag = malloc(sizeof(*tag));
tag->ctx = ctx;
tag->thread_id = thread_id;
tag->cnt = 0;
tag->pool = pool;
wcrypto_do_digest(ctx, &opdata, tag);
```
