diff --git a/security/huks/include/native_huks_type.h b/security/huks/include/native_huks_type.h index 6dcaa7a8c43cad1cfbb88ee8bbc2110af1d1fd37..29143fe5cca348d498be3751fa37930080b7ba57 100644 --- a/security/huks/include/native_huks_type.h +++ b/security/huks/include/native_huks_type.h @@ -398,6 +398,13 @@ enum OH_Huks_ErrCode { OH_HUKS_ERR_CODE_INTERNAL_ERROR = 12000012, /** The authentication credential does not exist. */ OH_HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST = 12000013, + + /** + * Device password is required but not set. + * + * @since 11 + */ + OH_HUKS_ERR_CODE_DEVICE_PASSWORD_UNSET = 12000016, }; /** @@ -625,6 +632,13 @@ enum OH_Huks_Tag { OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT | 1008, /** Key domain. */ OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT | 1011, + /** + * Key access control based on device password setting status. + * True means the key can only be generated and used when the password is set. + * + * @since 11 + */ + OH_HUKS_TAG_IS_DEVICE_PASSWORD_SET = OH_HUKS_TAG_TYPE_BOOL | 1012, /** Authenticated Encryption. */ OH_HUKS_TAG_AE_TAG = OH_HUKS_TAG_TYPE_BYTES | 10009,