Home
last modified time | relevance | path

Searched refs:TPM2_ALG_SHA1 (Results 1 – 25 of 74) sorted by relevance

123

/external/tpm2-tss/test/integration/
Desys-policy-regression.int.c121 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()
Desys-get-random.int.c60 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()
Desys-hmacsequencestart.int.c71 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()
Desys-create-primary-hmac.int.c53 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()
Desys-policy-ticket.int.c92 .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()
Desys-policy-nv-undefine-special.int.c74 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()
Desys-hmac.int.c78 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()
Desys-tpm-clear-auth.int.c42 .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()
Desys-policy-nv-changeauth.int.c72 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()
Dsapi-nv-policy-locality.int.c52 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()
Desys-session-attributes.int.c49 .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()
Desys-quote.int.c75 .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()
Desys-auto-session-flags.int.c57 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()
Desys-policy-password.int.c82 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()
Desys-ecdh-zgen.int.c63 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()
Dsapi-nv-readwrite.int.c47 .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()
Desys-commit.int.c71 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()
Desys-policy-authorize.int.c76 .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()
Desys-rsa-encrypt-decrypt.int.c77 .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()
Desys-zgen-2phase.int.c72 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()
Desys-nv-certify.int.c80 .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()
/external/tpm2-tss/test/unit/
DTPMU-marshal.c39 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 …]
DTPML-marshal.c46 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()
Desys-crypto.c69 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/
Dtpm2.py36 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 …]

123