harmony 鸿蒙crypto_digest.h

2025-06-12 浏览 (1)

crypto_digest.h

Overview

Provides APIs for message digest (MD) algorithms.

Library: libohcrypto.so

System capability: SystemCapability.Security.CryptoFramework

Since: 12

Related module: CryptoDigestApi

Summary

Types

NameDescription
typedef struct OH_CryptoDigest OH_CryptoDigestDefines an MD.

Functions

NameDescription
OH_Crypto_ErrCode OH_CryptoDigest_Create (const char *algoName, OH_CryptoDigest **ctx)Creates an MD instance based on the given algorithm name.
OH_Crypto_ErrCode OH_CryptoDigest_Update (OH_CryptoDigest *ctx, Crypto_DataBlob *in)Updates the data used for generating an MD.
OH_Crypto_ErrCode OH_CryptoDigest_Final (OH_CryptoDigest *ctx, Crypto_DataBlob *out)Generates an MD.
uint32_t OH_CryptoDigest_GetLength (OH_CryptoDigest *ctx)Obtains the length of an MD.
const char * OH_CryptoDigest_GetAlgoName (OH_CryptoDigest *ctx)Obtains the digest algorithm.
void OH_DigestCrypto_Destroy (OH_CryptoDigest *ctx)Destroys an MD instance.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Crypto Architecture Kit (Crypto Architecture Service)

harmony 鸿蒙Crypto_DataBlob

harmony 鸿蒙CryptoAsymKeyApi

harmony 鸿蒙CryptoCommonApi

harmony 鸿蒙CryptoDigestApi

harmony 鸿蒙CryptoSignatureApi

harmony 鸿蒙CryptoSymCipherApi

harmony 鸿蒙CryptoSymKeyApi

harmony 鸿蒙crypto_asym_key.h

harmony 鸿蒙crypto_common.h

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/fm91yg