Searched refs:TPM2_DIGEST_LEN (Results 1 – 5 of 5) sorted by relevance
/openbmc/u-boot/cmd/ |
H 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() 155 data, TPM2_DIGEST_LEN, &updates); in do_tpm_pcr_read() 158 print_byte_string(data, TPM2_DIGEST_LEN); in do_tpm_pcr_read() 224 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm_dam_reset() 252 if (pw_sz > TPM2_DIGEST_LEN) in do_tpm_dam_parameters() 292 if (newpw_sz > TPM2_DIGEST_LEN || oldpw_sz > TPM2_DIGEST_LEN) in do_tpm_change_auth() 324 if (strlen(key) != TPM2_DIGEST_LEN) in do_tpm_pcr_setauthpolicy() 349 if (strlen(key) != TPM2_DIGEST_LEN) in do_tpm_pcr_setauthvalue()
|
/openbmc/u-boot/drivers/tpm/ |
H A D | tpm2_tis_sandbox.c | 49 char pw[TPM2_HIERARCHY_NB][TPM2_DIGEST_LEN + 1]; 54 u8 pcr[SANDBOX_TPM_PCR_NB][TPM2_DIGEST_LEN]; 165 if (pw_sz > TPM2_DIGEST_LEN) { in sandbox_tpm2_check_session() 167 TPM2_DIGEST_LEN); in sandbox_tpm2_check_session() 243 for (i = 0; i < TPM2_DIGEST_LEN; i++) in sandbox_tpm2_extend() 248 TPM2_DIGEST_LEN); in sandbox_tpm2_extend() 353 for (j = 0; j < TPM2_DIGEST_LEN; j++) in sandbox_tpm2_xfer() 363 if (new_pw_sz > TPM2_DIGEST_LEN) { in sandbox_tpm2_xfer() 556 memcpy(recv, tpm->pcr[pcr_index], TPM2_DIGEST_LEN); in sandbox_tpm2_xfer() 557 recv += TPM2_DIGEST_LEN; in sandbox_tpm2_xfer()
|
/openbmc/u-boot/lib/ |
H A D | tpm-v2.c | 1318 tpm_u32(35 + pw_sz + TPM2_DIGEST_LEN), /* Length */ in tpm2_pcr_setauthpolicy() 1356 offset + pw_sz, TPM2_DIGEST_LEN, in tpm2_pcr_setauthpolicy() 1357 offset + pw_sz + 2, key, TPM2_DIGEST_LEN, in tpm2_pcr_setauthpolicy() 1358 offset + pw_sz + 2 + TPM2_DIGEST_LEN, in tpm2_pcr_setauthpolicy() 1360 offset + pw_sz + 4 + TPM2_DIGEST_LEN, index); in tpm2_pcr_setauthpolicy() 1361 offset += pw_sz + 2 + TPM2_DIGEST_LEN + 2 + 4; in tpm2_pcr_setauthpolicy() 1374 tpm_u32(33 + pw_sz + TPM2_DIGEST_LEN), /* Length */ in tpm2_pcr_setauthvalue()
|
H A D | tpm_api.c | 157 TPM2_DIGEST_LEN); in tpm_pcr_extend()
|
/openbmc/u-boot/include/ |
H A D | tpm-v2.h | 21 #define TPM2_DIGEST_LEN 32 macro
|