Home
last modified time | relevance | path

Searched refs:TSS2_FAPI_RC_BAD_VALUE (Results 1 – 25 of 33) sorted by relevance

12

/external/tpm2-tss/src/tss2-fapi/
Dtpm_json_deserialize.c64 return TSS2_FAPI_RC_BAD_VALUE;
95 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_hex_to_byte_ary()
102 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_hex_to_byte_ary()
221 return TSS2_FAPI_RC_BAD_VALUE; in get_number_from_json()
247 return_error(TSS2_FAPI_RC_BAD_VALUE, "No boolean value"); in get_boolean_from_json()
251 return_error(TSS2_FAPI_RC_BAD_VALUE, "No boolean value."); in get_boolean_from_json()
278 return_error(TSS2_FAPI_RC_BAD_VALUE, "Bad value (array of numbers expected)."); in ifapi_json_pcr_selection_deserialize()
354 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_PCR_SELECTION_deserialize()
361 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_PCR_SELECTION_deserialize()
393 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_BYTE_array_deserialize()
[all …]
Difapi_json_deserialize.c114 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
129 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
136 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
157 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
179 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
186 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
195 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
203 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_KEY_deserialize()
232 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_EXT_PUB_KEY_deserialize()
289 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_NV_deserialize()
[all …]
Difapi_policy_json_deserialize.c135 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMI_POLICYTYPE_deserialize_txt()
153 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_TPMI_POLICYTYPE_deserialize_txt()
233 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYSIGNED_deserialize()
292 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYSECRET_deserialize()
318 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_POLICYLOCALITY_deserialize()
370 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_POLICYNV_deserialize()
390 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYNV_deserialize()
417 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
431 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize()
458 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize()
[all …]
Difapi_profiles.c118 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profiles_initialize_async()
172 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profiles_initialize_finish()
204 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profiles_initialize_finish()
268 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profiles_get()
340 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profile_json_deserialize()
347 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profile_json_deserialize()
354 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profile_json_deserialize()
382 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profile_json_deserialize()
389 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profile_json_deserialize()
396 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_profile_json_deserialize()
[all …]
Difapi_config.c80 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_CONFIG_deserialize()
86 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_CONFIG_deserialize()
93 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_CONFIG_deserialize()
197 r = TSS2_FAPI_RC_BAD_VALUE; in ifapi_config_initialize_finish()
210 TSS2_FAPI_RC_BAD_VALUE, cleanup); in ifapi_config_initialize_finish()
212 TSS2_FAPI_RC_BAD_VALUE, cleanup); in ifapi_config_initialize_finish()
214 TSS2_FAPI_RC_BAD_VALUE, cleanup); in ifapi_config_initialize_finish()
Dtpm_json_serialize.c26 return TSS2_FAPI_RC_BAD_VALUE; \
65 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_pcr_select_serialize()
173 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_UINT16_serialize()
192 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_UINT32_serialize()
211 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_INT32_serialize()
232 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_UINT64_serialize()
269 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_TPM2_GENERATED_serialize()
338 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_TPM2_ALG_ID_serialize()
371 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_TPM2_ECC_CURVE_serialize()
512 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_TPM2_CC_serialize()
[all …]
Dfapi_crypto.c76 return_error(TSS2_FAPI_RC_BAD_VALUE, "Invalid key type."); in ifapi_get_profile_sig_scheme()
181 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_initialize_sign_public()
494 return_error(TSS2_FAPI_RC_BAD_VALUE, in ossl_ecc_pub_from_tpm()
585 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid alg id.", cleanup); in ifapi_pub_pem_key_from_tpm()
723 return_error(TSS2_FAPI_RC_BAD_VALUE, "Invalid RSA scheme."); in ifapi_der_sig_to_tpm()
731 return_error(TSS2_FAPI_RC_BAD_VALUE, "Invalid key tpye."); in ifapi_der_sig_to_tpm()
798 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid digest size", cleanup); in rsa_verify_signature()
1028 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in get_ecc_tpm2b_public_from_evp()
1067 TSS2_FAPI_RC_BAD_VALUE, cleanup); in ifapi_get_evp_from_pem()
1156 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Wrong key_type", cleanup); in ifapi_get_tpm2b_public_from_pem()
[all …]
Difapi_policy_calculate.c97 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_compute_policy_pcr()
239 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_signed()
296 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_authorize_nv()
345 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_duplicate()
418 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_authorize()
471 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_secret()
525 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_counter_timer()
600 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_simple_policy()
794 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_digest_hash()
853 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_policy_name_hash()
[all …]
Difapi_helpers.c86 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid flag: %s", in ifapi_set_key_flags()
92 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid flag: %s", in ifapi_set_key_flags()
116 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_set_key_flags()
180 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid flag: %s", in ifapi_set_nv_flags()
185 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid flag: %s", in ifapi_set_nv_flags()
191 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_set_nv_flags()
947 return TSS2_FAPI_RC_BAD_VALUE; in create_dirs()
1696 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Unknown signature scheme", error_cleanup); in ifapi_tpm_to_fapi_signature()
1791 return_if_null(jso, "Json error.", TSS2_FAPI_RC_BAD_VALUE); in ifapi_get_quote_info()
1915 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_extend_vpcr()
[all …]
Difapi_eventlog.c80 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_eventlog_get_async()
176 return_if_null(log, "JSON parsing error", TSS2_FAPI_RC_BAD_VALUE); in ifapi_eventlog_get_finish()
301 return_if_null(log, "JSON parsing error", TSS2_FAPI_RC_BAD_VALUE); in ifapi_eventlog_append_finish()
Difapi_policy.c117 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_tree()
133 return_error(TSS2_FAPI_RC_BAD_VALUE, "Table overflow"); in ifapi_calculate_tree()
Difapi_policy_callbacks.c115 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Object %s is not a key.", in ifapi_get_key_public()
190 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid object %s.", in ifapi_get_object_name()
253 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Object %s is not a key.", in ifapi_get_nv_public()
304 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_read_pcr()
322 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_read_pcr()
896 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid state for load key.", cleanup); in search_policy()
933 return_error2(TSS2_FAPI_RC_BAD_VALUE, in get_policy_digest()
1103 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid branch number.", in ifapi_exec_auth_policy()
1223 return_error2(TSS2_FAPI_RC_BAD_VALUE, in ifapi_exec_auth_nv_policy()
Difapi_policy_json_serialize.c93 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_TPMI_POLICYTYPE_serialize_txt()
187 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYSIGNED_serialize()
253 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYSECRET_serialize()
353 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYNV_serialize()
540 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYNAMEHASH_serialize()
607 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYDUPLICATIONSELECT_serialize()
809 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYTEMPLATE_serialize()
854 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYAUTHORIZENV_serialize()
1003 return_error(TSS2_FAPI_RC_BAD_VALUE, in ifapi_json_TPMS_POLICYPCR_serialize()
Difapi_json_serialize.c439 return TSS2_FAPI_RC_BAD_VALUE; in ifapi_json_IFAPI_OBJECT_TYPE_CONSTANT_serialize()
656 return_error(TSS2_FAPI_RC_BAD_VALUE, "Undefined constant."); in ifapi_json_IFAPI_EVENT_TYPE_serialize_txt()
691 return_if_null(jso2, "Event is not valid JSON.", TSS2_FAPI_RC_BAD_VALUE); in ifapi_json_IFAPI_TSS_EVENT_serialize()
Difapi_policy_execute.c47 return_error2(TSS2_FAPI_RC_BAD_VALUE, in compute_or_digest_list()
61 return_error(TSS2_FAPI_RC_BAD_VALUE, "No digest found for hash alg"); in compute_or_digest_list()
67 return_error(TSS2_FAPI_RC_BAD_VALUE, "Too much or branches."); in compute_or_digest_list()
156 return_error(TSS2_FAPI_RC_BAD_VALUE, "Table overflow"); in get_policy_digest_idx()
569 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in execute_policy_authorize()
/external/tpm2-tss/test/unit/
Dfapi-json.c1212 CHECK_ERROR(UINT16, "\"0x10000\"", TSS2_FAPI_RC_BAD_VALUE); in check_error()
1213 CHECK_ERROR(UINT32, "\"0x100000000\"", TSS2_FAPI_RC_BAD_VALUE); in check_error()
1218 TSS2_FAPI_RC_BAD_VALUE); in check_error()
1221 CHECK_ERROR(TPMI_ALG_HASH, "\"SHA9999\"", TSS2_FAPI_RC_BAD_VALUE); in check_error()
1222 CHECK_ERROR(TPM2B_DIGEST, "\"xxxx\"", TSS2_FAPI_RC_BAD_VALUE); in check_error()
1223 CHECK_ERROR(TPM2B_DIGEST, "\"0x010x\"", TSS2_FAPI_RC_BAD_VALUE); in check_error()
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_Quote.c203 return TSS2_FAPI_RC_BAD_VALUE; in Fapi_Quote_Async()
207 return TSS2_FAPI_RC_BAD_VALUE; in Fapi_Quote_Async()
218 return_error(TSS2_FAPI_RC_BAD_VALUE, in Fapi_Quote_Async()
DFapi_VerifyQuote.c175 return TSS2_FAPI_RC_BAD_VALUE; in Fapi_VerifyQuote_Async()
293 return_if_null(command->event_list, "Json error.", TSS2_FAPI_RC_BAD_VALUE); in Fapi_VerifyQuote_Finish()
DFapi_Initialize.c65 return TSS2_FAPI_RC_BAD_VALUE; in Fapi_Initialize()
118 return TSS2_FAPI_RC_BAD_VALUE; in Fapi_Initialize_Async()
DFapi_CreateNv.c198 return_error(TSS2_FAPI_RC_BAD_VALUE, "AuthValue too long"); in Fapi_CreateNv_Async()
300 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Wrong hierarchy", error_cleanup); in Fapi_CreateNv_Finish()
DFapi_SetDescription.c130 return_error(TSS2_FAPI_RC_BAD_VALUE, in Fapi_SetDescription_Async()
DFapi_NvExtend.c178 return TSS2_FAPI_RC_BAD_VALUE; in Fapi_NvExtend_Async()
327 goto_error_reset_state(r, TSS2_FAPI_RC_BAD_VALUE, in Fapi_NvExtend_Finish()
DFapi_Import.c199 return_error(TSS2_FAPI_RC_BAD_VALUE, "Invalid import data"); in Fapi_Import_Async()
221 return_if_null(jso, "Json error.", TSS2_FAPI_RC_BAD_VALUE); in Fapi_Import_Async()
DFapi_SetAppData.c140 return_error(TSS2_FAPI_RC_BAD_VALUE, in Fapi_SetAppData_Async()
DFapi_Sign.c191 return_error(TSS2_FAPI_RC_BAD_VALUE, in Fapi_Sign_Async()

12