Home
last modified time | relevance | path

Searched refs:goto_error (Results 1 – 25 of 64) sorted by relevance

123

/external/tpm2-tss/src/tss2-esys/
Desys_crypto_bssl.c111 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in iesys_cryptbssl_hash_start()
116 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in iesys_cryptbssl_hash_start()
121 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Error EVP_MD_CTX_create", cleanup); in iesys_cryptbssl_hash_start()
127 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Errror EVP_DigestInit_ex", cleanup); in iesys_cryptbssl_hash_start()
305 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in iesys_cryptbssl_hmac_start()
310 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptbssl_hmac_start()
315 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptbssl_hmac_start()
321 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptbssl_hmac_start()
427 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "DigestSignFinal", cleanup); in iesys_cryptbssl_hmac_finish()
563 goto_error(r, TSS2_ESYS_RC_MEMORY, in iesys_cryptbssl_pk_encrypt()
[all …]
Desys_crypto_ossl.c103 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in iesys_cryptossl_hash_start()
108 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in iesys_cryptossl_hash_start()
113 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Error EVP_MD_CTX_create", cleanup); in iesys_cryptossl_hash_start()
119 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Errror EVP_DigestInit_ex", cleanup); in iesys_cryptossl_hash_start()
298 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in iesys_cryptossl_hmac_start()
303 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptossl_hmac_start()
308 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptossl_hmac_start()
313 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptossl_hmac_start()
319 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptossl_hmac_start()
429 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "DigestSignFinal", cleanup); in iesys_cryptossl_hmac_finish()
[all …]
Desys_crypto_gcrypt.c596 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptogcry_pk_encrypt()
604 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptogcry_pk_encrypt()
615 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptogcry_pk_encrypt()
727 goto_error(r, TSS2_ESYS_RC_MEMORY, "asprintf", cleanup); in iesys_cryptogcry_get_ecdh_point()
732 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "gcry_sexp_build", cleanup); in iesys_cryptogcry_get_ecdh_point()
737 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Create ephemeral ecc key", in iesys_cryptogcry_get_ecdh_point()
744 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptogcry_get_ecdh_point()
749 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, in iesys_cryptogcry_get_ecdh_point()
756 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Get public part ecc key", in iesys_cryptogcry_get_ecdh_point()
761 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Create ec", cleanup); in iesys_cryptogcry_get_ecdh_point()
[all …]
/external/tpm2-tss/src/tss2-fapi/
Dfapi_crypto.c330 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL error", cleanup); in ifapi_tpm_ecc_sig_to_der()
349 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL error", cleanup); in ifapi_tpm_ecc_sig_to_der()
393 goto_error(r, TSS2_FAPI_RC_MEMORY, "Out of memory", error_cleanup); in ossl_rsa_pub_from_tpm()
408 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, in ossl_rsa_pub_from_tpm()
429 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "Assign rsa key", in ossl_rsa_pub_from_tpm()
504 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "EC_KEY_set_group", in ossl_ecc_pub_from_tpm()
517 goto_error(r, TSS2_FAPI_RC_MEMORY, "Out of memory", error_cleanup); in ossl_ecc_pub_from_tpm()
521 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, in ossl_ecc_pub_from_tpm()
526 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "Assign ecc key", 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()
[all …]
Difapi_get_intl_cert.c334 goto_error(rc, TSS2_FAPI_RC_GENERAL_FAILURE, in ifapi_get_intl_ek_certificate()
338 goto_error(rc, TSS2_FAPI_RC_GENERAL_FAILURE, in ifapi_get_intl_ek_certificate()
342 goto_error(rc, TSS2_FAPI_RC_GENERAL_FAILURE, in ifapi_get_intl_ek_certificate()
348 goto_error(rc, TSS2_FAPI_RC_MEMORY, in ifapi_get_intl_ek_certificate()
361 goto_error(rc, TSS2_FAPI_RC_GENERAL_FAILURE, in ifapi_get_intl_ek_certificate()
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_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()
820 goto_error(r, TSS2_FAPI_RC_POLICY_UNKNOWN, "Policy not found.", cleanup); in search_policy()
896 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid state for load key.", cleanup); in search_policy()
1103 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Invalid branch number.", in ifapi_exec_auth_policy()
1125 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "Policy could not be set.", in ifapi_exec_auth_policy()
1295 goto_error(r, TSS2_FAPI_RC_POLICY_UNKNOWN, "Policy not found", cleanup); in ifapi_exec_auth_nv_policy()
Difapi_keystore.c105 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Explicit path can't be determined.", in initialize_explicit_key_path()
450 goto_error(r, TSS2_FAPI_RC_PATH_NOT_FOUND, in rel_path_to_abs_path()
455 goto_error(r, TSS2_FAPI_RC_KEY_NOT_FOUND, in rel_path_to_abs_path()
961 goto_error(r, TSS2_FAPI_RC_PATH_NOT_FOUND, "Key not found.", cleanup); in keystore_search_obj()
1115 goto_error(r, TSS2_FAPI_RC_PATH_ALREADY_EXISTS, in ifapi_keystore_check_overwrite()
1124 goto_error(r, TSS2_FAPI_RC_PATH_ALREADY_EXISTS, in ifapi_keystore_check_overwrite()
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()
1696 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "Unknown signature scheme", error_cleanup); in ifapi_tpm_to_fapi_signature()
2035 goto_error(r, TSS2_FAPI_RC_SIGNATURE_VERIFICATION_FAILED, in ifapi_calculate_pcr_digest()
2228 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_compute_policy_digest()
2237 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_compute_policy_digest()
Difapi_policy.c117 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_tree()
/external/tpm2-tss/test/integration/
Dfapi-data-crypt.int.c126 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL digest sign init.", in signatureCallback()
132 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL set RSA padding.", in signatureCallback()
137 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign init.", in signatureCallback()
141 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign update.", in signatureCallback()
145 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign final.", in signatureCallback()
151 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign final.", in signatureCallback()
Dfapi-key-create-policy-signed.int.c140 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL digest sign init.", in signatureCallback()
146 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL set RSA padding.", in signatureCallback()
151 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign init.", in signatureCallback()
155 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign update.", in signatureCallback()
159 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign final.", in signatureCallback()
165 goto_error(r, TSS2_FAPI_RC_GENERAL_FAILURE, "OSSL sign final.", in signatureCallback()
/external/tpm2-tss/src/tss2-esys/api/
DEsys_CreatePrimary.c341 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_CreatePrimary_Finish()
346 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_CreatePrimary_Finish()
352 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_CreatePrimary_Finish()
358 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_CreatePrimary_Finish()
430 goto_error(r, TSS2_ESYS_RC_MALFORMED_RESPONSE, in Esys_CreatePrimary_Finish()
DEsys_Create.c322 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Create_Finish()
328 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Create_Finish()
334 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Create_Finish()
340 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Create_Finish()
DEsys_CreateLoaded.c316 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_CreateLoaded_Finish()
321 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_CreateLoaded_Finish()
391 goto_error(r, TSS2_ESYS_RC_MALFORMED_RESPONSE, in Esys_CreateLoaded_Finish()
DEsys_ReadPublic.c279 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_ReadPublic_Finish()
285 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_ReadPublic_Finish()
DEsys_Duplicate.c313 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Duplicate_Finish()
319 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Duplicate_Finish()
DEsys_Commit.c299 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Commit_Finish()
305 goto_error(r, TSS2_ESYS_RC_MEMORY, "Out of memory", error_cleanup); in Esys_Commit_Finish()
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_Provision.c429 goto_error(r, TSS2_ESYS_RC_NOT_IMPLEMENTED, in Fapi_Provision_Finish()
440 goto_error(r, TSS2_FAPI_RC_BAD_KEY, in Fapi_Provision_Finish()
473 goto_error(r, TSS2_FAPI_RC_BAD_KEY, in Fapi_Provision_Finish()
615 goto_error(r, TSS2_FAPI_RC_NO_CERT, "No EK certificate found.", in Fapi_Provision_Finish()
692 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in Fapi_Provision_Finish()
DFapi_ExportKey.c295 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "%s is not a key object.", in Fapi_ExportKey_Finish()
330 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, "No public key in %s", in Fapi_ExportKey_Finish()
DFapi_GetAppData.c197 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "Object has no app data.", cleanup); in Fapi_GetAppData_Finish()
DFapi_GetPlatformCertificates.c235 goto_error(r, TSS2_FAPI_RC_NO_CERT, in Fapi_GetPlatformCertificates_Finish()
DFapi_GetTpmBlobs.c204 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "No key object.", error_cleanup); in Fapi_GetTpmBlobs_Finish()
DFapi_SetAppData.c229 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "Object has no app data.", error_cleanup); in Fapi_SetAppData_Finish()
/external/tpm2-tss/src/util/
Daux_util.h57 #define goto_error(r,v,msg,label, ...) \ macro

123