/external/tpm2-tss/src/tss2-esys/ |
D | esys_crypto_bssl.c | 111 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 …]
|
D | esys_crypto_ossl.c | 103 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 …]
|
D | esys_crypto_gcrypt.c | 596 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/ |
D | fapi_crypto.c | 330 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 …]
|
D | ifapi_get_intl_cert.c | 334 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()
|
D | ifapi_policy_calculate.c | 97 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 …]
|
D | ifapi_policy_callbacks.c | 115 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()
|
D | ifapi_keystore.c | 105 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()
|
D | ifapi_helpers.c | 86 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()
|
D | ifapi_policy.c | 117 goto_error(r, TSS2_FAPI_RC_BAD_VALUE, in ifapi_calculate_tree()
|
/external/tpm2-tss/test/integration/ |
D | fapi-data-crypt.int.c | 126 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()
|
D | fapi-key-create-policy-signed.int.c | 140 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/ |
D | Esys_CreatePrimary.c | 341 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()
|
D | Esys_Create.c | 322 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()
|
D | Esys_CreateLoaded.c | 316 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()
|
D | Esys_ReadPublic.c | 279 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()
|
D | Esys_Duplicate.c | 313 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()
|
D | Esys_Commit.c | 299 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/ |
D | Fapi_Provision.c | 429 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()
|
D | Fapi_ExportKey.c | 295 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()
|
D | Fapi_GetAppData.c | 197 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "Object has no app data.", cleanup); in Fapi_GetAppData_Finish()
|
D | Fapi_GetPlatformCertificates.c | 235 goto_error(r, TSS2_FAPI_RC_NO_CERT, in Fapi_GetPlatformCertificates_Finish()
|
D | Fapi_GetTpmBlobs.c | 204 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "No key object.", error_cleanup); in Fapi_GetTpmBlobs_Finish()
|
D | Fapi_SetAppData.c | 229 goto_error(r, TSS2_FAPI_RC_BAD_PATH, "Object has no app data.", error_cleanup); in Fapi_SetAppData_Finish()
|
/external/tpm2-tss/src/util/ |
D | aux_util.h | 57 #define goto_error(r,v,msg,label, ...) \ macro
|