Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 4 of 4) sorted by relevance

/optee_ftpm/platform/
A DfTPM_event_log.c56 const unsigned char *const buf, in process_header() argument
73 if (*((uint32_t *)(buf + buf_index)) != 0U) { in process_header()
86 if (*((uint32_t *)(buf + buf_index)) != EV_NO_ACTION) { in process_header()
96 if (!check_header_digest(buf + buf_index)) { in process_header()
102 memcpy(&event_size, buf + buf_index, sizeof(event_size)); in process_header()
191 memcpy(&event, buf + buf_index, sizeof(event2_header_t)); in process_event()
249 memcpy(&alg_id, buf + buf_index, sizeof(alg_id)); in process_event()
300 memcpy(digest_array, buf + buf_index, digest_size); in process_event()
310 memcpy(&event_size, buf + buf_index, sizeof(event_size)); in process_event()
370 buf_index = process_header(buf_index, buf, log_size); in process_eventlog()
[all …]
/optee_ftpm/include/
A DfTPM_event_log.h10 bool process_eventlog(const unsigned char *const buf, const size_t log_size);
/optee_ftpm/
A DfTPM.c99 static TEE_Result get_tpm_event_log(unsigned char *buf, size_t *len) in get_tpm_event_log() argument
116 params[0].memref.buffer = (void *)buf; in get_tpm_event_log()
/optee_ftpm/tee/
A DTpmToTEEMath.c62 BYTE buf[sz]; in bignum_to_bigint() local
64 if (!BnToBytes(bn, buf, &sz)) in bignum_to_bigint()
67 if (TEE_BigIntConvertFromOctetString(bi, buf, sz, 0)) in bignum_to_bigint()
84 BYTE buf[sz]; in bigint_to_bignum() local
86 if (TEE_BigIntConvertToOctetString(buf, &sz, bi)) in bigint_to_bignum()
89 if (!BnFromBytes(bn, buf, sz)) in bigint_to_bignum()

Completed in 10 milliseconds