diff --git a/security/huks/include/native_huks_type.h b/security/huks/include/native_huks_type.h index d2fdbf7d19cf32fc569fc91768bc4746a957bb0b..5c261751e31f7b4ff2840cc910a4544d4386b0c8 100644 --- a/security/huks/include/native_huks_type.h +++ b/security/huks/include/native_huks_type.h @@ -398,7 +398,10 @@ 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, - + /** The memory is not sufficient. */ + OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY = 12000014, + /** Failed to call service. */ + OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED = 12000015, /** * Device password is required but not set. * @@ -454,7 +457,13 @@ enum OH_Huks_AuthAccessType { /** The key is invalid after the password is cleared. */ OH_HUKS_AUTH_ACCESS_INVALID_CLEAR_PASSWORD = 1 << 0, /** The key is invalid after a new biometric feature is enrolled. */ - OH_HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL = 1 << 1 + OH_HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL = 1 << 1, + /** + * The key is always valid. + * + * @since 11 + */ + OH_HUKS_AUTH_ACCESS_ALWAYS_VALID = 1 << 2, }; /**