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()
214 if (offset + rc > tpm_buf_length(&buf)) { in tpm2_read_public()
265 slot = (tpm_buf_length(buf) - TPM_HEADER_SIZE) / 4; in tpm_buf_append_name()
272 if (auth->session != tpm_buf_length(buf)) { in tpm_buf_append_name()
320 if (tpm_buf_length(buf) != offset) { in tpm_buf_append_auth()
396 if (auth->session != tpm_buf_length(buf)) { in tpm_buf_append_hmac_session()
399 if (4 + len + auth->session != tpm_buf_length(buf)) { in tpm_buf_append_hmac_session()
508 x = &buf->data[tpm_buf_length(buf)]; in tpm_buf_append_salt()
511 y = &buf->data[tpm_buf_length(buf)]; in tpm_buf_append_salt()
709 if (offset_s != tpm_buf_length(buf)) in tpm_buf_fill_hmac_session()
[all …]
H A Dtpm-buf.c93 u32 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length() function
97 EXPORT_SYMBOL_GPL(tpm_buf_length);
H A Dtpm1-cmd.c563 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + in tpm1_get_random()
600 if (tpm_buf_length(&buf) < TPM_DIGEST_SIZE) { in tpm1_pcr_read()
H A Dtpm2-cmd.c293 if (tpm_buf_length(&buf) == offset) in tpm2_get_random()
322 if (tpm_buf_length(&buf) < in tpm2_get_random()
H A Dtpm2-space.c154 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; in tpm2_save_context()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c529 if (tpm_buf_length(&buf) == offset) in tpm2_unseal_cmd()
549 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd()
/linux/include/linux/
H A Dtpm.h423 u32 tpm_buf_length(struct tpm_buf *buf);