---
title: 杂凑运算类
description: "本章节主要描述了杂凑运算类接口定义与规格限制。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcctrustzone/cca/devg/Kunpeng_ommercialcryptography_16_0030.html
sourcePath: /source/zh/kunpengcctrustzone/cca/devg/Kunpeng_ommercialcryptography_16_0030.html
indexId: 0817687ac60e22da193e4cd9a0f827218034cebb9ea6b1b85ea8cd1729dd301b81
---
# 杂凑运算类

本章节主要描述了杂凑运算类接口定义与规格限制。

杂凑运算类接口支持如下：接口定义符合GM/T 0018-2023标准，接口参数与返回值可参考标准文档，算法标识描述可参考GM/T 0006-2012。

```
int SDF_HashInit(void *hSessionHandle, unsigned int uiAlgID, ECCrefPublicKey *pucPublicKey, unsigned char *pucID, unsigned int uiIDLength);
int SDF_HashUpdate(void *hSessionHandle, unsigned char *pucData, unsigned int uiDataLength);
int SDF_HashFinal(void *hSessionHandle, unsigned char *pucHash, unsigned int *puiHashLength);
```

#### 规格限制

- 杂凑运算类算法标识当前仅支持SGD_SM3。
- 签名ID长度不大于8K。
- Hash结果缓冲区长度不小于32字节。
