openharmony 鸿蒙 capi-native-huks-external-crypto-type-h

2026-08-25 浏览 (1)

native_huks_external_crypto_type.h

Overview

Defines the structs and enums for external key management extensions.

File to include: <huks/native_huks_external_crypto_type.h>

Library: libhuks_external_crypto.z.so

System capability: SystemCapability.Security.Huks.CryptoExtension

Since: 22

Related module: HuksExternalCryptoTypeApi

Summary

Structs

Nametypedef KeywordDescription
OH_Huks_ExternalCryptoParamOH_Huks_ExternalCryptoParamDefines a single parameter in a parameter set.
OH_Huks_ExternalCryptoParamSetOH_Huks_ExternalCryptoParamSetDefines an external cryptographic parameter set.

Enums

Nametypedef KeywordDescription
OH_Huks_ExternalCryptoTagOH_Huks_ExternalCryptoTagEnumerates the tag values used in a parameter set.

Macros

NameDescription
OH_HUKS_EXTERNAL_CRYPTO_MAX_PROVIDER_NAME_LEN 100Defines the maximum length of the provider name.
Since: 22
OH_HUKS_EXTERNAL_CRYPTO_MAX_RESOURCE_ID_LEN 512Defines the maximum length of the resource ID.
Since: 22

Enum Description

OH_Huks_ExternalCryptoTag

enum OH_Huks_ExternalCryptoTag

Description

Enumerates the tag values used in a parameter set.

Since: 22

ValueDescription
OH_HUKS_EXT_CRYPTO_TAG_UKEY_PIN = OH_HUKS_TAG_TYPE_BYTES |200001PIN code.
OH_HUKS_EXT_CRYPTO_TAG_ABILITY_NAME = OH_HUKS_TAG_TYPE_BYTES |200002Ability name.
OH_HUKS_EXT_CRYPTO_TAG_EXTRA_DATA = OH_HUKS_TAG_TYPE_BYTES |200003Extra data.
OH_HUKS_EXT_CRYPTO_TAG_UID = OH_HUKS_TAG_TYPE_INT |200004UID of the caller.
OH_HUKS_EXT_CRYPTO_TAG_PURPOSE = OH_HUKS_TAG_TYPE_INT |200005Purpose of the certificate chain.
OH_HUKS_EXT_CRYPTO_TAG_TIMEOUT = OH_HUKS_TAG_TYPE_UINT |200006Timeout interval for obtaining properties, in seconds.

OH_Huks_ExternalPinAuthState

enum OH_Huks_ExternalPinAuthState

Description

Enumerates the Ukey PIN authentication states.

Since: 22

ValueDescription
OH_HUKS_EXT_CRYPTO_PIN_NO_AUTH = 0PIN code not authenticated.
OH_HUKS_EXT_CRYPTO_PIN_AUTH_SUCCEEDED = 1PIN code authentication succeeded.
OH_HUKS_EXT_CRYPTO_PIN_LOCKED = 2PIN code locked.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-huksExternalCrypto-sys

openharmony 鸿蒙 capi-hukstypeapi-oh-huks-keymaterialrsa

openharmony 鸿蒙 capi-hukstypeapi-oh-huks-result

openharmony 鸿蒙 capi-native-huks-type-h

openharmony 鸿蒙 js-apis-CryptoExtensionAbility

openharmony 鸿蒙 capi-hukstypeapi-oh-huks-pubkeyinfo

openharmony 鸿蒙 capi-hukstypeapi-oh-huks-certchain

openharmony 鸿蒙 js-apis-huksExternalCrypto

openharmony 鸿蒙 capi-hukstypeapi-oh-huks-keymaterialdsa

openharmony 鸿蒙 capi-hukstypeapi

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