harmony 鸿蒙crypto_common.h

  • 2025-06-12
  • 浏览 (5)

crypto_common.h

Overview

Provides common APIs for cryptographic operations.

Library: libohcrypto.so

System capability: SystemCapability.Security.CryptoFramework

Since: 12

Related module: CryptoCommonApi

Summary

Structs

Name Description
struct Crypto_DataBlob Defines the data used for encryption and decryption.

Types

Name Description
typedef struct Crypto_DataBlob Crypto_DataBlob Defines a struct for the data used for encryption and decryption.

Enums

Name Description
OH_Crypto_ErrCode {
CRYPTO_SUCCESS = 0, CRYPTO_INVALID_PARAMS = 401,
CRYPTO_NOT_SUPPORT = 801, CRYPTO_MEMORY_ERROR = 17620001,
CRYPTO_OPERTION_ERROR = 17630001
}
Enumerates the encryption and decryption error codes.
Crypto_CipherMode {
CRYPTO_ENCRYPT_MODE = 0,
CRYPTO_DECRYPT_MODE = 1
}
Enumerates the cryptographic operation types.

Functions

Name Description
void OH_Crypto_FreeDataBlob (Crypto_DataBlob *dataBlob) Releases a dataBlob 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_digest.h

0  赞