Home
last modified time | relevance | path

Searched refs:tpm_buf_length (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/char/tpm/
H A Dtpm2-sessions.c198 if (offset + 4 > tpm_buf_length(buf)) in tpm2_read_public()
209 if (offset + rc > tpm_buf_length(buf)) in tpm2_read_public()
258 slot = (tpm_buf_length(buf) - TPM_HEADER_SIZE) / 4; in tpm_buf_append_name()
265 if (auth->session != tpm_buf_length(buf)) { in tpm_buf_append_name()
316 if (tpm_buf_length(buf) != offset) { in tpm_buf_append_auth()
392 if (auth->session != tpm_buf_length(buf)) { in tpm_buf_append_hmac_session()
395 if (4 + len + auth->session != tpm_buf_length(buf)) { in tpm_buf_append_hmac_session()
506 x = &buf->data[tpm_buf_length(buf)]; in tpm_buf_append_salt()
509 y = &buf->data[tpm_buf_length(buf)]; in tpm_buf_append_salt()
723 if (offset_s != tpm_buf_length(buf)) in tpm_buf_fill_hmac_session()
[all …]
H A Dtpm-buf.c121 u16 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length() function
125 EXPORT_SYMBOL_GPL(tpm_buf_length);
H A Dtpm1-cmd.c549 if (tpm_buf_length(buf) < TPM_HEADER_SIZE + in tpm1_get_random()
584 if (tpm_buf_length(buf) < TPM_DIGEST_SIZE) in tpm1_pcr_read()
H A Dtpm2-cmd.c279 if (tpm_buf_length(buf) == offset) in tpm2_get_random()
307 if (tpm_buf_length(buf) < in tpm2_get_random()
H A Dtpm2-space.c135 body_size = tpm_buf_length(tbuf) - TPM_HEADER_SIZE; in tpm2_save_context()
/linux/include/linux/
H A Dtpm_buf.h50 u16 tpm_buf_length(struct tpm_buf *buf);
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c537 if (tpm_buf_length(buf) == offset) in tpm2_unseal_cmd()
555 if (tpm_buf_length(buf) < TPM_HEADER_SIZE + 6 + data_len) in tpm2_unseal_cmd()