Lines Matching refs:digests

54 	len = offsetof(struct tcg_pcr_event2, digests);  in tcg2_event_get_size()
55 len += offsetof(struct tpml_digest_values, digests); in tcg2_event_get_size()
57 u16 l = tpm2_algorithm_to_len(digest_list->digests[i].hash_alg); in tcg2_event_get_size()
124 digest_list->digests[digest_list->count].hash_alg = in tcg2_create_digest()
126 memcpy(&digest_list->digests[digest_list->count].digest, final, in tcg2_create_digest()
146 pos = offsetof(struct tcg_pcr_event2, digests) + in tcg2_log_append()
150 pos = offsetof(struct tcg_pcr_event2, digests) + in tcg2_log_append()
151 offsetof(struct tpml_digest_values, digests); in tcg2_log_append()
153 u16 hash_alg = digest_list->digests[i].hash_alg; in tcg2_log_append()
162 memcpy(log + pos, (u8 *)&digest_list->digests[i].digest, len); in tcg2_log_append()
284 const u32 offset = offsetof(struct tcg_pcr_event2, digests) + in tcg2_replay_eventlog()
285 offsetof(struct tpml_digest_values, digests); in tcg2_replay_eventlog()
305 pos = offsetof(struct tcg_pcr_event2, digests) + in tcg2_replay_eventlog()
312 pos = offsetof(struct tcg_pcr_event2, digests) + in tcg2_replay_eventlog()
313 offsetof(struct tpml_digest_values, digests); in tcg2_replay_eventlog()
333 if (algo != digest_list->digests[i].hash_alg || in tcg2_replay_eventlog()
337 memcpy(digest_list->digests[i].digest.sha512, in tcg2_replay_eventlog()
442 digest_list.digests[digest_list.count++].hash_alg = algo; in tcg2_log_parse()
461 len = tpm2_algorithm_to_len(digest_list.digests[i].hash_alg); in tcg2_log_parse()
463 if (digest_list.digests[i].digest.sha512[j]) in tcg2_log_parse()
486 u32 alg = digest_list->digests[i].hash_alg; in tcg2_pcr_extend()
489 (u8 *)&digest_list->digests[i].digest, in tcg2_pcr_extend()
513 u32 alg = digest_list->digests[i].hash_alg; in tcg2_pcr_read()
514 u8 *digest = (u8 *)&digest_list->digests[i].digest; in tcg2_pcr_read()