Searched refs:TPM2_DIGEST_LEN (Results 1 – 4 of 4) sorted by relevance
/u-boot/cmd/ |
A D | tpm-v2.c | 82 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm2_clear() 120 TPM2_DIGEST_LEN); in do_tpm2_pcr_extend() 157 print_byte_string(data, TPM2_DIGEST_LEN); in do_tpm_pcr_read() 223 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm_dam_reset() 251 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm_dam_parameters() 291 if (newpw_sz > TPM2_DIGEST_LEN || oldpw_sz > TPM2_DIGEST_LEN) in do_tpm_change_auth() 323 if (strlen(key) != TPM2_DIGEST_LEN) in do_tpm_pcr_setauthpolicy() 348 if (strlen(key) != TPM2_DIGEST_LEN) in do_tpm_pcr_setauthvalue()
|
/u-boot/lib/ |
A D | tpm-v2.c | 154 response_len - TPM2_DIGEST_LEN, data, in tpm2_pcr_read() 155 TPM2_DIGEST_LEN)) in tpm2_pcr_read() 331 tpm_u32(35 + pw_sz + TPM2_DIGEST_LEN), /* Length */ in tpm2_pcr_setauthpolicy() 369 offset + pw_sz, TPM2_DIGEST_LEN, in tpm2_pcr_setauthpolicy() 370 offset + pw_sz + 2, key, TPM2_DIGEST_LEN, in tpm2_pcr_setauthpolicy() 371 offset + pw_sz + 2 + TPM2_DIGEST_LEN, in tpm2_pcr_setauthpolicy() 373 offset + pw_sz + 4 + TPM2_DIGEST_LEN, index); in tpm2_pcr_setauthpolicy() 374 offset += pw_sz + 2 + TPM2_DIGEST_LEN + 2 + 4; in tpm2_pcr_setauthpolicy() 387 tpm_u32(33 + pw_sz + TPM2_DIGEST_LEN), /* Length */ in tpm2_pcr_setauthvalue()
|
/u-boot/drivers/tpm/ |
A D | tpm2_tis_sandbox.c | 54 char pw[TPM2_HIERARCHY_NB][TPM2_DIGEST_LEN + 1]; 59 u8 pcr[SANDBOX_TPM_PCR_NB][TPM2_DIGEST_LEN]; 170 if (pw_sz > TPM2_DIGEST_LEN) { in sandbox_tpm2_check_session() 172 TPM2_DIGEST_LEN); in sandbox_tpm2_check_session() 248 for (i = 0; i < TPM2_DIGEST_LEN; i++) in sandbox_tpm2_extend() 253 TPM2_DIGEST_LEN); in sandbox_tpm2_extend() 358 for (j = 0; j < TPM2_DIGEST_LEN; j++) in sandbox_tpm2_xfer() 368 if (new_pw_sz > TPM2_DIGEST_LEN) { in sandbox_tpm2_xfer() 513 memcpy(recv, tpm->pcr[pcr_index], TPM2_DIGEST_LEN); in sandbox_tpm2_xfer() 514 recv += TPM2_DIGEST_LEN; in sandbox_tpm2_xfer()
|
/u-boot/include/ |
A D | tpm-v2.h | 21 #define TPM2_DIGEST_LEN 32 macro
|
Completed in 8 milliseconds