crypto_digest.h
概述
定义摘要算法API。
库: libohcrypto.so
系统能力: SystemCapability.Security.CryptoFramework
起始版本: 12
相关模块:CryptoDigestApi
汇总
类型定义
| 名称 | 描述 |
|---|---|
| typedef struct OH_CryptoDigest OH_CryptoDigest | 定义摘要结构体。 |
函数
| 名称 | 描述 |
|---|---|
| OH_Crypto_ErrCode OH_CryptoDigest_Create (const char *algoName, OH_CryptoDigest **ctx) | 根据给定的算法名称创建一个摘要实例。 |
| OH_Crypto_ErrCode OH_CryptoDigest_Update (OH_CryptoDigest *ctx, Crypto_DataBlob *in) | 传入消息进行摘要更新计算。 |
| OH_Crypto_ErrCode OH_CryptoDigest_Final (OH_CryptoDigest *ctx, Crypto_DataBlob *out) | 计算最终摘要。 |
| uint32_t OH_CryptoDigest_GetLength (OH_CryptoDigest *ctx) | 获取摘要长度。 |
| const char * OH_CryptoDigest_GetAlgoName (OH_CryptoDigest *ctx) | 获取摘要算法。 |
| void OH_DigestCrypto_Destroy (OH_CryptoDigest *ctx) | 销毁摘要实例。 |