harmony(鸿蒙)安全子系统JS API变更

2022-08-09 浏览 (720)

安全子系统JS API变更

OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,安全子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.security.huksHuksTagHUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES |20003新增
ohos.security.huksHuksTagHUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES |20002新增
ohos.security.huksHuksTagHUKS_TAG_SYMMETRIC_KEY_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES |20001新增
ohos.security.huksHuksTagHUKS_TAG_OS_PATCHLEVEL = HuksTagType.HUKS_TAG_TYPE_UINT |10102新增
ohos.security.huksHuksTagHUKS_TAG_OS_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT |10101新增
ohos.security.huksHuksTagHUKS_TAG_IS_KEY_HANDLE = HuksTagType.HUKS_TAG_TYPE_ULONG |10010新增
ohos.security.huksHuksTagHUKS_TAG_AE_TAG = HuksTagType.HUKS_TAG_TYPE_BYTES |10009新增
ohos.security.huksHuksTagHUKS_TAG_PAYLOAD_LEN = HuksTagType.HUKS_TAG_TYPE_UINT |10008新增
ohos.security.huksHuksTagHUKS_TAG_KEY_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT |10007新增
ohos.security.huksHuksTagHUKS_TAG_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES |10006新增
ohos.security.huksHuksTagHUKS_TAG_CRYPTO_CTX = HuksTagType.HUKS_TAG_TYPE_ULONG |10005新增
ohos.security.huksHuksTagHUKS_TAG_USES_TIME = HuksTagType.HUKS_TAG_TYPE_UINT |10004新增
ohos.security.huksHuksTagHUKS_TAG_ACCESS_TIME = HuksTagType.HUKS_TAG_TYPE_UINT |10003新增
ohos.security.huksHuksTagHUKS_TAG_PACKAGE_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES |10002新增
ohos.security.huksHuksTagHUKS_TAG_PROCESS_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES |10001新增
ohos.security.huksHuksTagHUKS_TAG_KEY_DOMAIN = HuksTagType.HUKS_TAG_TYPE_UINT |1011新增
ohos.security.huksHuksTagHUKS_TAG_SECURE_KEY_UUID = HuksTagType.HUKS_TAG_TYPE_BYTES |1010新增
ohos.security.huksHuksTagHUKS_TAG_SECURE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL |1009新增
ohos.security.huksHuksTagHUKS_TAG_IS_ASYNCHRONIZED = HuksTagType.HUKS_TAG_TYPE_UINT |1008新增
ohos.security.huksHuksTagHUKS_TAG_KEY_FLAG = HuksTagType.HUKS_TAG_TYPE_UINT |1007新增
ohos.security.huksHuksTagHUKS_TAG_KEY_ROLE = HuksTagType.HUKS_TAG_TYPE_UINT |1006新增
ohos.security.huksHuksTagHUKS_TAG_KEY_AUTH_ID = HuksTagType.HUKS_TAG_TYPE_BYTES |1005新增
ohos.security.huksHuksTagHUKS_TAG_KEY_WRAP_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT |1004新增
ohos.security.huksHuksTagHUKS_TAG_IS_ALLOWED_WRAP = HuksTagType.HUKS_TAG_TYPE_BOOL |1003新增
ohos.security.huksHuksTagHUKS_TAG_KEY_STORAGE_FLAG = HuksTagType.HUKS_TAG_TYPE_UINT |1002新增
ohos.security.huksHuksTagHUKS_TAG_IS_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL |1001新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_VERSION_INFO = HuksTagType.HUKS_TAG_TYPE_BYTES |515新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = HuksTagType.HUKS_TAG_TYPE_BYTES |514新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_UDID = HuksTagType.HUKS_TAG_TYPE_BYTES |513新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_SOCID = HuksTagType.HUKS_TAG_TYPE_BYTES |512新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_ALIAS = HuksTagType.HUKS_TAG_TYPE_BYTES |511新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_MODEL = HuksTagType.HUKS_TAG_TYPE_BYTES |510新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_MANUFACTURER = HuksTagType.HUKS_TAG_TYPE_BYTES |509新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_MEID = HuksTagType.HUKS_TAG_TYPE_BYTES |508新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_IMEI = HuksTagType.HUKS_TAG_TYPE_BYTES |507新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_SERIAL = HuksTagType.HUKS_TAG_TYPE_BYTES |506新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_PRODUCT = HuksTagType.HUKS_TAG_TYPE_BYTES |505新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_DEVICE = HuksTagType.HUKS_TAG_TYPE_BYTES |504新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_ID_BRAND = HuksTagType.HUKS_TAG_TYPE_BYTES |503新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_APPLICATION_ID = HuksTagType.HUKS_TAG_TYPE_BYTES |502新增
ohos.security.huksHuksTagHUKS_TAG_ATTESTATION_CHALLENGE = HuksTagType.HUKS_TAG_TYPE_BYTES |501新增
ohos.security.huksHuksTagHUKS_TAG_AUTH_TOKEN = HuksTagType.HUKS_TAG_TYPE_BYTES |306新增
ohos.security.huksHuksTagHUKS_TAG_AUTH_TIMEOUT = HuksTagType.HUKS_TAG_TYPE_UINT |305新增
ohos.security.huksHuksTagHUKS_TAG_USER_AUTH_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT |304新增
ohos.security.huksHuksTagHUKS_TAG_NO_AUTH_REQUIRED = HuksTagType.HUKS_TAG_TYPE_BOOL |303新增
ohos.security.huksHuksTagHUKS_TAG_USER_ID = HuksTagType.HUKS_TAG_TYPE_UINT |302新增
ohos.security.huksHuksTagHUKS_TAG_ALL_USERS = HuksTagType.HUKS_TAG_TYPE_BOOL |301新增
ohos.security.huksHuksTagHUKS_TAG_CREATION_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG |204新增
ohos.security.huksHuksTagHUKS_TAG_USAGE_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG |203新增
ohos.security.huksHuksTagHUKS_TAG_ORIGINATION_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG |202新增
ohos.security.huksHuksTagHUKS_TAG_ACTIVE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG |201新增
ohos.security.huksHuksTagHUKS_TAG_DERIVE_KEY_SIZE = HuksTagType.HUKS_TAG_TYPE_UINT |24新增
ohos.security.huksHuksTagHUKS_TAG_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BYTES |23新增
ohos.security.huksHuksTagHUKS_TAG_AGREE_PUBLIC_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES |22新增
ohos.security.huksHuksTagHUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BYTES |21新增
ohos.security.huksHuksTagHUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL |20新增
ohos.security.huksHuksTagHUKS_TAG_AGREE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT |19新增
ohos.security.huksHuksTagHUKS_TAG_DERIVE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT |18新增
ohos.security.huksHuksTagHUKS_TAG_DERIVE_FACTOR = HuksTagType.HUKS_TAG_TYPE_BYTES |17新增
ohos.security.huksHuksTagHUKS_TAG_DERIVE_MAIN_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES |16新增
ohos.security.huksHuksTagHUKS_TAG_KEY_GENERATE_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT |15新增
ohos.security.huksHuksTagHUKS_TAG_ITERATION = HuksTagType.HUKS_TAG_TYPE_UINT |14新增
ohos.security.huksHuksTagHUKS_TAG_PWD = HuksTagType.HUKS_TAG_TYPE_BYTES |13新增
ohos.security.huksHuksTagHUKS_TAG_SALT = HuksTagType.HUKS_TAG_TYPE_BYTES |12新增
ohos.security.huksHuksTagHUKS_TAG_INFO = HuksTagType.HUKS_TAG_TYPE_BYTES |11新增
ohos.security.huksHuksTagHUKS_TAG_IV = HuksTagType.HUKS_TAG_TYPE_BYTES |10新增
ohos.security.huksHuksTagHUKS_TAG_NONCE = HuksTagType.HUKS_TAG_TYPE_BYTES |9新增
ohos.security.huksHuksTagHUKS_TAG_ASSOCIATED_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES |8新增
ohos.security.huksHuksTagHUKS_TAG_KEY_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT |7新增
ohos.security.huksHuksTagHUKS_TAG_BLOCK_MODE = HuksTagType.HUKS_TAG_TYPE_UINT |6新增
ohos.security.huksHuksTagHUKS_TAG_PADDING = HuksTagType.HUKS_TAG_TYPE_UINT |5新增
ohos.security.huksHuksTagHUKS_TAG_DIGEST = HuksTagType.HUKS_TAG_TYPE_UINT |4新增
ohos.security.huksHuksTagHUKS_TAG_KEY_SIZE = HuksTagType.HUKS_TAG_TYPE_UINT |3新增
ohos.security.huksHuksTagHUKS_TAG_PURPOSE = HuksTagType.HUKS_TAG_TYPE_UINT |2新增
ohos.security.huksHuksTagHUKS_TAG_ALGORITHM = HuksTagType.HUKS_TAG_TYPE_UINT |1新增
ohos.security.huksHuksTagHUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID |0新增
ohos.security.huksHuksTagTypeHUKS_TAG_TYPE_BYTES = 5 << 28新增
ohos.security.huksHuksTagTypeHUKS_TAG_TYPE_BOOL = 4 << 28新增
ohos.security.huksHuksTagTypeHUKS_TAG_TYPE_ULONG = 3 << 28新增
ohos.security.huksHuksTagTypeHUKS_TAG_TYPE_UINT = 2 << 28新增
ohos.security.huksHuksTagTypeHUKS_TAG_TYPE_INT = 1 << 28新增
ohos.security.huksHuksTagTypeHUKS_TAG_TYPE_INVALID = 0 << 28新增
ohos.security.huksHuksSendTypeHUKS_SEND_TYPE_SYNC = 1新增
ohos.security.huksHuksSendTypeHUKS_SEND_TYPE_ASYNC = 0新增
ohos.security.huksHuksKeyStorageTypeHUKS_STORAGE_PERSISTENT = 1新增
ohos.security.huksHuksKeyStorageTypeHUKS_STORAGE_TEMP = 0新增
ohos.security.huksHuksKeyFlagHUKS_KEY_FLAG_DERIVE_KEY = 4新增
ohos.security.huksHuksKeyFlagHUKS_KEY_FLAG_AGREE_KEY = 3新增
ohos.security.huksHuksKeyFlagHUKS_KEY_FLAG_GENERATE_KEY = 2新增
ohos.security.huksHuksKeyFlagHUKS_KEY_FLAG_IMPORT_KEY = 1新增
ohos.security.huksHuksKeyGenerateTypeHUKS_KEY_GENERATE_TYPE_AGREE = 2新增
ohos.security.huksHuksKeyGenerateTypeHUKS_KEY_GENERATE_TYPE_DERIVE = 1新增
ohos.security.huksHuksKeyGenerateTypeHUKS_KEY_GENERATE_TYPE_DEFAULT = 0新增
ohos.security.huksHuksKeyAlgHUKS_ALG_DH = 103新增
ohos.security.huksHuksKeyAlgHUKS_ALG_ED25519 = 102新增
ohos.security.huksHuksKeyAlgHUKS_ALG_X25519 = 101新增
ohos.security.huksHuksKeyAlgHUKS_ALG_ECDH = 100新增
ohos.security.huksHuksKeyAlgHUKS_ALG_PBKDF2 = 52新增
ohos.security.huksHuksKeyAlgHUKS_ALG_HKDF = 51新增
ohos.security.huksHuksKeyAlgHUKS_ALG_HMAC = 50新增
ohos.security.huksHuksKeyAlgHUKS_ALG_AES = 20新增
ohos.security.huksHuksKeyAlgHUKS_ALG_DSA = 3新增
ohos.security.huksHuksKeyAlgHUKS_ALG_ECC = 2新增
ohos.security.huksHuksKeyAlgHUKS_ALG_RSA = 1新增
ohos.security.huksHuksKeySizeHUKS_DH_KEY_SIZE_4096 = 4096新增
ohos.security.huksHuksKeySizeHUKS_DH_KEY_SIZE_3072 = 3072新增
ohos.security.huksHuksKeySizeHUKS_DH_KEY_SIZE_2048 = 2048新增
ohos.security.huksHuksKeySizeHUKS_CURVE25519_KEY_SIZE_256 = 256新增
ohos.security.huksHuksKeySizeHUKS_AES_KEY_SIZE_512 = 512新增
ohos.security.huksHuksKeySizeHUKS_AES_KEY_SIZE_256 = 256新增
ohos.security.huksHuksKeySizeHUKS_AES_KEY_SIZE_192 = 192新增
ohos.security.huksHuksKeySizeHUKS_AES_KEY_SIZE_128 = 128新增
ohos.security.huksHuksKeySizeHUKS_ECC_KEY_SIZE_521 = 521新增
ohos.security.huksHuksKeySizeHUKS_ECC_KEY_SIZE_384 = 384新增
ohos.security.huksHuksKeySizeHUKS_ECC_KEY_SIZE_256 = 256新增
ohos.security.huksHuksKeySizeHUKS_ECC_KEY_SIZE_224 = 224新增
ohos.security.huksHuksKeySizeHUKS_RSA_KEY_SIZE_4096 = 4096新增
ohos.security.huksHuksKeySizeHUKS_RSA_KEY_SIZE_3072 = 3072新增
ohos.security.huksHuksKeySizeHUKS_RSA_KEY_SIZE_2048 = 2048新增
ohos.security.huksHuksKeySizeHUKS_RSA_KEY_SIZE_1024 = 1024新增
ohos.security.huksHuksKeySizeHUKS_RSA_KEY_SIZE_768 = 768新增
ohos.security.huksHuksKeySizeHUKS_RSA_KEY_SIZE_512 = 512新增
ohos.security.huksHuksCipherModeHUKS_MODE_GCM = 32新增
ohos.security.huksHuksCipherModeHUKS_MODE_CCM = 31新增
ohos.security.huksHuksCipherModeHUKS_MODE_OFB = 4新增
ohos.security.huksHuksCipherModeHUKS_MODE_CTR = 3新增
ohos.security.huksHuksCipherModeHUKS_MODE_CBC = 2新增
ohos.security.huksHuksCipherModeHUKS_MODE_ECB = 1新增
ohos.security.huksHuksKeyPaddingHUKS_PADDING_PKCS7 = 5新增
ohos.security.huksHuksKeyPaddingHUKS_PADDING_PKCS5 = 4新增
ohos.security.huksHuksKeyPaddingHUKS_PADDING_PKCS1_V1_5 = 3新增
ohos.security.huksHuksKeyPaddingHUKS_PADDING_PSS = 2新增
ohos.security.huksHuksKeyPaddingHUKS_PADDING_OAEP = 1新增
ohos.security.huksHuksKeyPaddingHUKS_PADDING_NONE = 0新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_SHA512 = 14新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_SHA384 = 13新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_SHA256 = 12新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_SHA224 = 11新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_SHA1 = 10新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_MD5 = 1新增
ohos.security.huksHuksKeyDigestHUKS_DIGEST_NONE = 0新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_AGREE = 256新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_MAC = 128新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_UNWRAP = 64新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_WRAP = 32新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_DERIVE = 16新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_VERIFY = 8新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_SIGN = 4新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_DECRYPT = 2新增
ohos.security.huksHuksKeyPurposeHUKS_KEY_PURPOSE_ENCRYPT = 1新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_UNKNOWN_ERROR = -1000新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INTERNAL_ERROR = -999新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_OPERATION = -125新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_ITERATION = -124新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_SALT = -123新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_AE_TAG = -122新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_NONCE = -121新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_AAD = -120新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_IV = -119新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_SIGNATURE_SIZE = -118新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_DIGEST = -117新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_MODE = -116新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_PURPOSE = -115新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_PADDING = -114新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_KEY_SIZE = -113新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_ALGORITHM = -112新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_ITERATION_FAIL = -111新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_SALT_FAIL = -110新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_AE_TAG_FAIL = -109新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_IV_FAIL = -108新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_AAD_FAIL = -107新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_NONCE_FAIL = -106新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_MODE_FAIL = -105新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_DIGEST_FAIL = -104新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_PURPOSE_FAIL = -103新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_PADDING_FAIL = -102新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_KEY_SIZE_FAIL = -101新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CHECK_GET_ALG_FAIL = -100新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_VERIFICATION_FAILED = -38新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_UPDATE_ROOT_KEY_MATERIAL_FAIL = -37新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_NEW_ROOT_KEY_MATERIAL_EXIST = -36新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_EFUSE_READ_FAIL = -35新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_IPC_DLOPEN_FAIL = -34新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_IPC_INIT_FAIL = -33新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_COMMUNICATION_TIMEOUT = -32新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CRYPTO_ENGINE_ERROR = -31新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_PARAM_NOT_EXIST = -30新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_REQUEST_OVERFLOWS = -29新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_IPC_MSG_FAIL = -28新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_KEY_FILE = -27新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_MAKE_DIR_FAIL = -26新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_CLOSE_FILE_FAIL = -25新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_OPEN_FILE_FAIL = -24新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_REMOVE_FILE_FAIL = -23新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_WRITE_FILE_FAIL = -22新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_MALLOC_FAIL = -21新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_HASH_NOT_EQUAL = -20新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_KEY_INFO = -19新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_PRIVATE_KEY = -18新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_PUBLIC_KEY = -17新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_READ_FILE_FAIL = -16新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_FILE_SIZE_FAIL = -15新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_NULL_POINTER = -14新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_NOT_EXIST = -13新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_ALREADY_EXISTS = -12新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_HARDWARE_FAILURE = -11新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_STORAGE_FAILURE = -10新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_COMMUNICATION_FAILURE = -9新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INSUFFICIENT_MEMORY = -8新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_BUFFER_TOO_SMALL = -7新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INSUFFICIENT_DATA = -6新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_NO_PERMISSION = -5新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_NOT_SUPPORTED = -4新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_INVALID_ARGUMENT = -3新增
ohos.security.huksHuksErrorCodeHUKS_ERROR_BAD_STATE = -2新增
ohos.security.huksHuksErrorCodeHUKS_FAILURE = -1新增
ohos.security.huksHuksErrorCodeHUKS_SUCCESS = 0新增
ohos.security.huksHuksResultcertChains?: Array<string>;新增
ohos.security.huksHuksResultproperties?: Array<HuksParam>;新增
ohos.security.huksHuksResultoutData?: Uint8Array;新增
ohos.security.huksHuksResulterrorCode: number;新增
ohos.security.huksHuksOptionsinData?: Uint8Array;新增
ohos.security.huksHuksOptionsproperties?: Array<HuksParam>;新增
ohos.security.huksHuksHandletoken?: Uint8Array;新增
ohos.security.huksHuksHandlehandle: number;新增
ohos.security.huksHuksHandleerrorCode: number;新增
ohos.security.huksHuksParamvalue: boolean |number |bigint |Uint8Array;新增
ohos.security.huksHuksParamtag: HuksTag;新增
ohos.security.hukshuksgetSdkVersion(options: HuksOptions) : string;新增
ohos.security.hukshuksabort(handle: number, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
abort(handle: number, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksfinish(handle: number, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
finish(handle: number, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksupdate(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksinit(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksHandle>) : void;
init(keyAlias: string, options: HuksOptions) : Promise<HuksHandle>;
新增
ohos.security.hukshuksisKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback<boolean>) : void;
isKeyExist(keyAlias: string, options: HuksOptions) : Promise<boolean>;
新增
ohos.security.hukshuksgetKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
getKeyProperties(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksexportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
exportKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksimportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
importKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksdeleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
deleteKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
新增
ohos.security.hukshuksgenerateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback<HuksResult>) : void;
generateKey(keyAlias: string, options: HuksOptions) : Promise<HuksResult>;
新增

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)3.1 release相对于3.1 beta变更详细说明

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)无障碍子系统JS API变更

harmony(鸿蒙)帐号子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)电源服务子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

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