/external/tpm2-tss/test/integration/ |
D | esys-policy-regression.int.c | 121 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 130 {.hash = TPM2_ALG_SHA1, in test_esys_policy_regression() 170 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_regression() 200 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 238 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 280 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 326 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 359 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 402 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_regression() 451 TPM2_ALG_SHA1); in test_esys_policy_regression()
|
D | esys-get-random.int.c | 60 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_get_random() 88 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_get_random() 116 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_get_random() 144 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_get_random() 172 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_get_random()
|
D | esys-hmacsequencestart.int.c | 71 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_hmacsequencestart() 106 inPublic.publicArea.nameAlg = TPM2_ALG_SHA1; in test_esys_hmacsequencestart() 112 inPublic.publicArea.parameters.keyedHashDetail.scheme.details.hmac.hashAlg = TPM2_ALG_SHA1; in test_esys_hmacsequencestart() 128 TPMI_ALG_HASH hashAlg = TPM2_ALG_SHA1; in test_esys_hmacsequencestart() 195 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_hmacsequencestart()
|
D | esys-create-primary-hmac.int.c | 53 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_create_primary_hmac() 77 .nameAlg = TPM2_ALG_SHA1, in test_esys_create_primary_hmac() 96 {.hashAlg = TPM2_ALG_SHA1} in test_esys_create_primary_hmac() 119 .nameAlg = TPM2_ALG_SHA1, in test_esys_create_primary_hmac()
|
D | esys-policy-ticket.int.c | 92 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_ticket() 109 .rsapss = { .hashAlg = TPM2_ALG_SHA1 } in test_esys_policy_ticket() 190 TPM2_SE_POLICY, &symmetric, TPM2_ALG_SHA1, in test_esys_policy_ticket() 202 TPMI_ALG_HASH hashAlg = TPM2_ALG_SHA1; in test_esys_policy_ticket() 285 TPM2_SE_POLICY, &symmetric, TPM2_ALG_SHA1, in test_esys_policy_ticket() 335 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_ticket()
|
D | esys-policy-nv-undefine-special.int.c | 74 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_nv_undefine_special() 112 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_nv_undefine_special() 161 TPM2_SE_HMAC, &policySymmetric, TPM2_ALG_SHA1, in test_esys_policy_nv_undefine_special() 174 TPM2_SE_POLICY, &policySymmetric, TPM2_ALG_SHA1, in test_esys_policy_nv_undefine_special()
|
D | esys-hmac.int.c | 78 inPublic.publicArea.nameAlg = TPM2_ALG_SHA1; in test_esys_hmac() 84 inPublic.publicArea.parameters.keyedHashDetail.scheme.details.hmac.hashAlg = TPM2_ALG_SHA1; in test_esys_hmac() 106 TPM2_ALG_SHA1, in test_esys_hmac()
|
D | esys-tpm-clear-auth.int.c | 42 .keyBits = { .exclusiveOr = TPM2_ALG_SHA1 }, in test_esys_clear_auth() 51 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_clear_auth() 82 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_clear_auth()
|
D | sapi-nv-policy-locality.int.c | 52 TPM2B_NONCE nonce = { .size = GetDigestSize (TPM2_ALG_SHA1), }; in create_policy_session() 66 TPM2_ALG_SHA1, in create_policy_session() 97 .authPolicy = { .size = GetDigestSize (TPM2_ALG_SHA1), }, in setup_nv() 99 .nameAlg = TPM2_ALG_SHA1, in setup_nv()
|
D | esys-policy-nv-changeauth.int.c | 72 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_nv_changeauth() 113 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_nv_changeauth() 156 TPM2_SE_POLICY, &policySymmetric, TPM2_ALG_SHA1, in test_esys_policy_nv_changeauth() 215 TPM2_SE_POLICY, &policySymmetric, TPM2_ALG_SHA1, in test_esys_policy_nv_changeauth()
|
D | esys-session-attributes.int.c | 49 .keyBits = { .exclusiveOr = TPM2_ALG_SHA1 }, in test_esys_session_attributes() 71 .nameAlg = TPM2_ALG_SHA1, in test_esys_session_attributes() 115 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_session_attributes() 147 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_session_attributes()
|
D | esys-auto-session-flags.int.c | 57 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_auto_flags() 65 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_auto_flags() 85 .nameAlg = TPM2_ALG_SHA1, in test_esys_auto_flags()
|
D | esys-quote.int.c | 75 .nameAlg = TPM2_ALG_SHA1, in test_esys_quote() 95 .details = { .rsassa = { .hashAlg = TPM2_ALG_SHA1 }}, in test_esys_quote() 156 .hash = TPM2_ALG_SHA1, in test_esys_quote()
|
D | esys-policy-password.int.c | 82 TPM2_ALG_SHA1, &sessionTrial); in test_esys_policy_password() 109 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_password() 192 TPM2_SE_POLICY, &policySymmetric, TPM2_ALG_SHA1, in test_esys_policy_password() 228 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_password()
|
D | sapi-nv-readwrite.int.c | 47 .size = GetDigestSize (TPM2_ALG_SHA1), in create_policy_session() 62 TPM2_ALG_SHA1, in create_policy_session() 83 .nameAlg = TPM2_ALG_SHA1, in setup_nv()
|
D | esys-ecdh-zgen.int.c | 63 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_ecdh_zgen() 84 .nameAlg = TPM2_ALG_SHA1, in test_esys_ecdh_zgen() 101 .details = {.ecdh = {.hashAlg = TPM2_ALG_SHA1} in test_esys_ecdh_zgen()
|
D | esys-commit.int.c | 71 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_commit() 93 .nameAlg = TPM2_ALG_SHA1, in test_esys_commit() 110 .details = {.ecdh = {.hashAlg = TPM2_ALG_SHA1} in test_esys_commit()
|
D | esys-policy-authorize.int.c | 76 .nameAlg = TPM2_ALG_SHA1, in test_esys_policy_authorize() 93 .rsapss = { .hashAlg = TPM2_ALG_SHA1 } in test_esys_policy_authorize() 151 TPM2_SE_TRIAL, &symmetricTrial, TPM2_ALG_SHA1, in test_esys_policy_authorize()
|
D | esys-rsa-encrypt-decrypt.int.c | 77 .nameAlg = TPM2_ALG_SHA1, in test_esys_rsa_encrypt_decrypt() 133 hashAlg = TPM2_ALG_SHA1; in test_esys_rsa_encrypt_decrypt() 169 scheme.details.oaep.hashAlg = TPM2_ALG_SHA1; in test_esys_rsa_encrypt_decrypt()
|
D | esys-nv-certify.int.c | 80 .nameAlg = TPM2_ALG_SHA1, in test_esys_nv_certify() 100 .details = { .rsassa = { .hashAlg = TPM2_ALG_SHA1 }}, in test_esys_nv_certify() 149 .nameAlg = TPM2_ALG_SHA1, in test_esys_nv_certify()
|
D | esys-zgen-2phase.int.c | 72 TPM2_SE_HMAC, &symmetric, TPM2_ALG_SHA1, in test_esys_zgen_2phase() 93 .nameAlg = TPM2_ALG_SHA1, in test_esys_zgen_2phase() 110 .details = {.ecdh = {.hashAlg = TPM2_ALG_SHA1} in test_esys_zgen_2phase()
|
/external/tpm2-tss/test/unit/ |
D | TPMU-marshal.c | 39 sig.ecdsa.hash = TPM2_ALG_SHA1; in tpmu_marshal_success() 54 assert_int_equal (ptr->hash, HOST_TO_BE_16(TPM2_ALG_SHA1)); in tpmu_marshal_success() 89 sig.ecdsa.hash = TPM2_ALG_SHA1; in tpmu_marshal_success_offset() 104 assert_int_equal (ptr->hash, HOST_TO_BE_16(TPM2_ALG_SHA1)); in tpmu_marshal_success_offset() 136 sig.ecdsa.hash = TPM2_ALG_SHA1; in tpmu_marshal_buffer_null_with_offset() 187 sig.ecdsa.hash = TPM2_ALG_SHA1; in tpmu_marshal_buffer_size_lt_data_nad_lt_offset() 228 ptr->hash = HOST_TO_BE_16(TPM2_ALG_SHA1); in tpmu_unmarshal_success() 243 assert_int_equal (sig.ecdsa.hash, TPM2_ALG_SHA1); in tpmu_unmarshal_success() 313 ptr->hash = HOST_TO_BE_16(TPM2_ALG_SHA1); in tpmu_unmarshal_dest_null_offset_valid() 351 ptr->hash = HOST_TO_BE_16(TPM2_ALG_SHA1); in tpmu_unmarshal_buffer_size_lt_data_nad_lt_offset() [all …]
|
D | TPML-marshal.c | 46 sel.pcrSelections[0].hash = TPM2_ALG_SHA1; in tpml_marshal_success() 99 sel.pcrSelections[0].hash = TPM2_ALG_SHA1; in tpml_marshal_success_offset() 149 sel.pcrSelections[0].hash = TPM2_ALG_SHA1; in tpml_marshal_buffer_null_with_offset() 174 dgst_vals.digests[0].hashAlg = TPM2_ALG_SHA1; in tpml_marshal_buffer_null_with_offset() 225 sel.pcrSelections[0].hash = TPM2_ALG_SHA1; in tpml_marshal_buffer_size_lt_data_nad_lt_offset() 262 sel.pcrSelections[0].hash = TPM2_ALG_SHA1; in tpml_marshal_invalid_count() 316 assert_int_equal (sel.pcrSelections[0].hash, TPM2_ALG_SHA1); in tpml_unmarshal_success() 462 ptr2->pcrSelections[0].hash = HOST_TO_BE_16(TPM2_ALG_SHA1); in tpml_unmarshal_invalid_count()
|
D | esys-crypto.c | 69 rc = iesys_crypto_hmac_start(&context, TPM2_ALG_SHA1, &buffer[0], 10); in check_hash_functions() 104 rc = iesys_crypto_hmac_start(&context, TPM2_ALG_SHA1, &buffer[0], 10); in check_hmac_functions() 126 rc = iesys_crypto_hash_start(&context, TPM2_ALG_SHA1); in check_hmac_functions() 162 .nameAlg = TPM2_ALG_SHA1, in check_pk_encrypt() 197 inPublicRSA.publicArea.nameAlg = TPM2_ALG_SHA1; in check_pk_encrypt()
|
/external/linux-kselftest/tools/testing/selftests/tpm2/ |
D | tpm2.py | 36 TPM2_ALG_SHA1 = 0x0004 variable 187 TPM2_ALG_SHA1: SHA1_DIGEST_SIZE, 192 TPM2_ALG_SHA1: hashlib.sha1, 197 "sha1": TPM2_ALG_SHA1, 400 def read_pcr(self, i, bank_alg = TPM2_ALG_SHA1): 432 def extend_pcr(self, i, dig, bank_alg = TPM2_ALG_SHA1): 451 def start_auth_session(self, session_type, name_alg = TPM2_ALG_SHA1): 468 def __calc_pcr_digest(self, pcrs, bank_alg = TPM2_ALG_SHA1, 469 digest_alg = TPM2_ALG_SHA1): 481 def policy_pcr(self, handle, pcrs, bank_alg = TPM2_ALG_SHA1, [all …]
|