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
| Name | typedef Keyword | Description |
|---|---|---|
| OH_Huks_ExternalCryptoParam | OH_Huks_ExternalCryptoParam | Defines a single parameter in a parameter set. |
| OH_Huks_ExternalCryptoParamSet | OH_Huks_ExternalCryptoParamSet | Defines an external cryptographic parameter set. |
Enums
| Name | typedef Keyword | Description |
|---|---|---|
| OH_Huks_ExternalCryptoTag | OH_Huks_ExternalCryptoTag | Enumerates the tag values used in a parameter set. |
Macros
| Name | Description |
|---|---|
| OH_HUKS_EXTERNAL_CRYPTO_MAX_PROVIDER_NAME_LEN 100 | Defines the maximum length of the provider name. Since: 22 |
| OH_HUKS_EXTERNAL_CRYPTO_MAX_RESOURCE_ID_LEN 512 | Defines 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
| Value | Description |
|---|---|
| OH_HUKS_EXT_CRYPTO_TAG_UKEY_PIN = OH_HUKS_TAG_TYPE_BYTES |200001 | PIN code. |
| OH_HUKS_EXT_CRYPTO_TAG_ABILITY_NAME = OH_HUKS_TAG_TYPE_BYTES |200002 | Ability name. |
| OH_HUKS_EXT_CRYPTO_TAG_EXTRA_DATA = OH_HUKS_TAG_TYPE_BYTES |200003 | Extra data. |
| OH_HUKS_EXT_CRYPTO_TAG_UID = OH_HUKS_TAG_TYPE_INT |200004 | UID of the caller. |
| OH_HUKS_EXT_CRYPTO_TAG_PURPOSE = OH_HUKS_TAG_TYPE_INT |200005 | Purpose of the certificate chain. |
| OH_HUKS_EXT_CRYPTO_TAG_TIMEOUT = OH_HUKS_TAG_TYPE_UINT |200006 | Timeout interval for obtaining properties, in seconds. |
OH_Huks_ExternalPinAuthState
enum OH_Huks_ExternalPinAuthState
Description
Enumerates the Ukey PIN authentication states.
Since: 22
| Value | Description |
|---|---|
| OH_HUKS_EXT_CRYPTO_PIN_NO_AUTH = 0 | PIN code not authenticated. |
| OH_HUKS_EXT_CRYPTO_PIN_AUTH_SUCCEEDED = 1 | PIN code authentication succeeded. |
| OH_HUKS_EXT_CRYPTO_PIN_LOCKED = 2 | PIN 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